Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Discount coupon applied to all products in cart View modes: 
User avatar
Member
Member
aezzell-gpworldwide - 1/7/2011 7:18:46 PM
   
Discount coupon applied to all products in cart
I'm not sure if this is a bug or just an ill-conceived feature, but it doesn't seem right to me.

I have a shopping cart with 3 products. I have 4 coupon codes that apply to all 3 products.

When I add 1 product to the cart & apply the coupon code, the correct amount is deducted from the price.

But if I have 2 or 3 products in the cart, the discount is applied to all the products.

Is this really the way the discount coupons are supposed to work? I can't recall ever encountering this behavior in an online store. When you have a discount code, it applies ONCE, not to each item in the cart.

How can I get the desired behavior, which is to subtract a given amount once from the cart total when the code is provided?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 1/10/2011 6:09:48 AM
   
RE:Discount coupon applied to all products in cart
Hello,


it applies the discount to all items in the shopping cart which are allowed in:

CMSDesk -> Tools -> E-commerce -> Discount coupons -> edit -> Products

The absolute discount is not supported, by default, but you could follow this knowledge base article: Absolute deduction from the total price using coupons.


Best regards,
Helena Grulichova

User avatar
Member
Member
aezzell-gpworldwide - 1/10/2011 7:46:44 AM
   
RE:Discount coupon applied to all products in cart
Thank you. I tried following that article, but was unable to get the custom e-commerce provider installed.

I ended up inserting this code:

if (this.ShoppingCartInfoObj.CartItems.Count > 1)
{
// Don't apply the discount if the cart contains more than one item
lblError.Visible = true;
lblError.Text = "You may not apply the promotion code to more than one ILA.<br/>Please update your cart so that it contains only one ILA, or remove the promotion code.";
ShoppingCartInfoObj.ShoppingCartDiscountCouponID = 0;
}

It's not ideal, but as we don't expect people to be buying more than one product at a time, it will do for now.

I still maintain that applying the discount code to every item to which it applies is not a standard approach for e-commerce. I've never encountered that, and I shop online a lot.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 1/11/2011 3:12:10 AM
   
RE:Discount coupon applied to all products in cart
Hello,


I understand it would be helpful. We will consider it as a new feature to the next versions.


Best regards,
Helena Grulichova