This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Setup & design » Fetching products with discount

Fetching products with discount

Fetching products with discount

Friday 06 January 2006 11:36:21 am - 3 replies

Hi there,

In order to display in a specific toolbar products with have a discount I looking a way to fetch products with a discount. How would you do this ?

Thanks for your help,

Friday 06 January 2006 3:02:49 pm

Maybe the most easy way to do this, is to fetch all products that has a price with discount. $object.data_map.price.has_discount returns true if the price (and product) has a discount and false otherwise.

Friday 06 January 2006 3:43:12 pm

Hi Mads,

This is how I did (this doesn't look nice to me ...)

I do a fetch on all the products.
Then I do a foreach and display only if data_map.price.content.has_discount ...

That's not fine. The best would be to do a fetch with an extended filter I think. I will try to do so. I will keep you updated.


Thursday 14 June 2007 1:50:34 pm

Did you find a way to do this with "extended_filter" ?



You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from