|
Home > Archive > Content Selection Framework > June 2004 > Line item discount quantities
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 |
Line item discount quantities
|
|
| Jeremy 2004-06-11, 12:01 am |
| Is there any way to retrieve the the number of items within a lineitem
that has a discount applied to it? For instance, if I have a line item
discount that says "buy one get one free" then I have a quantity of 2
for the line item, but the discount only applies to one of them. How
can I get this info from commerce server?
| |
| Andy Xu[MSFT] 2004-06-20, 11:04 pm |
| Hello, Jeremy,
Thanks for using Commerce Server newsgroup.
Unfortunately, there is no way to retrieve the number of items which got discounts applied. Even though (item)._n_unadjusted can help you a little bit
in certain scenarios. _n_unadjusted is the quantity of items in this line that have not been adjusted. An item is adjusted if it received a discount or was
used as a condition for a discount where either of the reuse_condition_as_condition or reuse_condition_as_award flags was set to false. So in a
simple discount ($5 off any t-shirt) scenario, (item).quantity - (item)._n_unadjusted can give the number of applied. Of course, it won't work in the
sample case you described.
Also, Jeremy, it will help us if you can describe why this specific information will be required for you business sceanrio. It will help us better
understanding the real world usage of discount system and get it right in future release.
BTW, Commerce server discount system does give you other information about discount applied record, including discount name, discount ID,
discount prioprity, the amount it takes off per line item. A detailed article can be found at
http://blogs.msdn.com/yuxiangxu/arc...06/127554.aspx. Check it out.
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: "Jeremy" <jrabalai@hotmail.com>
Newsgroups: microsoft.public.commerceserver.campaigns_csf
Subject: Line item discount quantities
Date: 10 Jun 2004 14:57:30 -0700
Organization: http://groups.google.com
Lines: 6
Message-ID: <caalga$bpk@odbk17.prod.google.com>
NNTP-Posting-Host: odbk17.prod.google.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1086904650 15403 127.0.0.1 (10 Jun 2004 21:57:30 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 10 Jun 2004 21:57:30 +0000 (UTC)
User-Agent: G2/0.1
Path: cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news.glorb.com!
postnews1.google.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.campaigns_csf:2697
X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf
Is there any way to retrieve the the number of items within a lineitem
that has a discount applied to it? For instance, if I have a line item
discount that says "buy one get one free" then I have a quantity of 2
for the line item, but the discount only applies to one of them. How
can I get this info from commerce server?
|
|
|
|
|