How to add "Remove from cart" button? -Brooklyn Theme

New Member
3 0 0

Hi, 

I noticed that in Brooklyn theme's cart page, it doesn't have any "remove" option to remove products from the cart and the buyer would have to manually enter a "0" in the quantity box to take it out. This would be pretty annoying for any customer to do, so I want to make it more convenient. Does anyone know what code to add and where? Any help would be appreciated, thanks!

0 Likes
Tourist
6 0 1

Hi, does anyone have an answer/coding for this?

 

Thanks.


@Hayeon_Choi wrote:

Hi, 

I noticed that in Brooklyn theme's cart page, it doesn't have any "remove" option to remove products from the cart and the buyer would have to manually enter a "0" in the quantity box to take it out. This would be pretty annoying for any customer to do, so I want to make it more convenient. Does anyone know what code to add and where? Any help would be appreciated, thanks!


 

0 Likes
Tourist
41 0 1

Try this 

{% for line in cart.items %}
  <a href="/cart/change?line={{ forloop.index }}&quantity=0">Remove</a>
{% endfor %}
0 Likes