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

monroymx
New Member
4 0 0

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

0 Likes
Speedimize
Shopify Partner
289 46 122

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.

We Speedimize your store
Have a problem with speed performance, send me email here: hello@speedimize.io


If our advice was helpful please LIKE or ACCEPT SOLUTION
monroymx
New Member
4 0 0

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!

 

0 Likes
Speedimize
Shopify Partner
289 46 122

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. 

We Speedimize your store
Have a problem with speed performance, send me email here: hello@speedimize.io


If our advice was helpful please LIKE or ACCEPT SOLUTION
CANDISOFT
Shopify Partner
1103 146 480

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

If helpful, Please Like and accept The Solution.
0 Likes
monroymx
New Member
4 0 0

 



@Speedimize wrote:

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. 


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 %}

<div
class="cart--root"
data-view="{{ view }}"
data-js-class="Cart"
data-has-items="{{ has_items }}"
>
<div class="cart--header">
<h1 class="cart--title font--section-heading">{{ your_cart_t }}</h1>
</div>
<form class="cart--form" action="{{ routes.cart_url }}" method="post" novalidate="">

{% case view %}
{% when 'desktop' %}
<div class="cart--body">
<div class="cart--headings font--accent">
<div class="cart--heading--image"></div>
<div class="cart--heading--title"></div>
<div class="cart--heading--price">{{ price_t }}</div>
<div class="cart--heading--quantity">{{ quantity_t }}</div>
<div class="cart--heading--total">{{ total_t }}</div>
</div>

{% comment %} <div class="cart--items"> {% endcomment %}
{% for item in cart.items %}
{% capture item_image %}
{% include "framework--image", image: item.product.featured_media.preview_image %}
{% endcapture %}

<div
class="cart--item {% include 'mw_PO_cart', code: 'class' %}" {% include 'mw_PO_cart' with item, code: 'style' %}
data-variant-id="{{ item.variant_id }}"
data-item-key="{{ item.key }}"
>
{% include 'mw_PO_cart' with item, code: 'relation' %}
<div class="cart--item--image">
<a href="{{ item.url }}">
{{ item_image }}
</a>
</div>

<div class="cart--item--title">
<div class="font--block-heading">
<a href="{{ item.url }}">{{ item.product.title }}</a>
</div>

{% unless item.variant.title contains 'Default' %}
<div class="font--paragraph">
<a href="{{ item.url }}">{{ item.variant.title }}</a>
</div>
{% endunless %}

{% comment %}
{% assign property_size = item.properties | size %}
{% if property_size > 0 %}
{% for property in item.properties %}
{% unless property.last == blank %}
<br>
{{ property.first }}:
{% comment %} Check if there was an uploaded file associated {% endcomment %}
{% if property.last contains '/uploads/' %}
<a href="{{ property.last }}">{{ property.last | split: '/' | last }}</a>
{% else %}
{{ property.last }}
{% endif %}
{% endunless %}
{% endfor %}
{% endif %}
{% endcomment %}
{% include 'mw_PO_cart' with item, code: 'properties' %}
</div>

<div class="cart--item--price font--accent">
{% if item.original_price != item.final_price %}
<div class="font--light-accent">
<s class="money">{% include 'mw_PO_cart' with item, code: 'price' %}</s>
</div>
{% endif %}

<div class="font--accent money">{% include 'mw_PO_cart' with item, code: 'price' %}</div>

{% if item.line_level_discount_allocations.size > 0 %}
<div class="font--light-accent money">
{% for discount_allocation in item.line_level_discount_allocations %}
{{ discount_allocation.discount_application.title }} (-{{ discount_allocation.amount | money }})
{% endfor %}
</div>
{% endif %}
</div>

<div class="cart--item--quantity">
<div class="cart--quantity--container input--number">
<a
class="minus"
tabindex="0"
aria-label="{{ minus_t }}"
href="{{ routes.cart_change_url }}?line={{ forloop.index }}&quantity={{ item.quantity | minus: 1}}"
>
{% include 'framework--icons', icon: 'minus' %}
</a>
<label for="updates_{{ item.id }}" class="hidden">{{ quantity_t }}</label>
<input
class="cart--quantity--input"
type="text"
name="updates[]"
id="updates_{{ item.id }}"
value="{{ item.quantity }}"
min="1"
pattern="[1-9]*"
data-loading="false"
/>
<a
class="plus"
tabindex="0"
aria-label="{{ plus_t }}"
href="{{ routes.cart_change_url }}?line={{ forloop.index }}&quantity={{ item.quantity | plus: 1}}"
>
{% include 'framework--icons', icon: 'plus' %}
</a>
</div>

<div class="cart--item--remove font--block-link">
<a
href="/cart/change?line={{ forloop.index }}&quantity=0"
class="remove"
aria-label="{{ remove_t }}"
title="{{ remove_t }}"
>
{{ remove_t }}
</a>
</div>
</div>

<div class="cart--item--total font--accent">
{% if item.original_line_price != item.final_line_price %}
<div class="font--light-accent">
<s class="money">{% include 'mw_PO_cart' with item, code: 'line_price' %}</s>
</div>
{% endif %}

<div class="money">
{% include 'mw_PO_cart' with item, code: 'line_price' %}
</div>
</div>
</div>
{% endfor %}
</div>

{% when 'mobile' %}
<div class="cart--body">
{% comment %} <div class="cart--items"> {% endcomment %}
{% for item in cart.items %}
{% capture item_image %}
{% include "framework--image", image: item.product.featured_media.preview_image %}
{% endcapture %}

<div
class="cart--item {% include 'mw_PO_cart', code: 'class' %}" {% include 'mw_PO_cart' with item, code: 'style' %}
data-variant-id="{{ item.variant_id }}"
data-item-key="{{ item.key }}"
>
{% include 'mw_PO_cart' with item, code: 'relation' %}
<div class="cart--item--title">
<div class="font--block-heading">
<a href="{{ item.url }}">{{ item.product.title }}</a>
</div>
</div>

<div class="cart--item--image">
<a href="{{ item.url }}">
{{ item_image }}
</a>
</div>

<div class="cart--item--info">
{% unless item.variant.title contains 'Default' %}
<div class="font--paragraph">
<a href="{{ item.url }}">{{ item.variant.title }}</a>
</div>
{% endunless %}

{% comment %}
{% assign property_size = item.properties | size %}
{% if property_size > 0 %}
<div class="cart--item-properties">
{% for p in item.properties %}
{% unless p.last == blank %}
<br>
{{ p.first }}:
{% comment %} Check if there was an uploaded file associated {% endcomment %}
{% if p.last contains '/uploads/' %}
<a href="{{ p.last }}">{{ p.last | split: '/' | last }}</a>
{% else %}
{{ p.last }}
{% endif %}
{% endunless %}
{% endfor %}
</div>
{% endif %}
{% endcomment %}
{% include 'mw_PO_cart' with item, code: 'properties' %}

<div class="cart--item--price">
{% if item.original_line_price > item.final_line_price %}
<div class="cart--item--orig-price font--light-accent">
<s class="money">{{ item.original_line_price | money }}</s>
</div>
{% endif %}

<div class="cart--item--total font--accent money">
<span style="display: none;"> {% include 'mw_PO_cart' with item, code: 'price' %}</span>
{% include 'mw_PO_cart' with item, code: 'line_price' %}
</div>

{% if item.line_level_discount_allocations.size > 0 %}
<div class="cart--item--discounts font--light-accent">
{% for discount_allocation in item.line_level_discount_allocations %}
{{ discount_allocation.discount_application.title }}&nbsp;
(–<span class="money">{{ discount_allocation.amount | money }}</span>)
{% endfor %}
</div>
{% endif %}
</div>

<div class="cart--item--quantity">
<div class="cart--quantity--container input--number">
<a
tabindex="0"
aria-label="{{ minus_t }}"
class="minus"
href="{{ routes.cart_change_url }}?line={{ forloop.index }}&quantity={{ item.quantity | minus: 1}}"
>
{% include 'framework--icons', icon: 'minus' %}
</a>
<label for="updates_{{ item.id }}" class="hidden">{{ quantity_t }}</label>
<input
class="cart--quantity--input"
type="text"
name="updates[]"
id="updates_{{ item.id }}"
value="{{ item.quantity }}"
min="1"
pattern="[1-9]*"
data-loading="false"
/>
<a
class="plus"
tabindex="0"
aria-label="{{ plus_t }}"
href="{{ routes.cart_change_url }}?line={{ forloop.index }}&quantity={{ item.quantity | plus: 1}}"
>
{% include 'framework--icons', icon: 'plus' %}
</a>
</div>

<div class="cart--item--remove font--block-link">
<a
href="{{ routes.cart_change_url }}?line={{ forloop.index }}&quantity=0"
class="remove"
aria-label="{{ remove_t }}"
title="{{ remove_t }}"
>
{{ remove_t }}
</a>
</div>

</div>
</div>
</div>
{% endfor %}
</div>
{% endcase %}

<div class="cart--footer">
{% if settings.cart--show-note %}
<div class="cart--notes">
<label for="cart-note" class="cart--notes--heading">{{ order_notes_t }}</label>
<textarea class="cart--notes--textarea"
id="cart-note"
name="note">{{ cart.note }}</textarea>
</div>
{% endif %}
<div class="cart--totals">
{%- if cart.cart_level_discount_applications != blank -%}
<div class="cart--sub-total">
<div class="font--block-heading">{{ subtotal_t }}</div>
<div class="font--accent money">{{ cart.items_subtotal_price | money }}</div>
</div>

<div class="cart--discounts">
<ul>
{%- for discount_application in cart.cart_level_discount_applications -%}
<li>
<div class="font--accent">{{ discount_application.title }}</div>
<span class="font--light-accent">
–<span class="money">{{ discount_application.total_allocated_amount | money }}
</span>
</span>
</li>
{%- endfor -%}
</ul>
</div>
{%- endif -%}
<!-- Final cart total -->
<div class="cart--total">
<div class="font--block-heading">{{ total_t }}</div>
<div class="cart--total--price font--accent money">
{{ cart.total_price | money_with_currency }}
</div>
</div>

<div class="cart--tax-info font--paragraph">
{{ shipping_taxes_t }}
</div>

<div class="cart--nav">
<div class="cart--continue-shopping font--block-link">
<a href="{{ routes.all_products_collection_url }}">
{{ continue_t }}
</a>
</div>

<button class="cart--checkout-button font--button" type="submit" name="checkout">
{{ checkout_t }}
</button>
</div>

{% if additional_checkout_buttons %}
<div class="cart--additional-buttons additional-checkout-buttons
{% if view == 'mobile' %} additional-checkout-buttons--vertical {% endif %}">
{{ content_for_additional_checkout_buttons }}
</div>
{% endif %}

</div>
</div>
</form>

<div class="cart--no-items font--paragraph">{{ empty_html_t }}</div>
</div>

0 Likes
Speedimize
Shopify Partner
289 46 122

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:

<div
        class="cart--item {% include 'mw_PO_cart', code: 'class' %}" {% include 'mw_PO_cart' with item, code: 'style' %}
        data-variant-id="{{ item.variant_id }}"
        data-item-key="{{ item.key }}"
>
  {% 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. 

We Speedimize your store
Have a problem with speed performance, send me email here: hello@speedimize.io


If our advice was helpful please LIKE or ACCEPT SOLUTION