Skip to main content
4 events
when toggle format what by license comment
Jan 17, 2018 at 13:03 comment added Matt If there is more than one item in the cart, the code loops through the cart and deletes the last item whose Product ID matches $productId. See this section of the code: Delete Last Item. Alternatively you could remove the last item check, but then if there is another product with the same ID in the cart it will remove that too: Delete Item. The first gist works for me as the item I need to remove would always be the last item added to the cart.
Oct 24, 2017 at 9:40 comment added Joey what if there's more than one item in the cart?
Jan 15, 2016 at 14:26 vote accept Matt
Dec 7, 2015 at 17:17 history answered Matt CC BY-SA 3.0