Developer forum

Forum » Templates » Update card does not delete all orderlines

Update card does not delete all orderlines

Peter Bille Larsen
Reply
 Hi DWs

On one of our solution we have use a submit button in the cart which updates all orderlines at once. 
Normally I guess you would place a small "update" link on each orderline, but our developer have found this somewhere:
<input type="submit" class="cartquantityupdate" value=" ">

The problem is that this only deletes some of the products and does not return "Empty basket" if it was the last products.

 

Is there anything we have missed here? or is the safest use of "update" to place it on every orderline with:

<a onclick="updateCartLineQuantity('OL7330');" href="javascript:void(0);">Update</a>



Replies

 
Merethe Nielsen
Reply
Hi

In cartv2 you can use this to make an update button in the bottom of the form:
<input type="submit" name="<!--@CartV2.CurrentStepButtonName-->" id="<!--@CartV2.CurrentStepButtonName-->" 
value="<!--@Translate(update, "Update")-->" class="submitter" />

Kind regards,
Merethe

 

You must be logged in to post in the forum