Error when adding products to cart in pop up and for message when adding cart

When a product is added to the cart this message appears " data-variant-id=“39342137704607” data-item-key=“39342137704607:9ed9c7531f9b158e7e633ef4f1d95275” i mean the product is added to the cart but while visualizing the product it shows that message.

store cerezacosmetics.com

Is this something that i can fix? Or what would be the best way to find someone to fix it? Fiverr or so?

im using the theme blockshop

Hi @monroymx

Welcome to Shopify Community.

Aibek is here from Speedimize.io agency.

The fact is that you have an error on the shopping cart page - https://cerezacosmetics.com/cart. The cart.liquid file.

The Block shop theme sends an Ajax request when a product is added to the shopping cart. And they’re already in the answer come all the superfluous http://joxi.ru/1A5y3jqID87v4A.
http://joxi.ru/LmG8LZYSwO1n02 - we have a suspicion that the tags are not closed. Or the files are not connected correctly. Long story short, we need to check these files.
If you can share with us the contents of cart. liquid here. We will take a look and send you the correct version.

Hope for your answer.

Thank you for the help… this is the content from the cart.liquid

{% include ‘framework–cart’, view: ‘desktop’ %}
{% include ‘framework–cart’, view: ‘mobile’ %}

I appreciate the help!

Hi @monroymx

Unfortunately, what you sent us does not carry any information. Can you send the contents of framework–cart.liquid?

The error is possible inside this file.

Hope that’s possible.

@monroymx there is an issue in string generation of your cart drawer. need to check the code of your store to fix it.


Thank you for the help here is the content


{% comment %} translations {% endcomment %}
{% assign your_cart_t = ‘cart.your_cart’ | t %}
{% assign price_t = ‘cart.price’ | t %}
{% assign quantity_t = ‘cart.quantity’ | t %}
{% assign total_t = ‘cart.total’ | t %}
{% assign subtotal_t = ‘cart.subtotal’ | t %}
{% assign remove_t = ‘cart.remove’ | t %}
{% assign minus_t = ‘cart.minus’ | t %}
{% assign plus_t = ‘cart.plus’ | t %}
{% assign order_notes_t = ‘cart.order_notes’ | t %}
{% assign shipping_taxes_t = ‘cart.shipping_taxes_notification’ | t %}
{% assign continue_t = ‘cart.continue’ | t %}
{% assign checkout_t = ‘cart.checkout’ | t %}
{% assign empty_html_t = ‘cart.empty_html’ | t: collections_url: routes.all_products_collection_url %}

{% assign has_items = false %}
{% if cart.item_count > 0 %}
{% assign has_items = true %}
{% endif %}

{{ your_cart_t }}

{% case view %}
{% when ‘desktop’ %}

{{ price_t }}
{{ quantity_t }}
{{ total_t }}

{% comment %}

{% endcomment %}
{% for item in cart.items %}
{% capture item_image %}
{% include “framework–image”, image: item.product.featured_media.preview_image %}
{% endcapture %}

{% include 'mw_PO_cart' with item, code: 'relation' %}

{% unless item.variant.title contains ‘Default’ %}

{% endunless %}

{% comment %}
{% assign property_size = item.properties | size %}
{% if property_size > 0 %}
{% for property in item.properties %}
{% unless property.last == blank %}


{{ property.first }}:
{% comment %} Check if there was an uploaded file associated {% endcomment %}
{% if property.last contains ‘/uploads/’ %}
{{ property.last | split: ‘/’ | last }}
{% else %}
{{ property.last }}
{% endif %}
{% endunless %}
{% endfor %}
{% endif %}
{% endcomment %}
{% include ‘mw_PO_cart’ with item, code: ‘properties’ %}

{% if item.original_price != item.final_price %}
{% include 'mw_PO_cart' with item, code: 'price' %}
{% endif %}
{% include 'mw_PO_cart' with item, code: 'price' %}

{% if item.line_level_discount_allocations.size > 0 %}

{% for discount_allocation in item.line_level_discount_allocations %} {{ discount_allocation.discount_application.title }} (-{{ discount_allocation.amount | money }}) {% endfor %}
{% endif %}
{% if item.original_line_price != item.final_line_price %}
{% include 'mw_PO_cart' with item, code: 'line_price' %}
{% endif %}
{% include 'mw_PO_cart' with item, code: 'line_price' %}
{% endfor %}

{% when ‘mobile’ %}

{% comment %}
{% endcomment %} {% for item in cart.items %} {% capture item_image %} {% include "framework--image", image: item.product.featured_media.preview_image %} {% endcapture %}
{% include 'mw_PO_cart' with item, code: 'relation' %}
{% unless item.variant.title contains 'Default' %} {% endunless %}

{% comment %}
{% assign property_size = item.properties | size %}
{% if property_size > 0 %}

{% for p in item.properties %} {% unless p.last == blank %}
{{ p.first }}: {% comment %} Check if there was an uploaded file associated {% endcomment %} {% if p.last contains '/uploads/' %} {{ p.last | split: '/' | last }} {% else %} {{ p.last }} {% endif %} {% endunless %} {% endfor %}
{% endif %} {% endcomment %} {% include 'mw_PO_cart' with item, code: 'properties' %}
{% if item.original_line_price > item.final_line_price %}
{{ item.original_line_price | money }}
{% endif %}
{% include 'mw_PO_cart' with item, code: 'price' %} {% include 'mw_PO_cart' with item, code: 'line_price' %}

{% if item.line_level_discount_allocations.size > 0 %}

{% for discount_allocation in item.line_level_discount_allocations %} {{ discount_allocation.discount_application.title }}  (–{{ discount_allocation.amount | money }}) {% endfor %}
{% endif %}
{% endfor %}
{% endcase %}
{% if settings.cart--show-note %}
{{ order_notes_t }} {{ cart.note }}
{% endif %}
{%- if cart.cart_level_discount_applications != blank -%}
{{ subtotal_t }}
{{ cart.items_subtotal_price | money }}
    {%- for discount_application in cart.cart_level_discount_applications -%}
  • {{ discount_application.title }}
    {{ discount_application.total_allocated_amount | money }}
  • {%- endfor -%}
{%- endif -%}
{{ total_t }}
{{ cart.total_price | money_with_currency }}
{{ shipping_taxes_t }}
{{ checkout_t }}

{% if additional_checkout_buttons %}

{{ content_for_additional_checkout_buttons }}
{% endif %}
{{ empty_html_t }}

Hi @monroymx

Thanks for sharing with me this.

This error is shown in HTML: snippets/mw_PO_cart. liquid" was not rendered, the associated app was uninstalled

In the code where the products start to be displayed:


  {% include 'mw_PO_cart' with item, code: 'relation' %}

The mw_PO_cart is connected. Perhaps this is the remnants of the app that you deleted. Or it may be that there is an error in the content of mw_PO_cart.liquid that refers to the deleted app.

http://joxi.ru/L21vKM7uRkowVA -because of this error, HTML cannot render properly. Because of the extra quotation mark, the tag attributes are drawn. Therefore, the option IDs are shown.

As a solution, you will need to delete the connection of this file. We may be wrong, as there is a chance that this is a native theme file. That is, it does not belong to any app. In this case, you will need to make sure that the error is not generated.

But this is less probable.

Hope that helps you.

Hello,

I do have a similar issue:

  • on iOs when a priduct is added in cart it appear a message that the product was added to cart (isnt wanted or seted by us) and the cart isnt show th added product by default the customer need to refresh page to see the product in cart…on Android we dont have the issue.

can you help to solve this issue?

www.tortulperfect.ro

thanx