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

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

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.

1 Like

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

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

@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 %}
  {{ product.price }}
{% else %}
  {{ product.price }}
{% 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 :raised_fist:

1 Like

Anytime! Best of luck with your search.

1 Like