Developer forum

Forum » Development » Working with 'Sales discounts' in eCom

Working with 'Sales discounts' in eCom


Reply

Hola..

 

I've been working with the 'Product discount' property within the Sales discount in ecom. The purpose is to give the customer a discount everytime a product is added to the cart(With this discount ofcourse).

 

This is working out fine - only thing is that if the user adds 2 different products, the discount is show in the cart as two seperate products.

 

IE:

Toy #1                    2.000,-
Toy #2                    4.000,-
Discount1                50,-
Discount1                50,-

 

My goal is to get an orderline looking like this:

 

Toy #1                    2.000,-
Toy #2                    4.000,-
Discount1                100,-

 

Anyone got any bright ideas? I could do it with a little javscript, but a 'standard dynamic way of doing things' is preferrable :)

 

Regards

Peter


Replies

 
Reply

This is the standard way of doing it. You're able to code your way out of by adding a product line with (discount amount * occurences in order) * -1 as price

 
Reply

Don't quite follow you Lars, are you able to be more specific?

 

/ Peter

 
Reply

You'd need to code something in .Net that adds an order line to the order containing a negative price equivalent to the number of products qualifying for discount multiplied with the discount price.

 

You must be logged in to post in the forum