Content Selection Framework - Applying Discounts

This is Interesting: Free IT Magazines  
Home > Archive > Content Selection Framework > February 2004 > Applying Discounts





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 Applying Discounts
Dinesh

2004-02-07, 9:38 am

Hi,

I have a big store with 1000+ products. And I have defined
flags for "Sale Items" & "Clearance Items" for these
products. And I have 3 different prices: cy_list_price,
Sale Price & Clearance Price.

While displaying the produts, its fine. Based upon
Clearance or Sale flag, I display different price.

Now the problem is:
When I add product to cart, it adds cy_list_price. I am
trying to force assigning the Clearance or Sale price at
Lineitem level like this:

item["_product_cy_list_price"]= 2.99;

but its not working..
Can anyone please help on this.

Thanks
Dinesh


Andy Xu[MSFT]

2004-02-24, 11:35 am

Dinesh,

I guess I am not quite sure what you exactly want to do. Do you want to assign sale price or clearance price to items in user's basket ? This doesn't sound like a discount issue to me. Indeed, it is an issue when
you load your catalog data from catalog system.

In the basket pipeline (which is typically executed when shopping cart page is loaded), there is a component called QueryCatalogInfo which will load catalog data. That's why item["_product_cy_list_price"] value
is overwritten. To assign sale price or clearance price, a simple way you can try is to create your own pipeline component to modify the list price and modify your basket pipeline to let your own pipeline
component run right after QueryCatalogInfo component.

HTH,
-- Andy

--------------------
Content-Class: urn:content-classes:message
From: "Dinesh" <anonymous@discussions.microsoft.com>
Sender: "Dinesh" <anonymous@discussions.microsoft.com>
Subject: Applying Discounts
Date: Wed, 21 Jan 2004 14:02:01 -0800
Lines: 24
Message-ID: <20bb01c3e06a$328cf680$a501280a@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcPgajKMSneoD08dSHqIhgz6hJ3J3g==
Newsgroups: microsoft.public.commerceserver.campaigns_csf
Path: cpmsftngxa07.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.commerceserver.campaigns_csf:2476
NNTP-Posting-Host: tk2msftngxa13.phx.gbl 10.40.1.165
X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf

Hi,

I have a big store with 1000+ products. And I have defined
flags for "Sale Items" & "Clearance Items" for these
products. And I have 3 different prices: cy_list_price,
Sale Price & Clearance Price.

While displaying the produts, its fine. Based upon
Clearance or Sale flag, I display different price.

Now the problem is:
When I add product to cart, it adds cy_list_price. I am
trying to force assigning the Clearance or Sale price at
Lineitem level like this:

item["_product_cy_list_price"]= 2.99;

but its not working..
Can anyone please help on this.

Thanks
Dinesh



--

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.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com