05-12-05 07: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 storin
g
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 change
d."
> instead of some generic message like "The price for one of your products h
as
> changed.". Any ideas?
>
> Thanks,
> Jason
[ Post a follow-up to this message ]
|