Home Forums Themes Support Claue Cart Help

Topic Resolution: Resolved
Viewing 1 reply thread
  • Author
    Posts
    • #25933

      Hi Harry,

      I have found a function which helps me to have auto update the cart amount after changing the quantity of items.

      /* live update for quantity on cart page */
      add_action( 'wp_footer', 'cart_update_qty_script' );
      function cart_update_qty_script() {
      if (is_cart()) :
      ?>
      <script>
      jQuery('div.woocommerce').on('click', '.qty', function(){
      jQuery("[name='update_cart']").removeAttr('disabled');
      });
      jQuery('div.woocommerce').on('change', '.qty', function(){
      jQuery("[name='update_cart']").trigger("click");
      });
      
      </script>
      <?php
      endif;
      }

      Can you please help me to hide the footer of the cart items and alos the button of update? http://take.ms/T4328

      Regards.

      Rahim Vaziri
      CEO & Founder at Look.ir

    • #25943

      Hi Rahim,

      Please add below CSS code

      .woocommerce-cart .woocommerce-cart-form__contents td.actions {display: none;}

      Regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 1 reply thread

You must be logged in to reply to this topic.