Hey guys how can i achieve this:
I want to change this to a Original price with dynamic values, When i change the compare price it will just get placed after the normal price, How can i put this in with different price? - this website got it correct i want to do it just like them https://www.kazaarfragrances.com/collections/parfum-herren
This is how it looks for me :
the grey price needs to be like on the first website and we the sametext - Does anyone know how to do it?
Hi @Kessarkess This can be achievable with the help of custom coding, I can provide you the base code, and you need to edit it according to your theme. As for providing you the exact code I need to look into the theme code files, without that I will not be able to provide you the exact code.
{% for product in collection.products %}
## {{ product.title }}
Original Price: {{ product.price | money }}
{% if product.compare_at_price > product.price %}
Discount: {{ product.compare_at_price | minus: product.price | money }}
Discount Percentage: {{ product.compare_at_price | minus: product.price | times: 100 | divided_by: product.compare_at_price | round }}%
{% endif %}
{% endfor %}
If you will unable to implement the same then I’m happy to do this for you, let me know. I can implement the changes so that this will work well for you.
Hopefully it will help you. If yes then Please don’t forget hit Like and Mark it as solution!
Best Regards
Sahil