Why does my cart subtotal show the wrong number?

Hi!

When i add any of my products to cart and view it the wrong number always shows up where it says “subtotal”. But when i press “checkout” it converts to the right prize. Also the product prize is always right and i have set all the shipping rates to 0 so my guess would be that it’s in the code somewhere?

Here is my cart.liquid:

{% section ‘static-cart’ %}

Here is the cart._ajax.liquid:

{% layout none %}

{
“totalPrice”: {{ cart.total_price | money | json }}
}

{% include 'cart-item-list' %} {% include 'cart-discounts' %}

And here is the static-cart.liquid:

{% assign is_customer = false %}
{% if shop.customer_accounts_enabled and customer %}
{% assign is_customer = true %}
{% endif %}

{% assign has_sidebar = false %}
{% assign has_items = false %}
{% assign show_continue_link = false %}

{% if section.blocks.size > 0 %}
{% assign has_sidebar = true %}
{% endif %}

{% if cart.items.size > 0 %}
{% assign has_items = true %}
{% endif %}

{% assign continue_url = “/collections/all” %}
{% if settings.continue_shopping_url != blank %}
{% assign continue_url = settings.continue_shopping_url %}
{% endif %}

{% if settings.continue_url_cart %}
{% assign show_continue_link = true %}
{%- capture continue_link_html -%}

{{ ‘cart.general.continue_shopping’ | t }}
{% include ‘icon-library’, id: ‘icon-signpost-arrow’ %}

{%- endcapture -%}
{% endif %}

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

{% if has_items %}

{% endif %}

{% if has_items or show_continue_link %}

{% if has_items %}
{{ 'cart.general.subtotal' | t }} {{ cart.total_price | money }}

<button
class=“button-primary cart-title-button”
name=“checkout”
type=“submit”
aria-label=“{{ ‘cart.general.checkout’ | t }}”

{% if settings.enable_checkout_lock_icon %}
{% include ‘icon-checkout-lock’ %}
{% else %}
{% include ‘icon-cart’ %}
{% endif %}
{{ ‘cart.general.checkout’ | t }}

{% elsif show_continue_link %}
{{ continue_link_html }}
{% endif %}

{% endif %}
{% if has_items %} {% include 'cart-item-list', cart: cart %}

{% if section.settings.enable_order_notes %}

{{ 'cart.general.enter_order_note' | t }}
{{ cart.note }} {{ 'cart.general.special_instructions' | t }}
{% endif %}
    {% include 'cart-discounts', cart: cart %}
{{ 'cart.general.subtotal' | t }} {{ cart.total_price | money }}
{% if cart.requires_shipping %} {{ 'cart.general.shipping_at_checkout' | t }} {% else %} {{ 'cart.general.taxes_at_checkout' | t }} {% endif %}

{% comment %}
snippets/cart-shipping.liquid has an internal check to see if shipping is required
{% endcomment %}
{% if section.settings.enable_shipping_calc %}
{% include ‘cart-shipping’ %}
{% endif %}

{% if settings.enable_checkout_lock_icon %} {% include 'icon-checkout-lock' %} {% else %} {% include 'icon-cart' %} {% endif %} {{ 'cart.general.checkout' | t }}

{% if additional_checkout_buttons %}

{{ content_for_additional_checkout_buttons }}
{% endif %}

{% if show_continue_link %}
{{ continue_link_html }}
{% endif %}

{% else %}

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

{% if show_continue_link %}

{% include ‘icon-cart’ %}
{{ ‘cart.general.continue_shopping’ | t }}

{% endif %}

{% endif %}

{% if has_sidebar %}

{% for block in section.blocks %} {% if block.type == 'image' %} {% assign image = block.settings.image %} {% if image %} {% include 'rimg', img: image, class: 'cart-sidebar-item-image', size: '445x', lazy: true, canvas: true %} {% else %} {{ 'image' | placeholder_svg_tag: 'placeholder--image cart-sidebar-item-image' }} {% endif %} {% endif %}

{% if block.type == ‘richtext’ %}

{{ block.settings.richtext }} {% endif %}

{% if block.type == ‘page’ %}

{{ pages[block.settings.page].content }} {% endif %} {% endfor %}
{% endif %}

{% schema %}
{
“name”: “Cart page”,
“class”: “cart–section”,
“max_blocks”: 2,
“settings”: [
{
“type”: “checkbox”,
“id”: “enable_order_notes”,
“label”: “Enable order notes text box”,
“default”: false
},
{
“type”: “header”,
“content”: “Shipping estimator”
},
{
“type”: “checkbox”,
“id”: “enable_shipping_calc”,
“label”: “Enable shipping estimator”,
“default”: true
},
{
“type”: “text”,
“id”: “shipping_calc_default_country”,
“label”: “Default country”,
“default”: “United States”
}
],
“blocks”: [
{
“type”: “richtext”,
“name”: “Rich text”,
“limit”: 1,
“settings”: [
{
“id”: “richtext”,
“type”: “richtext”,
“label”: “Rich text”,
“default”: “

Use this section to welcome customers to your store, say a bit about your brand, or share news and seasonal promotions.


}
]
},
{
“type”: “image”,
“name”: “Image”,
“limit”: 1,
“settings”: [
{
“id”: “image”,
“type”: “image_picker”,
“label”: “Image”
}
]
},
{
“type”: “page”,
“name”: “Page”,
“limit”: 1,
“settings”: [
{
“id”: “page”,
“type”: “page”,
“label”: “Choose page”
}
]
}
]
}

{% endschema %}

lastly the cart.appikon.json.liquid:

{%- layout none -%}
{
“items”: [
{%- for item in cart.items -%}
{
“id”: {{ item.id | json }},
“collectionIds”: [
{%- for productCollection in item.product.collections -%}
{{ productCollection.id | json }}

{% unless forloop.last %},{% endunless %}
{% endfor %}
]
}{% unless forloop.last %},{% endunless %}
{%- endfor -%}
]
}

1 Like

@sohan

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

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

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

Here is the url but the password is still enabled!

https://findfunk.com/

1 Like

@sohan

if you have front end password is confidential so please to a personal message as you like.

what do you mean? need the password or should i disable it?

@sohan

yes, please

@sohan

can you please disable your apps and check

How do i disable the apps?

@sohan

go to apps >> and check cart related apps

do you want me to delete the ones that are cart related?

@sohan

nope just disable if no option so delete

i dont seem to be able to disable all of them but i disabled “frequently bought together” here is a list if you could explain which ones probably affect the cart:

AfterShip Order Tracking & SMS

Areviews - reviews importer

EU Cookie bar by Booster Apps

BEST Currency Converter

Facebook

Frequently Bought Together

Klaviyo - Email Marketing

Oberlo

Photo Resize by Pixc

SMSBump Marketing & automation

Tracktor by ShopPad

Volume & Discounted Pricing

i found that it has to do with the currency converter and now i fixed it but another problem came upp it now shows both the compare prize and my selling prize aswell as showing my currency before and after the prize. like if the prize is 499 it shows

“kr (currency) 499 SEK (currency)” in the cart…

1 Like

@sohan

great can you try anther app