Hey
I want to apply an order discount only on specific products. how do i do that?
thank you
Merav
Hi,
You can use ECommerceContext.CurrentShoppingCart.ShoppingCartItems.All("SKU.SKUInternalStatusID = 1") (insert your condition)
ECommerceContext.CurrentShoppingCart.ShoppingCartItems.All("SKU.SKUInternalStatusID = 1")
But if the condition is too difficult, I think you should create your custom macro.
I think you should work with Order discounts. You must try to configure all rules in your product inventory instead of handling it in your code as much as possible.
There are various controls that you can have
Catalog discounts
Working with Order Discounts
Working with volume discounts
Writing rules on your own should only be considered once you have exhausted all these options.
Thanks, Chetan
does not seem to work :(
Please, sign in to be able to submit a new answer.