How Do I Tag Or Filter Discounted Products? (Theme Avone 2.0)

Solved
Miramontes
Shopify Partner
16 0 4

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:

aa.pngaa2.png

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

Accepted Solution (1)
JoesIdeas
Shopify Expert
2033 183 536

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

• Creator of Order Automator (automate tagging, fulfillment, Amazon, notifications + more)
• Shopify developer for 10+ years, store owner for 7 years
• I also make guides like Shopify Automation Tips and How to Deal with Fraud / Chargebacks

View solution in original post

Replies 5 (5)
Miramontes
Shopify Partner
16 0 4

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 %}

 

Dirk
Shopify Staff
Shopify Staff
2081 234 476

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

Miramontes
Shopify Partner
16 0 4

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

Dirk
Shopify Staff
Shopify Staff
2081 234 476

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

JoesIdeas
Shopify Expert
2033 183 536

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

• Creator of Order Automator (automate tagging, fulfillment, Amazon, notifications + more)
• Shopify developer for 10+ years, store owner for 7 years
• I also make guides like Shopify Automation Tips and How to Deal with Fraud / Chargebacks