|
Home > Archive > Content Selection Framework > July 2005 > Losing Promo Code from "_winners" List
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 |
Losing Promo Code from "_winners" List
|
|
| SusanH 2005-07-11, 5:51 pm |
| I am trying to implement Promotion Codes using Feature Pack 1, and I have no
extra requirements; I just would like to implement the base functionality.
I have modified the basket and checkout pipelines as specified, and I have
added the code to my page, as specified in the help file, to add the
SimpleList of promo codes to currCart["promo_codes"].
I have a test page where I add the Promo Code and run the Basket Pipeline.
I correctly receive back currCart["promo_code_info"], and the Promo Code in
question comes back as a Status of Valid. I immediately query the "_winners"
list of the order form, and that Promo Code discount ID is among the winners.
However, if I then run the pipeline again, or refresh the page, I again
query the "_winners" list and that discount is not in there. I don't know
how to debug this further; if there's a trace output log for discounts, I
don't know how to enable it yet (I'm still looking).
If anyone can give me any ideas of what to try or settings to check, I'd
really appreciate it.
Thanks
Sue
| |
| David Messner [MSFT] 2005-07-11, 5:51 pm |
| Be sure that you are persisting the promotion code(s) with the OrderForm.
That is, after adding them to the order form, are you calling Basket.Save()?
To enable discount tracing, set the key "_trace_discounts" to true in the
pipeline context dictionary (PipelineInfo) before executing the basket.pcf
pipeline (or you can do this in a scriptor component in the pipeline
itself). Use this in conjunction with the pipeline logging, it will output
a trace of the OrderDiscount component's execution. See OrderDiscount
component documentation for details.
-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.
--------------------
Thread-Topic: Losing Promo Code from "_winners" List
thread-index: AcWGLWiZOjpYFHwUTu21t1KpBa6DVg==
X-WBNR-Posting-Host: 63.192.50.222
From: =?Utf-8?B?U3VzYW5I?= <SusanH@discussions.microsoft.com>
Subject: Losing Promo Code from "_winners" List
Date: Mon, 11 Jul 2005 08:30:03 -0700
Lines: 22
Message-ID: <05729D1F-DA86-4F8E-990B-3CA42643B7A8@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.campaigns_csf
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.commerceserver.campaigns_csf:675
X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf
I am trying to implement Promotion Codes using Feature Pack 1, and I have
no
extra requirements; I just would like to implement the base functionality.
I have modified the basket and checkout pipelines as specified, and I have
added the code to my page, as specified in the help file, to add the
SimpleList of promo codes to currCart["promo_codes"].
I have a test page where I add the Promo Code and run the Basket Pipeline.
I correctly receive back currCart["promo_code_info"], and the Promo Code in
question comes back as a Status of Valid. I immediately query the
"_winners"
list of the order form, and that Promo Code discount ID is among the
winners.
However, if I then run the pipeline again, or refresh the page, I again
query the "_winners" list and that discount is not in there. I don't know
how to debug this further; if there's a trace output log for discounts, I
don't know how to enable it yet (I'm still looking).
If anyone can give me any ideas of what to try or settings to check, I'd
really appreciate it.
Thanks
Sue
| |
| SusanH 2005-07-11, 5:51 pm |
| David:
Well thank you for getting back so quickly, and yes, all it was was that I
was not persisting the basket. I have the codes working as expected now,
thank you.
I will also experiment with the tracing so I can start using this in my
debugging. Thank you for pointing me in the right direction. You have
always been very helpful when I post questions here.
"David Messner [MSFT]" wrote:
> Be sure that you are persisting the promotion code(s) with the OrderForm.
> That is, after adding them to the order form, are you calling Basket.Save()?
>
> To enable discount tracing, set the key "_trace_discounts" to true in the
> pipeline context dictionary (PipelineInfo) before executing the basket.pcf
> pipeline (or you can do this in a scriptor component in the pipeline
> itself). Use this in conjunction with the pipeline logging, it will output
> a trace of the OrderDiscount component's execution. See OrderDiscount
> component documentation for details.
>
> -djm
>
|
|
|
|
|