Developer forum

Forum » Ecommerce - Standard features » Where can i find documentation on how to implement an order discount field?

Where can i find documentation on how to implement an order discount field?

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Never implemented one of these before, and cand find any info on where i should send the discount code and what response I will get.

Ofcourse, what i mean is where and how do i send the discount code? Is it a cart command value or a checkout form field or what is it? When I search the forum, I find some very old documentation - stating that I shall use a discount module. I presume that´s oboslete documentation, since i cant find any discounts module. I also find documentation on how to create discounts in backend - and that´s all fine, but i am searching for info on how to implement the discount trigger. I am probably just really bad at searching, but i seriously can´t find the documentation that I am looking for.

Hopefully someone can help?

 

/Hans


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Hans,

You should probably search for a "Discount Extender". The new discount module allows you to use a Discount extender to perform additional logic when a discount applies, even to decide that it should not apply anymore. You can even add new parameters that you can use in your additional logic.

The condition though is for the discount to be triggered because otherwise, it will not end up in your discount extender logic.

I believe there are a couple of community posts on this topic.


Adrian

 

You must be logged in to post in the forum