Hi Brian,
How are you doing?
I am also stuck with the same issue. I tried your given method but of course, it didn’t work for me due to a different theme. I would greatly appreciate it if you can help me to fix this for my store I am using a Shopify Venture Theme.
Thanks
Viky
Can you do this for my website? i really really need this!
Mike717
February 23, 2021, 12:18am
44
Hey, it doesn’t work well for debut theme, can you please help:
c3ng
August 6, 2021, 6:26pm
45
Hi Brian!
I’m also trying to update the cart page to show the amount of discount the customer is getting. However, when I follow the steps to my Minimal Shopify Theme, it causes the product images in the cart to get really large. Is there a way to modify this code for the Minimal Theme?
Courtney
Hi Brian,
I am interested in getting similar thing done. Could you please help. I am using Empire theme which is a third party them.
Works fine but I am getting an error msg in the cart: (I am using debut theme = there is no theme.scss but theme.css = I’ve pasted the 1st chunk of code there. please advice:
Error msg:
Liquid error (sections/cart-template.liquid line 28): Could not find asset snippets/hs-image-utils.liquid
Just figured out the solution for debut theme error in line 28: replace the line 27,18,19 with this code
(this is the part of your original code) Enjoy!!
1 Like
If merchants need professional assistance to get this customization taken care of for their store, contact me by DM or email .
Hi @BrianAtWork ; I’d like to have the same, can you please message me or email me? thank you
Hi Brian!
We have a third party theme and are looking to implement the same thing you did on this thread here.
We would absolutely be open to paying you for your help. Please send me a PM if you are available and willing to help out.
Hi Brian,
Can you please help me too,
I’m using Prestige theme, my cart.liquid and cart-template.liquid are as follows:
Cart.liquid:
{% include ‘elspw_cart’ %}
{% section ‘cart-template’ %}
{% section ‘recently-viewed-products’ %}
{% render ‘nosto-element’, id:‘cartpage-nosto-1’ %}
{% render ‘nosto-element’, id:‘cartpage-nosto-2’ %}
{% render ‘nosto-element’, id:‘cartpage-nosto-3’ %}
Cart-template.liquid:
{%- capture section_settings -%}
{
“type”: {{ settings.cart_type | json }},
“itemCount”: {{ cart.item_count }},
“drawer”: false,
“hasShippingEstimator”: {% if section.settings.show_shipping_estimator and cart.item_count > 0 %}true{% else %}false{% endif %}
}
{%- endcapture -%}
{%- if cart.item_count == 0 -%}
{{ 'cart.general.empty' | t }}
{%- if settings.cart_show_free_shipping_threshold -%}
{%- assign threshold_in_cents = settings.cart_free_shipping_threshold | times: 100 -%}
{%- capture remaining_amount -%}{{ cart.total_price | minus: threshold_in_cents | abs | money_without_trailing_zeros }} {%- endcapture -%}
{{- 'cart.general.free_shipping_remaining_html' | t: remaining_amount: remaining_amount -}}
{%- endif -%}
{{ ‘cart.general.empty_button’ | t }}
{%- else -%}
{{ 'cart.general.title' | t }}
{%- if settings.cart_show_free_shipping_threshold -%}
{%- assign threshold_in_cents = settings.cart_free_shipping_threshold | times: 100 -%}
{%- if cart.total_price >= threshold_in_cents -%}
{{- 'cart.general.free_shipping' | t -}}
{%- else -%}
{%- capture remaining_amount -%}{{ cart.total_price | minus: threshold_in_cents | abs | money_without_trailing_zeros }} {%- endcapture -%}
{{- 'cart.general.free_shipping_remaining_html' | t: remaining_amount: remaining_amount -}}
{%- endif -%}
{%- endif -%}
{% render ‘cart-items’ %}
{%- if settings.cart_enable_notes -%}
{{ 'cart.general.add_note' | t }}
{{ cart.note }}
{%- endif -%}
{%- capture shipping_and_taxes_notice -%}{{ 'cart.general.shipping_and_taxes_notice' | t }}{%- endcapture -%}
{%- if cart.cart_level_discount_applications != blank -%}
{%- for discount_application in cart.cart_level_discount_applications -%}
{{ 'cart.general.discount' | t }} ({{ discount_application.title }}): -{{ discount_application.total_allocated_amount | money_without_trailing_zeros }}
{%- endfor -%}
{%- endif -%}
{{ 'cart.general.total' | t }}: {{ cart.total_price | money_without_trailing_zeros }}
{%- if shipping_and_taxes_notice != blank -%}
{{ shipping_and_taxes_notice }}
{%- endif -%}
{{ ‘cart.general.checkout’ | t }}
{%- if section.settings.show_shipping_estimator -%}
{{ 'cart.shipping_estimator.title' | t }}
{%- render 'icon' with 'select-arrow' -%}
{{ all_country_option_tags }}
{%- render 'icon' with 'select-arrow' -%}
{{ ‘cart.shipping_estimator.estimate’ | t }}
{%- endif -%}
{%- endif -%}
{% schema %}
{
“name”: “Cart page”,
“class”: “shopify-section–bordered”,
“settings”: [
{
“type”: “checkbox”,
“id”: “show_shipping_estimator”,
“label”: “Show shipping rates calculator”,
“default”: true
},
{
“type”: “text”,
“id”: “shipping_estimator_default_country”,
“label”: “Default country to use”,
“info”: “If your customer is logged-in, the country in his default shipping address will be selected.”,
“default”: “United States”
}
]
}
{% endschema %}
Hey, any chance you can help do this on my site? I would love people to see how much they saved when checking out!!
Hi! I tried implementing your solution on the Dawn theme but it doesn’t work. Can you help me out?
First of all there is no theme.scss only theme.liquid, and I pasted that initial code at the very bottom after /body
/html
Secondly, I don’t have cart-template.liquid
I only have
main-cart-footer.liquid
main-cart-items.liquid
component-cart-items.css
component-cart-css
I tried in each one and it doesn’t work.
Would your solution work for the Dawn theme and am I doing something wrong?
Thanks!
I’m gonna be totally honest, I have no clue what your talking about ha. I just launched a template site and added crap to the store… I would love to help you figure it out but you are not speaking my language ha. ?
I added your script to my “Dawn” theme in shopify and it doesn’t work.
Was wondering if it works only for some themes and not others.
Thank you!
Hello.
I hope you are well. Are you able to help me implement this on my store please. I am using the dawn theme. Hope to hear from you soon. Not having this is killing my conversion. Thanks. Tom
UyenP
April 11, 2022, 6:56pm
58
Hello Brian,
Would you mind creating a code to show the total discounted price for the minimal theme? I tried the codes above but my cart page looked really off and I’m guessing that it is because it’s meant to be used for another theme. Thank you.
@BrianAtWork seems to no longer active here. I am using Dawn, and I’d like to do this on my store.
Anyone got code that will work with Dawn version 5.0, or is there a developer who could do this?
I used an app in the end. 4.99usd approx a month all-in-1 discount in cart.
Does the discount codes and breaks down the amount saved.