Why is the remove button in my cart not working properly?

Hello,

I’m facing an issue on cart part when i click remove button for remove items on cart it simply redirects to checkout page without removing items. Please help me to fix this out.

Thanks

Hi,

Hope you are well! Can you please share your store URL? So, I can check and update you with a solution.

1 Like

Here’s is my store URL https://mydiamondsshop.myshopify.com/

and I requested you to check the cart page code which is mention below:

{{ page_title }}

{% if cart.item_count > 0 %}
{% for item in cart.items %} {% endfor %}
{{ 'cart.general.heading_product_name' | t }} {{ 'cart.general.heading_unit_price' | t }} {{ 'cart.general.heading_quantity' | t }} {{ 'cart.general.heading_total' | t }}
{{ item.product.title }} {% unless item.variant.title contains 'Default' %}
{{ item.variant.title }} {% endunless %}

{% if settings.product_quantity_message and item.variant.inventory_management and item.variant.inventory_quantity <= 0 and item.variant.incoming %}
{% assign date = item.variant.next_incoming_date | date: format: ‘month_day_year’ %}


{{ ‘products.product.will_not_ship_until’ | t: date: date }}
{% endif %}

{% assign property_size = item.properties | size %}
{% if property_size > 0 %}
{% for p in item.properties %}
{% if forloop.first %}
{% endif %}
{% unless p.last == blank %}
{{ p.first }}:

{% if p.last contains ‘/uploads/’ %}
{{ p.last | split: ‘/’ | last }}
{% else %}
{{ p.last }}
{% endif %}


{% endunless %} {% endfor %} {% endif %}
{{ item.price | money }}
{{ 'cart.general.remove' | t }}
{{ item.line_price | money }}
{{ 'cart.general.update' | t }}
Cart Totals
{% if cart.total_discounts > 0 %} {% assign savings = cart.total_discounts | money %}
{{ 'cart.general.discount' | t }}: {{ 'cart.general.savings_html' | t: price: savings }}
{% endif %}
Shipping:
{% include 'shipping-calculator' %}
{{ 'cart.general.subtotal' | t }}: {{ cart.total_price | money }}
{{ 'cart.general.proceed_checkout' | t }} {% if additional_checkout_buttons %} {{ content_for_additional_checkout_buttons }} {% endif %}
{% else %}

{{ 'cart.general.empty' | t }}

{{ 'cart.general.continue_browsing_html' | t }}

{% endif %}
{% unless settings.shipping_calculator == 'Disabled' %}

{{ ‘shipping-cart.js’ | asset_url | script_tag }}

{% endunless %}