Developer forum

Forum » Development » discount provider

discount provider


Reply

After the update of DW the discounts are placed last and in opposite order in regards to the products.

 

What I whant is to have the discount for that product on the next line.

 

product 1

discount product 1

product 2

discount product 2

 

How do I do that?


Replies

 
Reply

Discounts are added as order lines. You may be able to manipulate with the order in which they are arranged.

 
Reply
Sorensen wrote:

Discounts are added as order lines. You may be able to manipulate with the order in which they are arranged.


How would you go about manipulating the order? 

 
Reply

I have tried to manitupate the order and I have managed to change the order of the products and the order of the discount but the discounts are allways at the bottom.

 

 

 

 
Reply

If each discount is dependent on the product alone, and not the complete order, you could add a product with a negative price to the cart when the product is added to the cart.

 
Reply
Sorensen wrote:

If each discount is dependent on the product alone, and not the complete order, you could add a product with a negative price to the cart when the product is added to the cart.


Ok, so how would you do that and what would happen if you changed the quantity on that product?

 

Right now the discoint is added as a orderline with the discount provider in. Would I still need this?

 

 

You must be logged in to post in the forum