|
Home > Archive > Commerce Server General > August 2004 > Creating a line item discount
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 |
Creating a line item discount
|
|
|
| What is the best way to go about the following scenario.
On the product display page, i want to create functionality, so that a
user can enter a specific discount amount in dollars into a textbox,
and when the item is added to the basket , the sale price(list price
minus the discount price entered into the text box) will be recorded
to the line item. This discounted sale price will be used to calculate
the Subtotal for the orderform.
thanks
| |
| Nihit Kaul [MSFT] 2004-08-18, 5:52 pm |
| Hi,
I think you might be able to achive what you outlined, by adding the user
input discount amount as a weakly-typed property (lookup LineItem.Item
property) on the LineItem and then using this value to do the associated
calculations in a pipeline component which would replace the totals
calcualted by the out of the box components.
Thanks,
Nihit Kaul[MSFT]
Commerce Server
http://blogs.msdn.com/nihitk
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
--------------------
From: woo1000@hotmail.com (Jon)
Newsgroups: microsoft.public.commerceserver.general
Subject: Creating a line item discount
Date: 9 Aug 2004 13:54:15 -0700
Organization: http://groups.google.com
Lines: 8
Message-ID: <6ad0344d.0408091254.2ebe4547@posting.google.com>
NNTP-Posting-Host: 66.143.234.230
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1092084855 7096 127.0.0.1 (9 Aug 2004 20:54:15
GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 9 Aug 2004 20:54:15 +0000 (UTC)
Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!fr.ip.ndsoftware.net!proxad.net!postnews2.google.com!not-for-mail
Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.general:14473
X-Tomcat-NG: microsoft.public.commerceserver.general
What is the best way to go about the following scenario.
On the product display page, i want to create functionality, so that a
user can enter a specific discount amount in dollars into a textbox,
and when the item is added to the basket , the sale price(list price
minus the discount price entered into the text box) will be recorded
to the line item. This discounted sale price will be used to calculate
the Subtotal for the orderform.
thanks
|
|
|
|
|