|
Home > Archive > Content Selection Framework > December 2004 > using a set of products existing in the basket as a condition
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 |
using a set of products existing in the basket as a condition
|
|
|
| Hi,
Does anyone know how to set up a discount to use a set of products existing
in the basket as a condition for a discount? Let me explain using
PsuedoCode:
===========
These products must all be in the basket:
302556
302557
302558
302698
For the shopper to recieve an order-level discount of 3.45
===========
I've examined the documentation and cannot figure out a way to do this. I'm
sure that Commerce Server must be able to do it. I've tried crafting
'Discount-specific expressions':
IF productid = 302556 AND
productid = 302557 AND
productid = 302558 AND
productid = 302698
but this seems to try to apply to each line item, and as each line item only
ever has one productid... it never applies.
Thanks,
Lance
| |
| Andy Xu[MSFT] 2004-12-08, 5:51 pm |
| Hey, Lance,
Thanks for using Commerce Server newsgroup.
Unfortunately, you are hittng an issue which current Commerce Server
product doesn't support. Every time the discount engine evaluates the
discount condition, it does so for each basket line item. In another word,
it won't support a discount condition which has combined multiple products.
Acutally, we've been thinking to add this feature to product in the future.
Right now, a possible workaround is to utilize the discount's eligibility
requirement. My suggestion:
1) create an eligibility requirement for your discount, which looks for a
Targeting context value
2) when running your basket pipeline, set that targeting context value to
false by default
3) before the OrderDiscount pipeline component, add your own pipeline
component, which will check the current basket items. If all the required
products are in the basket, set that targeting context value to true.
HTH,
Andy Xu [MSFT]
Commerce Server Team
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
From: "Lance" <lance@[nospam]keayweb.com>
Newsgroups: microsoft.public.commerceserver.campaigns_csf
Subject: using a set of products existing in the basket as a condition
Date: Wed, 8 Dec 2004 17:56:36 -0000
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <10reg2lajf7033f@corp.supernews.com>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
X-Complaints-To: abuse@supernews.com
Lines: 33
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fas
twebnet.it!tiscali!newsfeed1.ip.tiscali.net!news.addix.net!border2.nntp.ams.
giganews.com!nntp.giganews.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.
net!sn-xit-02!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.c
om!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.commerceserver.campaigns_csf:2908
X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf
Hi,
Does anyone know how to set up a discount to use a set of products existing
in the basket as a condition for a discount? Let me explain using
PsuedoCode:
===========
These products must all be in the basket:
302556
302557
302558
302698
For the shopper to recieve an order-level discount of 3.45
===========
I've examined the documentation and cannot figure out a way to do this. I'm
sure that Commerce Server must be able to do it. I've tried crafting
'Discount-specific expressions':
IF productid = 302556 AND
productid = 302557 AND
productid = 302558 AND
productid = 302698
but this seems to try to apply to each line item, and as each line item only
ever has one productid... it never applies.
Thanks,
Lance
| |
|
| Thanks for the reply, it's a little disappointing that this functionality
isn't available, but thanks for pointing out how we might be able to
simulate it!
"Andy Xu[MSFT]" <andyxu@online.microsoft.com> wrote in message
news:Z$Nip#W3EHA.3200@cpmsftngxa10.phx.gbl...
> Hey, Lance,
>
> Thanks for using Commerce Server newsgroup.
>
> Unfortunately, you are hittng an issue which current Commerce Server
> product doesn't support. Every time the discount engine evaluates the
> discount condition, it does so for each basket line item. In another word,
> it won't support a discount condition which has combined multiple
products.
>
> Acutally, we've been thinking to add this feature to product in the
future.
> Right now, a possible workaround is to utilize the discount's eligibility
> requirement. My suggestion:
>
> 1) create an eligibility requirement for your discount, which looks for a
> Targeting context value
>
> 2) when running your basket pipeline, set that targeting context value to
> false by default
>
> 3) before the OrderDiscount pipeline component, add your own pipeline
> component, which will check the current basket items. If all the required
> products are in the basket, set that targeting context value to true.
>
> HTH,
> Andy Xu [MSFT]
> Commerce Server Team
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
>
> Note: For the benefit of the community-at-large, all responses to this
> message are best directed to the newsgroup/thread from which they
> originated.
> --------------------
> From: "Lance" <lance@[nospam]keayweb.com>
> Newsgroups: microsoft.public.commerceserver.campaigns_csf
> Subject: using a set of products existing in the basket as a condition
> Date: Wed, 8 Dec 2004 17:56:36 -0000
> Organization: Posted via Supernews, http://www.supernews.com
> Message-ID: <10reg2lajf7033f@corp.supernews.com>
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.3790.181
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
> X-Complaints-To: abuse@supernews.com
> Lines: 33
> Path:
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fas
>
twebnet.it!tiscali!newsfeed1.ip.tiscali.net!news.addix.net!border2.nntp.ams.
>
giganews.com!nntp.giganews.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.
>
net!sn-xit-02!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.c
> om!not-for-mail
> Xref: cpmsftngxa10.phx.gbl
> microsoft.public.commerceserver.campaigns_csf:2908
> X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf
>
> Hi,
> Does anyone know how to set up a discount to use a set of products
existing
> in the basket as a condition for a discount? Let me explain using
> PsuedoCode:
>
> ===========
> These products must all be in the basket:
> 302556
> 302557
> 302558
> 302698
>
> For the shopper to recieve an order-level discount of 3.45
> ===========
>
> I've examined the documentation and cannot figure out a way to do this.
I'm
> sure that Commerce Server must be able to do it. I've tried crafting
> 'Discount-specific expressions':
>
> IF productid = 302556 AND
> productid = 302557 AND
> productid = 302558 AND
> productid = 302698
>
> but this seems to try to apply to each line item, and as each line item
only
> ever has one productid... it never applies.
>
> Thanks,
> Lance
>
>
>
>
>
|
|
|
|
|