solidusio-contrib / solidus_sale_prices

Completely based on spree_sale_prices
BSD 3-Clause "New" or "Revised" License
10 stars 30 forks source link

Filter Products by 'on_sale? #26

Closed ignaciosm closed 5 years ago

ignaciosm commented 5 years ago

Hello,

Is there a way to filter products by 'on_sale?'. Meaning, get the list of the products that have a special price && that price is active now.

I've been trying something like: Spree::Product.where(on_sale?: true) but it doesn't work

Thanks!

seandawes commented 5 years ago

We handle this by doing it in our product exports via another column in the export. Than do the work in excel