All things Shopify and commerce
Hey,
I have a lot of products on my shop which has a "price" lower than "compare to price", which shows like this in the store:
I'm trying to tag all products with this configuration, but until now I can't find any solution to group every discounted price in admin
Is there any way to add a tag to all this products, or add all to an collection
Or create a automatic collection which agroups these sale products?
Maybe with metafields tho?
Site URL: https://www.miramontes.com.br/
Theme: Avone 2.0
Solved! Go to the solution
This is an accepted solution.
@Miramontes oi todo bem?
Se pode fazer isso com Liquid, seu exemplo foi correto.
Expanding on that, you could do something like this to style the price differently.
{% if product.price < product.compare_at_price %}
<span class="sale-price-styling">{{ product.price }}</span>
{% else %}
<span>{{ product.price }}</span>
{% endif %}
Just look for the code that controls that block, in your theme editor. I would start with the template product.liquid, and read the code from there, to find the snippet with the product details, maybe product-form.liquid.
Another thing you can do is overlay a sale badge, I've done this before and it seems to have a positive effect. Example graphics: https://www.freepik.com/search?format=search&query=sale&type=vector
Boa sorte ✊
The issue is exactly to tag or add an metafield to these discounted products
I'm asking if there's a way to do it
Maybe using Shopify code, something like:
{% if product.compare_at_price > product.price %}
doing something here maybe?
{% endif %}
Hey, @Miramontes
Happy to help. I would recommend utilizing a third-party app such as Leap Auto Tags. This app will allow you to create rules and conditions to automatically apply tags to customers, products, and orders.
If there is anything else I can help you with, please let me know.
Dirk | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Thanks for the tip! I'm definitely gonna check it out
Still i'm wondering if has some free solution to my problem,
but if doesn't im going with app's route
Anytime! Best of luck with your search.
Dirk | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
This is an accepted solution.
@Miramontes oi todo bem?
Se pode fazer isso com Liquid, seu exemplo foi correto.
Expanding on that, you could do something like this to style the price differently.
{% if product.price < product.compare_at_price %}
<span class="sale-price-styling">{{ product.price }}</span>
{% else %}
<span>{{ product.price }}</span>
{% endif %}
Just look for the code that controls that block, in your theme editor. I would start with the template product.liquid, and read the code from there, to find the snippet with the product details, maybe product-form.liquid.
Another thing you can do is overlay a sale badge, I've done this before and it seems to have a positive effect. Example graphics: https://www.freepik.com/search?format=search&query=sale&type=vector
Boa sorte ✊
User | RANK |
---|---|
42 | |
42 | |
32 | |
24 | |
21 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023