Reply To: Feature Request


      I have a site with Porto, in the shopping cart, for example, if I add by mistake 3 quantities to buy, when I go to “CART”, if I want to modify the quantity of the order, either to add or reduce it, it does not update the information, it does not update the values of subtotal, quantity, much less the grand total, the “Cart” stays with the initial amount, and definitely, this is a problem.
      The only way that was suggested to me was to activate the coupon box, from the Woocommerce setting, which, if I don’t offer coupons, seems to me out of place.
      In the forum, they suggested me to apply a Javascript function from the skin of the theme option, which effectively solved the problem, so I suggest that you include this function as an update of the theme, and thus avoid these inconveniences to your users, in addition, you will save time answering queries and solving this type of errors.

      The effective solution proposed to me is:
      “To change the quantity, the price automatically update on the cart page. You can copy and paste the Below code. to the Dashboard >> Appearance >> Theme Options >> Skin >> JavaScript Code >>JS Code before body. See Screen Shot for better reference :

      var timeout;
      jQuery( function( $ ) {
      $(‘.woocommerce’).on(‘change’, ‘input.qty’, function(){
      if ( timeout !== undefined ) {
      clearTimeout( timeout );
      timeout = setTimeout(function() {
      }, 1000 ); // 1 second delay, half a second (500) seems comfortable too
      } );

      This worked perfectly for me, I suggest you include this update function in your themes.
      Thank you.