10-31-06 06:24 AM
Hmmm, I forgot to say that I'm using Commerce Server 2007.
Antoine.
antoine.seiter@gmail.com a =E9crit :
> 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 =3D
> DiscountItemCollection.CreateFromCache("Discounts");
>
> DiscountCriteriaFilter filter =3D new
> DiscountCriteriaFilter();
> filter.IncludeInactiveDiscounts =3D 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 ?
> - Is it possible to specify a pipeline to launch when the cache manager
> loads discounts ?
>=20
> Thanks in advance,
>=20
> Antoine.
[ Post a follow-up to this message ]
|