Filter only discounted products in Vtex

Good morning, everyone, does anyone know how I can create a search filter to show only discounted products, and not display products with full price?

Thank you.

Janilton

Hello @Janilton! Would this filter be used by the users accessing your store?

@Janilton all good?

Are you talking about VTEX IO or the CMS?

If it’s IO, you can configure sorting parameters here Search Result<!-- --> by <!-- -->vtex

If it’s in the CMS, you can use a script to swap the existing sorting parameter for, for example, lowest price, newest arrivals, etc.

Check out this documentation: Can I order my product as I want?

In short, you’re not filtering — you’re sorting.

Hope this helps!

Cheers,
EstevĂŁo.