Creating a line item discount
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Creating a line item discount




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Creating a line item discount  
Jon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-09-04 10:52 PM

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





[ Post a follow-up to this message ]



    RE: Creating a line item discount  
Nihit Kaul [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-18-04 10: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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:56 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register