I have have written the following code for my shopping cart to display the item name quantity unit price total price for each orderline with functionality to add more or less to to quantity which woks perfect but I have also added a option to delete the orderline but when i click the button it adds 1 to the quantity and can't work out why.
delete orderline in cart
I have have written the following code for my shopping cart to display the item name quantity unit price total price for each orderline with functionality to add more or less to to quantity which woks perfect but I have also added a option to delete the orderline but when i click the button it adds 1 to the quantity and can't work out why.
Hi Phil
There was an error in the starter kit. Your last form should have these two lines as the first ones
<input name="RemoveOrderLine" type="hidden" value="nodeId" />
<input name="nodeId" type="hidden" value="{@nodeId}" />
Try that and see if that works. If not - then maybe your javascript has an error.
Kind regards
Anders
Thanks that has solved the problem works a treat
Cool - could you mark the answer as the solution then? :)
is working on a reply...