Hello,
I want to get some information about discounts without puting them into
a basket...
Here is my way to get all discounts for a specific product :
public static DiscountItemCollection GetDiscounts(string
catalogName, string productID)
{
DiscountItemCollection allDiscounts =
DiscountItemCollection.CreateFromCache("Discounts");
DiscountCriteriaFilter filter = new
DiscountCriteriaFilter();
filter.IncludeInactiveDiscounts = false;
return allDiscounts.ApplyProductFilter(filter, catalogName,
productID);
}
The DiscountItem objects returned contains an ID, a display name, ...
but neither an offer type, nor an offer amount.
- Is it possible to get a Microsoft.CommerceServer.Marketing.Discount
form these Microsoft.CommerceServer.Runtime.Marketing.DiscountItem ?
>From their ID maybe ?
- Is it possible to specify a pipeline to launch when the cache manager
loads discounts ?
Thanks in advance,
Antoine.


|