|
Home > Archive > Commerce Server General > May 2005 > customizing pur_badplacedprice message
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 |
customizing pur_badplacedprice message
|
|
|
| Is there an easy way that I can give specific product info in the
pur_badplacedprice error message. If the price changes in the pipeline, I
need to say something like "The price for <product description> has changed."
instead of some generic message like "The price for one of your products has
changed.". Any ideas?
Thanks,
Jason
| |
| Ravi Shankar 2005-05-12, 2:55 am |
| Hi Jason,
This message is created by the "RequiredItemAdjustCy" pipeline component
which compares the placed price with the current price (the documentation
describes the exact mechanism) and in case of a mismatch puts the
"pur_badplacedprice" key into the _Basket_Errors dictionary.
To acheive what you want, you could firstly change the message in the site
XML files to include a placeholder. Secondly you'll need to create a similar
pipeline component which duplicates the "RequiredItemAdjustCy" functionality.
The only difference would be where the supplied pipeline component adds the
message, you'd have to process the message (which is parametrised now) and
incorporate the SKU or Product Name or whatever in the message before storing
the message into the _Basket_Errors dictionary.
Regards.
"Jason" wrote:
> Is there an easy way that I can give specific product info in the
> pur_badplacedprice error message. If the price changes in the pipeline, I
> need to say something like "The price for <product description> has changed."
> instead of some generic message like "The price for one of your products has
> changed.". Any ideas?
>
> Thanks,
> Jason
|
|
|
|
|