Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Product Discounts View modes: 
User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 3/9/2012 11:01:58 AM
   
Product Discounts
I'm trying to implment a somewhat simple product with volume discounts and options. For example, I'd like have a single credit card with a single item/service on it. I'd also like to have the ability to purchase 5 or 10 or 50 credit cards with 1 or many of the same items/services on it.

For instance:
Simple
I want to purchase 1 credit card with 1 credit on it for a car wash, total $10.

Apply a volume discount of 20%
I want to purchase 5 credit cards each with 1 credit for a car wash on it, total $40 ($10 * 5 * 20%)

Apply a volume discount of 30%
I want to purchase 5 credit cards each with 5 credits on them for car washes, total $175 ($10 * 25 * 30%)

Can this be done out of the box?

I tried setting up a single credit card product, applied volume discounts and also added options as items/services per credit card. This works somewhat but only applies the volume discount to the product and not the options associated with the product. Essentially, I'm using the options as additional products within the main product. I know this isn't how it was setup to work but thought maybe there might be another way of doing this.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 3/23/2012 7:21:41 AM
   
RE:Product Discounts
Still looking for a solution if anyone has one.

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 3/27/2012 2:27:28 AM
   
RE:Product Discounts
Hello,

This scenario unfortunately cannot be set up out of the box. Product options do not count for volume discounts (mostly due to general design where you can have more options of the same category selected for different products, e.g. shirt sizes, etc.), but new customization model in 6.0 allows us to do that with few lines of code.
The particular solution would depend on how exactly are your volume discounts calculated, we will need more details here:

Are the product options defined as unit and you can select their amount, or are there predefined credit volumes as individual options?
In other words, do you have a single option (credit) with textbox for entering its amount, or something like A) 1 credit, B) 5 credits, C) 10 credits ?

Another thing is how the product amount and credit amount influence the volume discount. Is there a linear multiplication (number of credit cards * number of credits per card) leading to total credit amount, or is it rather that number of credit cards sets one scale of volume discounts, while number of credits per card sets a volume discount for one individual card?

Maybe more or all possible situation will be enough to understand... Now we don't know if 1 card with 5 credits has any discount... in the multiplication logic, it would be the same as 5 cards each with 1 credit..

Just to suggest the customization - it could be placed in the GetDiscountsInternal method override from the CustomShoppingCartItemInfoProvider, which can be already found as a sample customization in the default installation in ~\App_Code\CMSModules\Ecommerce\Samples\CustomShoppingCartItemInfoProvider.cs

Thank you in advance for further information.

Regards,
Zdenek