|
Home > Archive > Content Selection Framework > October 2006 > How to display discount on the product detail page
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to display discount on the product detail page
|
|
|
| I want to display discount information in the product detail page.
which discount to display based on what product is displaying in the detail
page.
I also want to mark the product that has discount in the product list page.
I am trying to look for sample code. But it seems no where tell me how to
locate or detect if there is discount specifically for certain product.
anyone can help me?
howey
| |
| Joseph Johnson 2006-10-12, 1:24 pm |
| Howey,
Discounts are applied to items in a customer's basket. I'm not sure if MS
packaged up any sort of system for displaying discounts which affect a given
product prior to being added to the customer's basket.
Thinking about this, it makes quite a bit of sense because not all discounts
are "stackable" (IE: If you get $5 off this product, you are not eligible
for $2 off this product, so displaying both discounts on the product details
page could be misleading to customers).
Joe
"??" <@discussions.microsoft.com> wrote in message
news:53308F26-57E5-4088-A123-4D94E332F56C@microsoft.com...
>I want to display discount information in the product detail page.
> which discount to display based on what product is displaying in the
> detail
> page.
>
> I also want to mark the product that has discount in the product list
> page.
>
> I am trying to look for sample code. But it seems no where tell me how to
> locate or detect if there is discount specifically for certain product.
>
> anyone can help me?
>
> howey
| |
|
| Hi Joseph,
For every discounted product we only have one product discount apply to
it.
without display the discount content in the product detail page how can
we let customer know there actually has a discount on that product?
howey
"Joseph Johnson" wrote:
> Howey,
>
> Discounts are applied to items in a customer's basket. I'm not sure if MS
> packaged up any sort of system for displaying discounts which affect a given
> product prior to being added to the customer's basket.
>
> Thinking about this, it makes quite a bit of sense because not all discounts
> are "stackable" (IE: If you get $5 off this product, you are not eligible
> for $2 off this product, so displaying both discounts on the product details
> page could be misleading to customers).
>
> Joe
>
> "??" <@discussions.microsoft.com> wrote in message
> news:53308F26-57E5-4088-A123-4D94E332F56C@microsoft.com...
>
>
>
| |
| Joseph Johnson 2006-10-12, 7:26 pm |
| Howey,
The direct mailer and advertisements engine is designed to inform customers
of promotions such as this. Like I said before, it doesn't make sense to
apply discounts to items before customers add that item to the basket
because the discount might not apply to that customer.
I realize that in your specific set-up this might not make sense, but think
about other solutions where you'd want it to work this way. If you've got
some time to kill, I'd highly recommend viewing the Marketing screencast on
TechNet so you can familiarize yourself with what this system is actually
doing.
http://www.microsoft.com/technet/pr...7/webcasts.mspx
Joe
"??" <@discussions.microsoft.com> wrote in message
news:5BD27F9E-0B55-4E85-A904-A075DD268AFF@microsoft.com...[vbcol=seagreen]
> Hi Joseph,
> For every discounted product we only have one product discount apply
> to
> it.
> without display the discount content in the product detail page how
> can
> we let customer know there actually has a discount on that product?
>
> howey
>
> "Joseph Johnson" wrote:
>
| |
|
| Hi Joseph,
Thank you for your reply, I am now viewing that webcast.
But I still don't get it. if we have discount on product, how we suppose
to let our customer know it? I just want my customer know which product is on
sale when they look at my product list.
Best Regards
howey
"Joseph Johnson" wrote:
> Howey,
>
> The direct mailer and advertisements engine is designed to inform customers
> of promotions such as this. Like I said before, it doesn't make sense to
> apply discounts to items before customers add that item to the basket
> because the discount might not apply to that customer.
>
> I realize that in your specific set-up this might not make sense, but think
> about other solutions where you'd want it to work this way. If you've got
> some time to kill, I'd highly recommend viewing the Marketing screencast on
> technet so you can familiarize yourself with what this system is actually
> doing.
>
> http://www.microsoft.com/technet/pr...7/webcasts.mspx
>
> Joe
>
> "??" <@discussions.microsoft.com> wrote in message
> news:5BD27F9E-0B55-4E85-A904-A075DD268AFF@microsoft.com...
>
>
>
| |
| Joseph Johnson 2006-10-12, 7:26 pm |
| Howey,
You might want to look into extending your catalog schema to include a new
field indicating which items are on sale, or possibly how much the sale
price is.
Joe
"??" <@discussions.microsoft.com> wrote in message
news:1B279947-D3AC-43A9-B491-2620F84C7087@microsoft.com...[vbcol=seagreen]
> Hi Joseph,
> Thank you for your reply, I am now viewing that webcast.
> But I still don't get it. if we have discount on product, how we
> suppose
> to let our customer know it? I just want my customer know which product is
> on
> sale when they look at my product list.
>
> Best Regards
> howey
>
> "Joseph Johnson" wrote:
>
| |
|
| Hi Joseph,
Thank you for your reply.
By what you are saying, everytime I set up a discount, I have to
manually change the product custom property and I have to remember to disable
it when the discount promotion is expired. Is that correct? or is there any
other way I can make the whole procedure easier?
Best Regards
Howey
"Joseph Johnson" wrote:
> Howey,
>
> You might want to look into extending your catalog schema to include a new
> field indicating which items are on sale, or possibly how much the sale
> price is.
>
> Joe
>
> "??" <@discussions.microsoft.com> wrote in message
> news:1B279947-D3AC-43A9-B491-2620F84C7087@microsoft.com...
>
>
>
| |
| David Lott [MSFT] 2006-10-12, 7:26 pm |
| Hi Howey,
If you're using Commerce Server 2007, you can use runtime discount
filtering for this scenario. See
http://msdn.microsoft.com/library/d...-us/sdkmref/htm
l/ N_Microsoft_CommerceServer_Runtime_Marke
ting.asp for more info. The
basic idea is create a DiscountItemCollection from the cache, then
ApplyProductFilter for a specific product. You will be left with all the
discounts (if any) that related to that product. A DiscountCriteriaFilter
can be used to further fine tune your results.
Thanks,
David Lott
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2006 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
From: =?Utf-8?B?54Gr57+8?= <@discussions.microsoft.com>
Subject: Re: How to display discount on the product detail page
Date: Thu, 12 Oct 2006 12:04:01 -0700
Newsgroups: microsoft.public.commerceserver.campaigns_csf
Hi Joseph,
Thank you for your reply.
By what you are saying, everytime I set up a discount, I have to
manually change the product custom property and I have to remember to
disable
it when the discount promotion is expired. Is that correct? or is there any
other way I can make the whole procedure easier?
Best Regards
Howey
"Joseph Johnson" wrote:
> Howey,
>
> You might want to look into extending your catalog schema to include a
new
> field indicating which items are on sale, or possibly how much the sale
> price is.
>
> Joe
>
> "??" <@discussions.microsoft.com> wrote in message
> news:1B279947-D3AC-43A9-B491-2620F84C7087@microsoft.com...
is[vbcol=seagreen]
to[vbcol=seagreen]
you've[vbcol=seagreen]
screencast[vbcol=seagreen]
actually[vbcol=seagreen]
how[vbcol=seagreen]
sure[vbcol=seagreen]
affect a[vbcol=seagreen]
the[vbcol=seagreen]
me[vbcol=seagreen]
>
>
>
| |
|
| Hi David,
Thanks for your reply.
Do you have any sample code about using the cache to get
discountItemcollection?
And also, my rebate problem still not solved. the idea for the rebate is
we only display the rebate information including the rebate amount and the
product after rebate price on the product list page and product detail page.
the the rebate amount should not affect any shopping cart caculation.
If you can help me on that, it will really helpful and appreciated too.
Best Regards
howey
"David Lott [MSFT]" wrote:
> Hi Howey,
>
> If you're using Commerce Server 2007, you can use runtime discount
> filtering for this scenario. See
> http://msdn.microsoft.com/library/d...-us/sdkmref/htm
> l/ N_Microsoft_CommerceServer_Runtime_Marke
ting.asp for more info. The
> basic idea is create a DiscountItemCollection from the cache, then
> ApplyProductFilter for a specific product. You will be left with all the
> discounts (if any) that related to that product. A DiscountCriteriaFilter
> can be used to further fine tune your results.
>
>
> Thanks,
> David Lott
>
> Microsoft
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> You assume all risk for your use. © 2006 Microsoft Corporation. All rights
> reserved.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> --------------------
> From: =?Utf-8?B?54Gr57+8?= <@discussions.microsoft.com>
> Subject: Re: How to display discount on the product detail page
> Date: Thu, 12 Oct 2006 12:04:01 -0700
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
>
> Hi Joseph,
> Thank you for your reply.
> By what you are saying, everytime I set up a discount, I have to
> manually change the product custom property and I have to remember to
> disable
> it when the discount promotion is expired. Is that correct? or is there any
> other way I can make the whole procedure easier?
>
> Best Regards
> Howey
>
>
>
> "Joseph Johnson" wrote:
>
> new
> is
> to
> you've
> screencast
> actually
> how
> sure
> affect a
> the
> me
>
| |
| David Lott [MSFT] 2006-10-13, 7:33 pm |
| Hi Howey,
Try the CreateFromCache method
http://msdn.microsoft.com/library/d...-us/sdkmref/htm
l/ Overload_Microsoft_CommerceServer_Runtim
e_Marketing_DiscountItemCollection
_CreateFromCache.asp
About the rebates, you really can't get the marketing system to calculate
the rebate in, so displaying it on the product page either though the
runtime discount filtering or via some custom catalog properties is
probably the way to go.
Thanks,
David Lott
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2006 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
From: =?Utf-8?B?54Gr57+8?= <@discussions.microsoft.com>
Subject: Re: How to display discount on the product detail page
Date: Thu, 12 Oct 2006 15:43:02 -0700
Newsgroups: microsoft.public.commerceserver.campaigns_csf
Hi David,
Thanks for your reply.
Do you have any sample code about using the cache to get
discountItemcollection?
And also, my rebate problem still not solved. the idea for the rebate
is
we only display the rebate information including the rebate amount and the
product after rebate price on the product list page and product detail
page.
the the rebate amount should not affect any shopping cart caculation.
If you can help me on that, it will really helpful and appreciated too.
Best Regards
howey
"David Lott [MSFT]" wrote:
> Hi Howey,
>
> If you're using Commerce Server 2007, you can use runtime discount
> filtering for this scenario. See
>
http://msdn.microsoft.com/library/d...-us/sdkmref/htm
> l/ N_Microsoft_CommerceServer_Runtime_Marke
ting.asp for more info. The
> basic idea is create a DiscountItemCollection from the cache, then
> ApplyProductFilter for a specific product. You will be left with all the
> discounts (if any) that related to that product. A
DiscountCriteriaFilter
> can be used to further fine tune your results.
>
>
> Thanks,
> David Lott
>
> Microsoft
>
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> You assume all risk for your use. © 2006 Microsoft Corporation. All
rights
> reserved.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> --------------------
> From: =?Utf-8?B?54Gr57+8?= <@discussions.microsoft.com>
> Subject: Re: How to display discount on the product detail page
> Date: Thu, 12 Oct 2006 12:04:01 -0700
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
>
> Hi Joseph,
> Thank you for your reply.
> By what you are saying, everytime I set up a discount, I have to
> manually change the product custom property and I have to remember to
> disable
> it when the discount promotion is expired. Is that correct? or is there
any
> other way I can make the whole procedure easier?
>
> Best Regards
> Howey
>
>
>
> "Joseph Johnson" wrote:
>
> new
product[vbcol=seagreen]
> is
sense[vbcol=seagreen]
> to
but[vbcol=seagreen]
> you've
> screencast
> actually
page[vbcol=seagreen]
> how
> sure
> affect a
product[vbcol=seagreen]
page.[vbcol=seagreen]
in[vbcol=seagreen]
> the
product[vbcol=seagreen]
> me
>
| |
| Joseph Johnson 2006-10-13, 7:33 pm |
| David,
If you could perhaps clarify this, since I can't find any more documentation
on using these methods, and this seems like something I would use on a lot
of sites.
I'm assuming it would look something like this:
DiscountItemCollection allDiscounts =
DiscountItemCollection.CreateFromCache("Discounts"); //This is the cache
in Web.config, correct?
DiscountCriteriaFilter filter = new DiscountCriteriaFilter();
DiscountItemCollection applicableDiscounts =
allDiscounts.ApplyProductFilter(filter, "catalog", "product"); //Change
catalog and product as appropriate
foreach(DiscountItem item in applicableDiscounts)
{
//display discount details in datagrid?
}
How would we go about hiding certain discounts we might not want customers
to see? Is that in the Awards setting of the CriteriaFilter? I might want
to display a discount on an item, but avoid displaying discounts that
require coupons, so how would I do that?
Joe
"David Lott [MSFT]" <dlott@online.microsoft.com> wrote in message
news:o4vYZXk7GHA.4344@TK2MSFTNGXA01.phx.gbl...
> Hi Howey,
>
> If you're using Commerce Server 2007, you can use runtime discount
> filtering for this scenario. See
> http://msdn.microsoft.com/library/d...-us/sdkmref/htm
> l/ N_Microsoft_CommerceServer_Runtime_Marke
ting.asp for more info. The
> basic idea is create a DiscountItemCollection from the cache, then
> ApplyProductFilter for a specific product. You will be left with all the
> discounts (if any) that related to that product. A DiscountCriteriaFilter
> can be used to further fine tune your results.
>
>
> Thanks,
> David Lott
>
> Microsoft
>
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> You assume all risk for your use. 2006 Microsoft Corporation. All rights
> reserved.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> --------------------
> From: =?Utf-8?B?54Gr57+8?= <@discussions.microsoft.com>
> Subject: Re: How to display discount on the product detail page
> Date: Thu, 12 Oct 2006 12:04:01 -0700
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
>
> Hi Joseph,
> Thank you for your reply.
> By what you are saying, everytime I set up a discount, I have to
> manually change the product custom property and I have to remember to
> disable
> it when the discount promotion is expired. Is that correct? or is there
> any
> other way I can make the whole procedure easier?
>
> Best Regards
> Howey
>
>
>
> "Joseph Johnson" wrote:
>
> new
> is
> to
> you've
> screencast
> actually
> how
> sure
> affect a
> the
> me
>
| |
|
| Hi David,
Now with the code I can search the discount item out. But when I trying
to display the actual html content of the discount, I can not find the
property name I can call using "DiscountItem[Property Name]".
I find that there are only limited property name is given within the
Commerce Server Document. Is there anywhere I can find all the DiscountItem
property name list. Or at least to find out how to get the html content of
the discount item
Best Regards
howey
"David Lott [MSFT]" wrote:
> Hi Howey,
>
> Try the CreateFromCache method
> http://msdn.microsoft.com/library/d...-us/sdkmref/htm
> l/ Overload_Microsoft_CommerceServer_Runtim
e_Marketing_DiscountItemCollection
> _CreateFromCache.asp
>
> About the rebates, you really can't get the marketing system to calculate
> the rebate in, so displaying it on the product page either though the
> runtime discount filtering or via some custom catalog properties is
> probably the way to go.
>
> Thanks,
> David Lott
>
> Microsoft
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> You assume all risk for your use. © 2006 Microsoft Corporation. All rights
> reserved.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> --------------------
> From: =?Utf-8?B?54Gr57+8?= <@discussions.microsoft.com>
> Subject: Re: How to display discount on the product detail page
> Date: Thu, 12 Oct 2006 15:43:02 -0700
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
>
> Hi David,
> Thanks for your reply.
> Do you have any sample code about using the cache to get
> discountItemcollection?
> And also, my rebate problem still not solved. the idea for the rebate
> is
> we only display the rebate information including the rebate amount and the
> product after rebate price on the product list page and product detail
> page.
> the the rebate amount should not affect any shopping cart caculation.
> If you can help me on that, it will really helpful and appreciated too.
>
>
> Best Regards
>
> howey
>
>
> "David Lott [MSFT]" wrote:
>
> http://msdn.microsoft.com/library/d...-us/sdkmref/htm
> DiscountCriteriaFilter
> rights.
> rights
> any
> product
> sense
> but
> page
> product
> page.
> in
> product
>
| |
|
| Hi David,
I have go through all the property within the default DiscountItem.
But I can not find out where I can call the HTML Content out .
Since I already located the discount I want to display. what should be
the next step to display the HTML TEXT content from the discount item
According to the document, I can customize the CotnentListFactor Search
Query to include custom property in the DiscountItem ContentList.
But there isn't much example code within the document. Can you guid me
how to modify the Query to have custom property?
Best Regards
Howey
"火翼" wrote:
[vbcol=seagreen]
> Hi David,
> Now with the code I can search the discount item out. But when I trying
> to display the actual html content of the discount, I can not find the
> property name I can call using "DiscountItem[Property Name]".
> I find that there are only limited property name is given within the
> Commerce Server Document. Is there anywhere I can find all the DiscountItem
> property name list. Or at least to find out how to get the html content of
> the discount item
>
> Best Regards
> howey
> "David Lott [MSFT]" wrote:
>
| |
|
| Hi David,
I have go through all the property within the default DiscountItem.
But I can not find out where I can call the HTML Content out .
Since I already located the discount I want to display. what should be
the next step to display the HTML TEXT content from the discount item
According to the document, I can customize the CotnentListFactor Search
Query to include custom property in the DiscountItem ContentList.
But there isn't much example code within the document. Can you guid me
how to modify the Query to have custom property?
Best Regards
Howey
"火翼" wrote:
[vbcol=seagreen]
> Hi David,
> Now with the code I can search the discount item out. But when I trying
> to display the actual html content of the discount, I can not find the
> property name I can call using "DiscountItem[Property Name]".
> I find that there are only limited property name is given within the
> Commerce Server Document. Is there anywhere I can find all the DiscountItem
> property name list. Or at least to find out how to get the html content of
> the discount item
>
> Best Regards
> howey
> "David Lott [MSFT]" wrote:
>
| |
|
| Hi David,
I have go through all the property within the default DiscountItem.
But I can not find out where I can call the HTML Content out .
Since I already located the discount I want to display. what should be
the next step to display the HTML TEXT content from the discount item
According to the document, I can customize the CotnentListFactor Search
Query to include custom property in the DiscountItem ContentList.
But there isn't much example code within the document. Can you guid me
how to modify the Query to have custom property?
Best Regards
Howey
"火翼" wrote:
[vbcol=seagreen]
> Hi David,
> Now with the code I can search the discount item out. But when I trying
> to display the actual html content of the discount, I can not find the
> property name I can call using "DiscountItem[Property Name]".
> I find that there are only limited property name is given within the
> Commerce Server Document. Is there anywhere I can find all the DiscountItem
> property name list. Or at least to find out how to get the html content of
> the discount item
>
> Best Regards
> howey
> "David Lott [MSFT]" wrote:
>
| |
|
| Hi David,
I have go through all the property within the default DiscountItem.
But I can not find out where I can call the HTML Content out .
Since I already located the discount I want to display. what should be
the next step to display the HTML TEXT content from the discount item
According to the document, I can customize the CotnentListFactor Search
Query to include custom property in the DiscountItem ContentList.
But there isn't much example code within the document. Can you guid me
how to modify the Query to have custom property?
Best Regards
Howey
"火翼" wrote:
[vbcol=seagreen]
> Hi David,
> Now with the code I can search the discount item out. But when I trying
> to display the actual html content of the discount, I can not find the
> property name I can call using "DiscountItem[Property Name]".
> I find that there are only limited property name is given within the
> Commerce Server Document. Is there anywhere I can find all the DiscountItem
> property name list. Or at least to find out how to get the html content of
> the discount item
>
> Best Regards
> howey
> "David Lott [MSFT]" wrote:
>
| |
| David Lott [MSFT] 2006-10-16, 7:26 pm |
| Hi Howey,
What do you mean by the HTML TEXT? The DiscountItem exposes the
BasketDisplay property which can be Html (this content is set via
Discount.MultilingualBasketDisplay) If you want to see the
DisplayableCampaignItem related html (Discount.TemplateName) you have to
use the Content Selection Framework (similar to displaying advertisments)
The documentation around CSFScoreDiscounts
(http://msdn.microsoft.com/library/d...n-us/CS07Defaul
t/html/02afcee1-5546-4acc-b053-2aa6d7762bd3.asp) has some useful
information about how various discounts are choosen for display.
Thanks,
David Lott
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2006 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
From: =?Utf-8?B?54Gr57+8?= <@discussions.microsoft.com>
Subject: Re: How to display discount on the product detail page
Date: Fri, 13 Oct 2006 16:03:02 -0700
Newsgroups: microsoft.public.commerceserver.campaigns_csf
Hi David,
I have go through all the property within the default DiscountItem.
But I can not find out where I can call the HTML Content out .
Since I already located the discount I want to display. what should be
the next step to display the HTML TEXT content from the discount item
According to the document, I can customize the CotnentListFactor Search
Query to include custom property in the DiscountItem ContentList.
But there isn't much example code within the document. Can you guid me
how to modify the Query to have custom property?
Best Regards
Howey
"火翼" wrote:
> Hi David,
> Now with the code I can search the discount item out. But when I
trying
> to display the actual html content of the discount, I can not find the
> property name I can call using "DiscountItem[Property Name]".
> I find that there are only limited property name is given within the
> Commerce Server Document. Is there anywhere I can find all the
DiscountItem
> property name list. Or at least to find out how to get the html content
of[vbcol=seagreen]
> the discount item
>
> Best Regards
> howey
> "David Lott [MSFT]" wrote:
>
http://msdn.microsoft.com/library/d...-us/sdkmref/htm[vbcol=seagreen]
l/ Overload_Microsoft_CommerceServer_Runtim
e_Marketing_DiscountItemCollection[vbcol
=seagreen]
calculate[vbcol=seagreen]
rights.[vbcol=seagreen]
rights[vbcol=seagreen]
rebate[vbcol=seagreen]
the[vbcol=seagreen]
http://msdn.microsoft.com/library/d...-us/sdkmref/htm[vbcol=seagreen]
The[vbcol=seagreen]
the[vbcol=seagreen]
All[vbcol=seagreen]
there[vbcol=seagreen]
include a[vbcol=seagreen]
sale[vbcol=seagreen]
we[vbcol=seagreen]
inform[vbcol=seagreen]
basket[vbcol=seagreen]
sense,[vbcol=seagreen]
http://www.microsoft.com/technet/pr...7/webcasts.mspx[vbcol=seagreen]
discount[vbcol=seagreen]
product?[vbcol=seagreen]
not[vbcol=seagreen]
not all[vbcol=seagreen]
not[vbcol=seagreen]
displaying[vbcol=seagreen]
tell[vbcol=seagreen]
certain[vbcol=seagreen]
| |
| David Lott [MSFT] 2006-10-16, 7:26 pm |
| Hi Joe,
The best documentation currently is
http://msdn.microsoft.com/library/d...-us/sdkmref/htm
l/ T_Microsoft_CommerceServer_Runtime_Marke
ting_DiscountCriteriaFilter.asp
Your code looks pretty good. It is the cache name from the web.config. If
you want to show or hide discounts with promocodes, set
DiscountCriteriaFilter.IncludeDiscountsWithPromoCodes to true or false
respectively. If you have a discount "Buy A get B $10 off" A is your
condition and B is your award. So a sample scenario would be if the user
has A in their basket you'd filter for discounts with FilterOnCondition =
true to show all products the user could now get at a discount. Hope this
helps.
Thanks,
David Lott
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2006 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
From: "Joseph Johnson" <joe8t88@hotmail.com>
Subject: Re: How to display discount on the product detail page
Date: Fri, 13 Oct 2006 12:44:26 -0500
Newsgroups: microsoft.public.commerceserver.campaigns_csf
David,
If you could perhaps clarify this, since I can't find any more
documentation
on using these methods, and this seems like something I would use on a lot
of sites.
I'm assuming it would look something like this:
DiscountItemCollection allDiscounts =
DiscountItemCollection.CreateFromCache("Discounts"); //This is the cache
in Web.config, correct?
DiscountCriteriaFilter filter = new DiscountCriteriaFilter();
DiscountItemCollection applicableDiscounts =
allDiscounts.ApplyProductFilter(filter, "catalog", "product"); //Change
catalog and product as appropriate
foreach(DiscountItem item in applicableDiscounts)
{
//display discount details in datagrid?
}
How would we go about hiding certain discounts we might not want customers
to see? Is that in the Awards setting of the CriteriaFilter? I might want
to display a discount on an item, but avoid displaying discounts that
require coupons, so how would I do that?
Joe
"David Lott [MSFT]" <dlott@online.microsoft.com> wrote in message
news:o4vYZXk7GHA.4344@TK2MSFTNGXA01.phx.gbl...
> Hi Howey,
>
> If you're using Commerce Server 2007, you can use runtime discount
> filtering for this scenario. See
>
http://msdn.microsoft.com/library/d...-us/sdkmref/htm
> l/ N_Microsoft_CommerceServer_Runtime_Marke
ting.asp for more info. The
> basic idea is create a DiscountItemCollection from the cache, then
> ApplyProductFilter for a specific product. You will be left with all the
> discounts (if any) that related to that product. A DiscountCriteriaFilter
> can be used to further fine tune your results.
>
>
> Thanks,
> David Lott
>
> Microsoft
>
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> You assume all risk for your use. 2006 Microsoft Corporation. All rights
> reserved.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> --------------------
> From: =?Utf-8?B?54Gr57+8?= <@discussions.microsoft.com>
> Subject: Re: How to display discount on the product detail page
> Date: Thu, 12 Oct 2006 12:04:01 -0700
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
>
> Hi Joseph,
> Thank you for your reply.
> By what you are saying, everytime I set up a discount, I have to
> manually change the product custom property and I have to remember to
> disable
> it when the discount promotion is expired. Is that correct? or is there
> any
> other way I can make the whole procedure easier?
>
> Best Regards
> Howey
>
>
>
> "Joseph Johnson" wrote:
>
> new
> is
> to
> you've
> screencast
> actually
> how
> sure
> affect a
> the
> me
>
| |
|
| Hi David,
The HTML TEXT I mean is when you set display type as html the related
HTML content that will be displayed as ad.
For current situation, I can use the Cache and filter object to get the
discountitem that I want from the DiscountItemCollection. But I don't know if
there is a way I can use Content Selection Framework to display the html
content(not basket display) of the discount that I filtered out.
Best Regards
howey
"David Lott [MSFT]" wrote:
[vbcol=seagreen]
> Hi Howey,
>
> What do you mean by the HTML TEXT? The DiscountItem exposes the
> BasketDisplay property which can be Html (this content is set via
> Discount.MultilingualBasketDisplay) If you want to see the
> DisplayableCampaignItem related html (Discount.TemplateName) you have to
> use the Content Selection Framework (similar to displaying advertisments)
> The documentation around CSFScoreDiscounts
> (http://msdn.microsoft.com/library/d...n-us/CS07Defaul
> t/html/02afcee1-5546-4acc-b053-2aa6d7762bd3.asp) has some useful
> information about how various discounts are choosen for display.
>
> Thanks,
> David Lott
>
> Microsoft
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> You assume all risk for your use. © 2006 Microsoft Corporation. All rights
> reserved.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> --------------------
> From: =?Utf-8?B?54Gr57+8?= <@discussions.microsoft.com>
> Subject: Re: How to display discount on the product detail page
> Date: Fri, 13 Oct 2006 16:03:02 -0700
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
>
> Hi David,
> I have go through all the property within the default DiscountItem.
> But I can not find out where I can call the HTML Content out .
> Since I already located the discount I want to display. what should be
> the next step to display the HTML TEXT content from the discount item
> According to the document, I can customize the CotnentListFactor Search
> Query to include custom property in the DiscountItem ContentList.
> But there isn't much example code within the document. Can you guid me
> how to modify the Query to have custom property?
>
> Best Regards
>
> Howey
>
>
> "ç«ç¿¼" wrote:
>
> trying
> DiscountItem
> of
> http://msdn.microsoft.com/library/d...-us/sdkmref/htm
> l/ Overload_Microsoft_CommerceServer_Runtim
e_Marketing_DiscountItemCollection
> calculate
> rights.
> rights
> rebate
> the
> http://msdn.microsoft.com/library/d...-us/sdkmref/htm
> The
> the
> All
> there
> include a
> sale
> we
> inform
> basket
> sense,
> http://www.microsoft.com/technet/pr...7/webcasts.mspx
> discount
> product?
> not
> not all
> not
> displaying
> tell
> certain
| |
| David Lott [MSFT] 2006-10-18, 7:27 pm |
| Howey,
If you want to display the HTML TEXT, you have to use the CSF. See
http://msdn.microsoft.com/library/d...-us/CS07Default
/html/2738f89d-0270-45cc-9f70-475944861637.asp for more information about
how the discount which is displayed is choosen.
Thanks,
David Lott
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2006 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
From: =?Utf-8?B?54Gr57+8?= <@discussions.microsoft.com>
Subject: Re: How to display discount on the product detail page
Date: Mon, 16 Oct 2006 10:37:02 -0700
Newsgroups: microsoft.public.commerceserver.campaigns_csf
Hi David,
The HTML TEXT I mean is when you set display type as html the related
HTML content that will be displayed as ad.
For current situation, I can use the Cache and filter object to get the
discountitem that I want from the DiscountItemCollection. But I don't know
if
there is a way I can use Content Selection Framework to display the html
content(not basket display) of the discount that I filtered out.
Best Regards
howey
"David Lott [MSFT]" wrote:
> Hi Howey,
>
> What do you mean by the HTML TEXT? The DiscountItem exposes the
> BasketDisplay property which can be Html (this content is set via
> Discount.MultilingualBasketDisplay) If you want to see the
> DisplayableCampaignItem related html (Discount.TemplateName) you have to
> use the Content Selection Framework (similar to displaying advertisments)
> The documentation around CSFScoreDiscounts
>
(http://msdn.microsoft.com/library/d...n-us/CS07Defaul
> t/html/02afcee1-5546-4acc-b053-2aa6d7762bd3.asp) has some useful
> information about how various discounts are choosen for display.
>
> Thanks,
> David Lott
>
> Microsoft
>
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> You assume all risk for your use. © 2006 Microsoft Corporation. All
rights
> reserved.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> --------------------
> From: =?Utf-8?B?54Gr57+8?= <@discussions.microsoft.com>
> Subject: Re: How to display discount on the product detail page
> Date: Fri, 13 Oct 2006 16:03:02 -0700
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
>
> Hi David,
> I have go through all the property within the default DiscountItem.
> But I can not find out where I can call the HTML Content out .
> Since I already located the discount I want to display. what should
be
> the next step to display the HTML TEXT content from the discount item
> According to the document, I can customize the CotnentListFactor
Search
> Query to include custom property in the DiscountItem ContentList.
> But there isn't much example code within the document. Can you guid
me
> how to modify the Query to have custom property?
>
> Best Regards
>
> Howey
>
>
> "ç«ç¿¼" wrote:
>
> trying
the[vbcol=seagreen]
> DiscountItem
> of
>
http://msdn.microsoft.com/library/d...-us/sdkmref/htm
>
l/ Overload_Microsoft_CommerceServer_Runtim
e_Marketing_DiscountItemCollection[vbcol
=seagreen]
> calculate
> rights.
All
> rights
> rebate
and[vbcol=seagreen]
> the
detail[vbcol=seagreen]
too.[vbcol=seagreen]
>
http://msdn.microsoft.com/library/d...-us/sdkmref/htm[vbcol=seagreen]
> The
all[vbcol=seagreen]
> the
Corporation.[vbcol=seagreen]
> All
to[vbcol=seagreen]
to[vbcol=seagreen]
> there
> include a
the[vbcol=seagreen]
> sale
how[vbcol=seagreen]
> we
> inform
make[vbcol=seagreen]
> basket
> sense,
If[vbcol=seagreen]
is[vbcol=seagreen]
> http://www.microsoft.com/technet/pr...7/webcasts.mspx
> discount
detail[vbcol=seagreen]
> product?
> not
which[vbcol=seagreen]
> not all
are[vbcol=seagreen]
> not
the[vbcol=seagreen]
detail[vbcol=seagreen]
> displaying
where[vbcol=seagreen]
> tell
> certain
| |
|
| Hi David,
when you say CSF. do you mean the targeting system and Content Selection
FrameWork?
If yes, Then can you tell me how to filter by product within the CSF?
because it seems to me that it can only do filter base on pagegroug and user
profile.
"David Lott [MSFT]" wrote:
[vbcol=seagreen]
> Howey,
>
> If you want to display the HTML TEXT, you have to use the CSF. See
> http://msdn.microsoft.com/library/d...-us/CS07Default
> /html/2738f89d-0270-45cc-9f70-475944861637.asp for more information about
> how the discount which is displayed is choosen.
>
> Thanks,
> David Lott
>
> Microsoft
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> You assume all risk for your use. © 2006 Microsoft Corporation. All rights
> reserved.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> --------------------
> From: =?Utf-8?B?54Gr57+8?= <@discussions.microsoft.com>
> Subject: Re: How to display discount on the product detail page
> Date: Mon, 16 Oct 2006 10:37:02 -0700
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
>
> Hi David,
> The HTML TEXT I mean is when you set display type as html the related
> HTML content that will be displayed as ad.
>
> For current situation, I can use the Cache and filter object to get the
> discountitem that I want from the DiscountItemCollection. But I don't know
> if
> there is a way I can use Content Selection Framework to display the html
> content(not basket display) of the discount that I filtered out.
>
> Best Regards
>
> howey
>
>
> "David Lott [MSFT]" wrote:
>
>
> (http://msdn.microsoft.com/library/d...n-us/CS07Defaul
> rights.
> rights
> be
> Search
> me
> the
> http://msdn.microsoft.com/library/d...-us/sdkmref/htm
> l/ Overload_Microsoft_CommerceServer_Runtim
e_Marketing_DiscountItemCollection
> All
> and
> detail
> too.
> http://msdn.microsoft.com/library/d...-us/sdkmref/htm
> all
> Corporation.
> to
> to
> the
> how
> make
> If
> is
| |
|
| Hi David,
Thank you very much, I already get the HTML template by modify the
storeprocedure within the commerce server database.
But I still have a question about how to resolve the condition expression
xml. I will open a new topic about that.
hopefully you can help me to resolve that too
Best Regards
Howey
"David Lott [MSFT]" wrote:
[vbcol=seagreen]
> Howey,
>
> If you want to display the HTML TEXT, you have to use the CSF. See
> http://msdn.microsoft.com/library/d...-us/CS07Default
> /html/2738f89d-0270-45cc-9f70-475944861637.asp for more information about
> how the discount which is displayed is choosen.
>
> Thanks,
> David Lott
>
> Microsoft
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> You assume all risk for your use. © 2006 Microsoft Corporation. All rights
> reserved.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> --------------------
> From: =?Utf-8?B?54Gr57+8?= <@discussions.microsoft.com>
> Subject: Re: How to display discount on the product detail page
> Date: Mon, 16 Oct 2006 10:37:02 -0700
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
>
> Hi David,
> The HTML TEXT I mean is when you set display type as html the related
> HTML content that will be displayed as ad.
>
> For current situation, I can use the Cache and filter object to get the
> discountitem that I want from the DiscountItemCollection. But I don't know
> if
> there is a way I can use Content Selection Framework to display the html
> content(not basket display) of the discount that I filtered out.
>
> Best Regards
>
> howey
>
>
> "David Lott [MSFT]" wrote:
>
>
> (http://msdn.microsoft.com/library/d...n-us/CS07Defaul
> rights.
> rights
> be
> Search
> me
> the
> http://msdn.microsoft.com/library/d...-us/sdkmref/htm
> l/ Overload_Microsoft_CommerceServer_Runtim
e_Marketing_DiscountItemCollection
> All
> and
> detail
> too.
> http://msdn.microsoft.com/library/d...-us/sdkmref/htm
> all
> Corporation.
> to
> to
> the
> how
> make
> If
> is
|
|
|
|
|