|
Home > Archive > Content Selection Framework > October 2006 > How to resolve the discount condition expression xml.
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 resolve the discount condition expression xml.
|
|
|
| Hi,
I got the condition expression of discount by override the
CSFLoadDiscount StoreProcedure.
The expression xml structure is pretty simple, seems each line of
expression is corresponding to one clause. But the property ID looks a little
different from the product property used within the product object. I wonder
is there any conversion rule or tables so I can use to do the property
conversion. Or is there any object I can use to resolve this expression xml
below is the example of the example of condition expression
<CLAUSE OPER="contains"
xmlns="http://schemas.microsoft.com/CommerceServer/2004/02/Expressions">
<PROPERTY ID="Product._product_Manufacturer" TYPE="STRING" MULTIVAL="false"
/>
<IMMED-VAL TYPE="STRING"><VALUE>123</VALUE></IMMED-VAL>
</CLAUSE>
| |
| David Lott [MSFT] 2006-10-24, 7:18 am |
| Hi Howey,
The Content Selection Framework (CSF) will do the evaluation of the
condition expression for you. As I mentioned in the earlier thread, the
CSFScoreDiscounts pipeline component
http://msdn.microsoft.com/library/d...-us/CS07Default
/html/2738f89d-0270-45cc-9f70-475944861637.asp will consider the products
in your basket and on the page (provided you set ContextProfile.items and
ContextProfile.products) And in the remarks section, you can see that
discounts whose conditions and awards are both met in products (items on
the page) will get a multiplier of 1.4 and be very likely to be displayed.
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: How to resolve the discount condition expression xml.
Date: Wed, 18 Oct 2006 14:41:01 -0700
Newsgroups: microsoft.public.commerceserver.campaigns_csf
Hi,
I got the condition expression of discount by override the
CSFLoadDiscount StoreProcedure.
The expression xml structure is pretty simple, seems each line of
expression is corresponding to one clause. But the property ID looks a
little
different from the product property used within the product object. I
wonder
is there any conversion rule or tables so I can use to do the property
conversion. Or is there any object I can use to resolve this expression xml
below is the example of the example of condition expression
<CLAUSE OPER="contains"
xmlns="http://schemas.microsoft.com/CommerceServer/2004/02/Expressions">
<PROPERTY ID="Product._product_Manufacturer" TYPE="STRING"
MULTIVAL="false"
/>
<IMMED-VAL TYPE="STRING"><VALUE>123</VALUE></IMMED-VAL>
</CLAUSE>
|
|
|
|
|