Content Selection Framework - Coupons

This is Interesting: Free IT Magazines  
Home > Archive > Content Selection Framework > January 2005 > Coupons





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 Coupons
Sreeku_2002

2005-01-14, 5:50 pm

hi..

I am creating a private coupon of usage limit 1 as follows.IF order total
is >0 give 100 dollars off.Now suppose the users purchase is only for 50
dollars .I want to create a new private coupon which will say 50 dollars
off .Is there some way of knowing how much was discount value obtained
from the coupon.Is there some way of creating a private coupon of some
defenition like the above on the fly.

can i seperate the discount values obtained from private and public
coupons.

sreeku

David Messner [MSFT]

2005-01-20, 5:51 pm

The answer lies within the RecordPromoCodes component.

This component
1. Loops over all the promo_code_info structures in the orderform and sets
the promo_applied property to true if any discount was applied to the
OrderForm that was qualified by the discount
2. Walks the item._itemlevel_discounts_applied and
item._orderlevel_discounts_applied lists and adds the promo code definition
ID of the promotion code that was used to qualify the discount.

I think the only information this may not give you is whether the promotion
code is public or private. You'd need to keep a mapping from promotion
code definition ID to this information, I think.

The above information can be found in the documentation for the reference
page of the RecordPromoCodes component (ignore the part about "Order System
Object Model" - that information didn't apply to Feature Pack 1 and should
not have appeared in the documentation).

regards
-djm
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2005 Microsoft Corporation. All rights
reserved.

--------------------
From: "Sreeku_2002" <sreeku_2002@yahoo.com>
Newsgroups: microsoft.public.commerceserver.campaigns_csf
Subject: Coupons
Date: Fri, 14 Jan 2005 14:44:13 -0500
Organization: www.talkaboutsoftware.com
Message-ID:
< 498ab7284f36e6e298d3c38efcaff666@localho
st.talkaboutsoftware.com>
X-Newsreader: www.talkaboutsoftware.com
Content-Type: text/plain;
X-Complaints-To: abuse@supernews.com
Lines: 14
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGXA0
1.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!newsfeed1.ip.t
iscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!news-in.ntli.net!
newsrout1-win.ntli.net!ntli.net!sn-xit-02!sn-xit-06!sn-post-01!supernews.com
!corp.supernews.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.commerceserver.campaigns_csf:2994
X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf

hi..

I am creating a private coupon of usage limit 1 as follows.IF order total
is >0 give 100 dollars off.Now suppose the users purchase is only for 50
dollars .I want to create a new private coupon which will say 50 dollars
off .Is there some way of knowing how much was discount value obtained
from the coupon.Is there some way of creating a private coupon of some
defenition like the above on the fly.

can i seperate the discount values obtained from private and public
coupons.

sreeku


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com