First time using store and have hit my first "WTF" moment.
Add items to cart - DONE :)
Checkout Page - Displaying items in cart, cost and tax etc. :)
Delete Items in Cart - Using the documented method - remove_items input field. I cannot remove individual items from cart.
<input type="checkbox" name="remove_items[{key}]" value="1" /> Remove {title}
I have this inside the {items} loop. Then before {/exp:store:checkout} I have:
<input type="submit" name="update_cart" value="Update Totals" class="btn" />
<input type="submit" name="empty_cart" value="Empty Cart" class="btn btn-danger" />
<input type="submit" name="next" value="Continue to Billing Details" class="btn btn-primary" />
Update Totals - DOES NOT WORK. Page refreshes but nothing changes
Empty Cart - DOES WORK!!
Before I go and dig further, can anyone who has successfully used a checkbox to delete items from an Expresso Store project confirm the code they used or point me in the right direction.
EE 2.7.2 + Store 2.0.3
{items}<input type="checkbox" name="remove_items[{key}]" value="1" />{/items}
should indeed remove items when checked and the update cart button is clicked. – Justin Long Oct 11 '13 at 1:22