Discount Priority?
Iwant to apply all the discounts maintained below:
1. Contract Discount
2. Product Discount
3. Order Threshold Discount
4. One of the lowest rank discount among some other discounts.
How can I handle this situation in the Commerce Server?
Hi Sachin,
Can you be more specific about what you're trying to accomplish? YourContract, Product, Order Threshold and other discounts should all be able to be captured by the Discount object. The orders pipelines will apply them based on their relative priority, items in the basket, and targeting expressions based on the user profile.
Thanks,
David
Hi David,
Thanks for your suggestion.
Here I want to be more specific in my problem that All the 4 types of discounts should be apply in one order form. While applying all the discounts together I have to custom code for the 4th type where I will find min rank in the discount and then I will apply it along with first three discounts. Is there any way that I need not to do custom code for finding the min rank.
One More Question:- Can we split Order Discount component..(Can I get source code of the Order Discount Component) becuase this component almost implements all the discount internally in it.)
Hi Sachin,
What do you mean "find min rank in the discount"? Discounts all have a priority and are applied from highest priority (lowest number) to lowest priority (highest number) See All Discounts -> Set discount priorites in the Marketing Manager UI.
The source code for the Order Discount component is not available. What are you trying to do that it does not implement?
Thanks,
David
Hi David,
I am sorry that I was not clear in my requirnment. I
want to ask whether How CSF works with Order Discount component? If we
write our own component then on which component or Stage of Order
pipeline it works?
One more question:
In the Order discount component
Order disctinary have only one key "item._cy_iadjust_currentprice".
How it stores multiple line items to store the data?