In the ecommerce module it is possible to have discount on how many products the customer buys, in example if a customer buys 20 products he gets a specific discount. But what if I want to make a discount if the customer buys 10 products of a specific product? If the customer buys 10 t-shirts i just want him to get discount on the 10 t-shirts and not on the other products in the cart.
Is there a way of doing this? Or how do I work around this problem?
Developer forum
E-mail notifications
Product quantity discount
Posted on 07/12/2009 10:42:39
Replies
Posted on 07/12/2009 10:50:28
On the Prices you can specify the unit price for at certain quantity, and ecom will automatically include this in the cart calculation.
Posted on 07/12/2009 11:40:55
The function I want is if the customer adds 12 of a specific product then the customer will get a discount on 10 of the 12 products and then ordinary price of the 2 other products.
In example the product costs 10 and the customer buys 12 then he will pay (10x10 - discount) + 2x10.
And that is possible with different unit prices?
In example the product costs 10 and the customer buys 12 then he will pay (10x10 - discount) + 2x10.
And that is possible with different unit prices?
Posted on 07/12/2009 12:45:40
No, that's not possible. The default discounts can't be used either, so you'll have to go for a custom SalesDiscountProvider. You'll find information on this in this document: http://engage.dynamicweb-cms.com/Admin/Public/DWSDownload.aspx?File=%2fFiles%2fFiler%2fDocumentation+portal%2fDynamicweb+CMS%2fDocumentation%2fDevelopment%2f(en-US)_Extensibility_API__Dynamicweb_eCommerce.pdf
Posted on 11/12/2009 10:43:26
Ok thanks for the information.
But that is not anything you are going to implement into the discount module?
I know that in many other systems this function is standard beacause it is often you want to give a discount on quantity of a specific product.
But that is not anything you are going to implement into the discount module?
I know that in many other systems this function is standard beacause it is often you want to give a discount on quantity of a specific product.
Posted on 18/12/2009 09:07:09
Sorry for the late reply. There are no plans for including this no, but if it turns out that there is a high demand for this, who know, maybe sometime.
Posted on 18/12/2009 11:21:31
Do you have any tips about how I should create my own discount provider?
The price should change when the customer adds a specific quantity of products (as in the picture).
The discount should be presented as the attached picture.
/Magnus
Posted on 04/02/2010 11:26:38
Hi Magnus
Could you get the same result if you use variants of the t-shirt with a custom field called 'unit price'?
Main product: T-shirt:
Variants:
1 t-shirt: price: 59, unit price: 59
4 t-shirts: price: 196, unit price: 49
10 t-shirts: price 300, unit price: 30
Then you could either just have those variants (which means that 12 t-shirts would look like 1x10 + 2x1 in the cart) or you could make a custom notification subscriber that listens for cart events and merges the order lines.
- Lasse
Could you get the same result if you use variants of the t-shirt with a custom field called 'unit price'?
Main product: T-shirt:
Variants:
1 t-shirt: price: 59, unit price: 59
4 t-shirts: price: 196, unit price: 49
10 t-shirts: price 300, unit price: 30
Then you could either just have those variants (which means that 12 t-shirts would look like 1x10 + 2x1 in the cart) or you could make a custom notification subscriber that listens for cart events and merges the order lines.
- Lasse
You must be logged in to post in the forum