Developer forum

Forum » Development » Display voucher based discount on products

Display voucher based discount on products

Anders Ebdrup
Anders Ebdrup
Reply

Hi Guys,

 

We are looking into a way to display voucher based discounts on the product list page (PLP) and the product detail page (PDP), but is looks like that it has been blocked in the core code in DW (please find the screen shot below).

I am wondering if there is a good way to work around this? And at the same time I will suggest that the backend user should be able to desire on the discount setup whether or not to have the discount shown on the PLP/PDP pages instead of hardcoding this behaviour in the code.

 

Best regards, Anders

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Anders

So you want to show discounts on a product that is not applicable yet? Voucher code being one of them - but could also be other thresholds like quantity, order limits, shipping methods etc?

Generally the method you highlight will remove discounts where conditions are not met - on a product the voucher code is be definition not met, hence the conditional. In case of the voucher code there are 2 scenarios - one is that the cart actually already have the voucher code and should then display the discount on the product as long as the current cart has the code, or the order can later get the voucher code applied and we already now want to show the discount?

You want something like this?

If there are no cart, the discount will not show up on the product, but if there is a cart, and that cart has a voucher, the discount will be applied on the product?

Or do you want to show the discount before there is actually a cart with the vocuher code on it?

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nicolai,

 

My intention is actually just, that I would just like to be able to display a voucher-related discount on the products when the conditions are met.
Say a voucher code is added to the cart and when browsing the site, I can afterwards display the new discounted for the products.

 

Best regards, Anders

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Thanks for clarifying.

We actually changed that at some point as we got bug-reports on that... I will se what we can do - setting on the discount or in general maybe.

 
Vincent Gercke
Reply

Hi Nicolai
Have you had a chance to look into this? :)

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nicolai,

 

Do you have an update on this? Because our customer is very interested in this feature :-)

 

Best regards, Anders

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nicolai,

 

Do you know if there are any progress for our issue here?

 

Best regards, Anders

 

You must be logged in to post in the forum