Personalized checkout and custom promotions with Shopify Scripts
Ive searched all over to find out how to show clearly on the collection productgrid the percentage the costumer will save but somehow I cant find anything about it anywhere and it only shows a yellow dot.. but when I click the product it look totally fine in the product page..
So hopefully someone in here have the solution the solve my problem.
Thanks a lot!!
I fixed it myself never mind 🙂
For others who might run into the same issue heres what I did.
shopify.admin - Themes - press the ... - edit codes - search for card-product.liquid - find the show-badges mine were at line 132 - remove the "<span id="NoMediaStandardBadge-{{ section_id }}-{{ card_product.id }}" class="badge badge--bottom-left color-{{ settings.sale_badge_color_scheme }}">{{ 'products.product.on_sale' | t }}</span>" - insert
{%- assign savings = card_product.compare_at_price | minus: card_product.price | times: 100.0 | divided_by: card_product.compare_at_price | round | append: '%' -%}
<span id="NoMediaStandardBadge-{{ section_id }}-{{ card_product.id }}" class="badge badge--bottom-left color-{{ settings.sale_badge_color_scheme }}">{{ savings }} OFF</span>
I´d remove the OFF to only show the percentage. 🙂
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024