Create a file named composer.json in your theme folder. Copy and paste the following json snippet.
Open the terminal in the theme folder and type:
composer update
Create a file named composer.json in your theme folder. Copy and paste the following json snippet.
Open the terminal in the theme folder and type:
composer update
.woocommerce button[name="update_cart"],
.woocommerce input[name="update_cart"] {
display: none;
}
jQuery( function( $ ) {
$('.woocommerce').on('change', 'input.qty', function(){
$("[name='update_cart']").trigger("click");
});
});
// CART
function add_custom_scripts() {
if( is_cart() ) {
wp_enqueue_script( 'update-cart-js', get_stylesheet_directory_uri() . '/assets/js/update-cart.js' );
}
add_action( 'wp_enqueue_scripts', 'add_custom_scripts' );
functions.php
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]