0
votes

I have included + and - to increment and decrement the quantity of a product in the cart page. Now i need to update it automatically without clicking the update shopping cart button. How can i do that? Kindly help me to fix this problem

1
simple, add the update cart function to the + and - buttonsCollin ter Steege
Hi @CollinterSteege. Basically i'm new to magento. So i need to know the entire steps to do that. Kindly provide the steps to do thatAnand V
your answer is already here @DaneshG explained it perfectlyCollin ter Steege

1 Answers

0
votes

Use jQuery ajax() Method ajax function tutorial

<button type="button" name="button" id="button-minus"> - </button>
<script>
$(document).ready(function(){
   var count = 0;
   $("#button-minus").click(function(){
     if ( count > 0 ){
        $.ajax({url: "url here", success: function(result){
            $("#div").html(result);
            count--;
        }});
     }
  });
});
</script>