Forum
cart delete item
Hi,
what is the best way to delete a item from a cart. There is no documentation on this.
looks like I need to call: public function update_from_form($SubmittedForm)
advice please
tony
Hi,
what is the best way to delete a item from a cart. There is no documentation on this.
looks like I need to call: public function update_from_form($SubmittedForm)
advice please
tony
Form which context do you wish to remove the item?
If you want to add a button to the cart display, there's a good example here: https://github.com/PerchCMS/perchdemo-nest/blob/master/public_html/perch/templates/shop/cart/cart.html
Hi,
delete item now works. but Quality does not update! do I need an update button?
thanks in advance
tony
How are you submitting the form after changing the qty?
Hi,
I have no update button. I have nothing submitting of the form after change the quantity.
tony
So you will need to add that to your form.
I've add a button to cart.html, but it doesn't update the qty. qty stays the same!
tony
If you take a look at the default
cart.html
template that is part of the app, you'll see a working example of this.At the top of your form, add a hidden button to catch all default submissions:
And then whenever you want the update button, add one:
cool, that works
many thanks
tony