Ecommerce for Statamic

Remove from cart

Place this single tag on a template to remove an item from your cart by visiting a URL.
You can add parameters to the tag, but it is more useful when passing parameters through the query string.

Parameters

item
The index of the item you want to remove.
return
The URL to be shown after the item is removed.

Example

Place {{ bison:remove_from_cart }} by itself on a template and visit /cart/remove?item=0&return=/cart to remove the first item in the cart and redirect to the cart page.


Problem with this page? Edit it on Github.