Add A "Remove From Cart" Button?

2 0 1

My theme is motion, how do i Add A "Remove From Cart" Button?


below code from shopify cart

{% comment %}
JS-load cart markup without bloat of a full layout.

This is used in both the mini cart drawer and cart page.
When a quantity is changed, this file is scraped and data-products
is fully replaced to account for possible cart discounts changing

The cart-wide discount div also replaces what is originally in the cart
as it can change anytime a cart-item changes
{% endcomment %}
{% layout none %}

<div class="cart__items"
data-count="{{ cart.item_count }}"
{% if cart.total_discounts > 0 %}
data-cart-savings="{{ cart.total_discounts }}"
{% endif %}
data-cart-subtotal="{{ cart.total_price }}">
{% for item in cart.items %}
{%- render 'cart-item', product: item -%}
{% endfor %}
<div class="cart__discounts{% if cart.cart_level_discount_applications == blank %} hide{% endif %}">
<div class="cart__item-sub cart__item-row">
<div>{{ 'cart.general.discounts' | t }}</div>
<div class="text-right">
{% for cart_discount in cart.cart_level_discount_applications %}
{{ cart_discount.title }} (-{{ cart_discount.total_allocated_amount | money }})
{% endfor %}

Reply 1 (1)

Shopify Partner
36845 3636 11969


Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!😊
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on regarding any help
Shopify Partner | Skype :
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing