How to get the discounts that are applied in the Order and how to insert custom component in

hi,

I want to get the list of discounts that are eligible for discounts in an order. But this discout list should I get before the discounts applied in the basket. So that I can remove the specific discount among the discounts according to my need.

How can I get the discount list and Can I insert the my custom component just after getting the discount list and after successful execution of component, discount should be applied to the order.

Any help will be really appericiable.

(Targetting Expression can not be fit in my case. So plz Don't suggest me to use Target Expression instead of Custom Component)

Thanks

Sachin Saxena

[678 byte] By [SachinSaxena] at [2008-2-12]
# 1

Sachin,

David Lott from the CS product team provided a solution to a similiar situation in a post on the TechNet groups:

DiscountItemCollection allDiscounts = DiscountItemCollection.CreateFromCache("Discounts");

DiscountCriteriaFilter filter = new DiscountCriteriaFilter();

DiscountItemCollection applicableDiscounts = allDiscounts.ApplyProductFilter(filter, "catalog", "product");

Additional documentation on the DiscountCriteriaFilter is available at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdkmref/html/T_Microsoft_CommerceServer_Runtime_Marketing_DiscountCriteriaFilter.asp

You should be able to adapt this to what you're asking for without too much difficulty.

JosephJohnson at 2007-9-4 > top of Msdn Tech,Commerce Server,Commerce Server 2007...