Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Commerce Server Campaigns csf > How to get a di...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 290 of 313
Post > Topic >>

How to get a discount ?

by antoine.seiter@[EMAIL PROTECTED] Oct 30, 2006 at 04:21 AM

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.
 




 3 Posts in Topic:
How to get a discount ?
antoine.seiter@[EMAIL PRO  2006-10-30 04:21:20 
Re: How to get a discount ?
antoine.seiter@[EMAIL PRO  2006-10-30 05:13:11 
Re: How to get a discount ?
antoine.seiter@[EMAIL PRO  2006-10-30 06:56:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Nov 23 7:27:24 CST 2008.