Commerce Server General - Problems with OrderDiscount in pipeline

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > February 2004 > Problems with OrderDiscount in pipeline





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 Problems with OrderDiscount in pipeline
Dinesh Chadha

2004-02-25, 10:35 am

It looks like either the error
message "pur_dicountremoved" is not in the message manager
dll or in the web.config file.

Make sure:
1. That pur_dicountremoved is in the xml file (generally
rc.xml) from which we create messagemanager dll.

2. In web.config file under <messageManager> tag, the
resource id = pur_dicountremoved is properly defined.

Good Luck
Dinesh Chadha



>-----Original Message-----
>Hey all,
>
>I'm having an issue with implementing discounts. I put in
>a discount (in the bizdesk) wherein the user gets 10% off
>the order subtotal if they purchase over 50 dollars.
>
>Whenever the user does anything, I'm running the basket
>pipeline of course, calculating discounts, totals etc. It
>works fine for the most part. If the user has less than

50
>dollars, it does no discount, if they have over 50
>dollars, it gives them 10%. Even if I change the value of
>the basket from under 50 to over 50, by increasing the
>quantity of an item for example, it will rightly go from

0
>discount to 10% of the subtotal.
>
>However, if I take the total of the basket back below 50,
>after the discount has already been applied, it throws an
>error at me. This is something the user might do. Decide
>they want 2 of a 20 dollar item instead of 3, and it
>should remove the 10% discount. Instead, it gives me this
>error:
>
>Component Execution failed for component[0x7] hr:
>0x80004005 ProgID: Commerce.OrderDiscount.1 Dictionary
>error: Value for key 'MessageManager' in dictionary 'Pipe
>Context' is missing (orderform=default)
>
>I found this on MSDN, "The OrderDiscount component uses a
>list to ensure integrity in the process. The component
>stores a list of discounts that were applied and the last
>time the discount was modified. If, on the next request,
>discounts that were applied no longer apply, the
>pur_dicountremoved error is added to the _Basket_Errors
>list."
>
>So it sounds like when a discount no longer applies to a
>product, it records an error, and it's having trouble
>recording that error... what'm I doing wrong? I'm using
>all the basic components at teh default settings.
>.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com