Developer forum

Forum » Development » Discount products

Discount products


Reply

Hi

I've created some products and defined discounts for some of the products.

How is it possible to make a list only showing the discount products?

Jon


Replies

 
Nicolai Høeg Pedersen
Reply
Right now that is not possible...

With 7.2 though, there will be a new template tag returning true or false if a product have a discount. In that way you can publish all categories and make a condition in your template that only renders products with discounts.

Other option is to use notification subscriber (Dynamicweb.Notifications.eCommerce.ProductList.BeforeSort) and remove all products from the collection that is being rendered that does not have a discount:
http://engage.dynamicweb-cms.com/api/extensibility/?Dynamicweb~Dynamicweb.Notifications.eCommerce+ProductList.html
 
Reply
Thanks for the quick reply

Jon

 

You must be logged in to post in the forum