Jump to content

Manipulating product quantities in shopping-cart-product-line.tpl


Recommended Posts

Hi,

 

In PrestaShop 1.5, in shopping cart, next to input field "Quantity", they are two arrows - first (up) adds one piece of item, second (down) removes one piece of item.

 

Up arrow has link similar to this:

/cart?add=&id_product=ID_PRODUCT_&ipa=0&id_address_delivery=5&token=_CART_TOKEN_

 

Down arrow has link similar to this:

/cart?add=&id_product=ID_PRODUCT_&ipa=0&id_address_delivery=5&op=down&token=_CART_TOKEN_

 

And my question is: how can I make ***ONE*** link that will update product quantities? I.e. I have one piece of item X. In input field I write "10" and after clicking "update" page will refresh and shows me 10 pieces of item X. General: I want to merge these two buttons (arrow up and arrow down) into one button/link.

 

I will be soooooooooooo grateful for helping me achieve this!!

 

Best regards,

Milosz

Link to comment
Share on other sites

×
×
  • Create New...