Shopify themes, liquid, logos, and UX
Hi,
You need to work on Liquid and CSS
Example of liquid will be used in product template
{% if product.compare_at_price > product.price %}
{% assign discount_percent = ((product.compare_at_price - product.price) / product.compare_at_price) * 100 | money_without_currency %}
<span class="discount-percentage">Save {{ discount_percent }}%</span>
{% endif %}
Note - First, decide how you want to calculate the discount percentage.
I want to be calculated automatically as I already created many automatic discounts.
where should I past this code?
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