Vulnerability in EPiServer.Forms
I have a requirement on a project I'm working on whereby pricing information for products can be pulled in one of two ways:
The special price in this case is one we have to query via an external service, as the combinations of pricing tiers using the above criteria is so large, that this is not something we can manage via EPiServer itself.
The idea is that as an authenticated user browses the site they always see the cheapest price from one of the above.
This above scenario works fine, until we try to accomodate the next requirement
"When a special price is used for a particular line item, no promotions can be applied to that line item".
This is what I'm having issues with - I've tried the following:
Does anyone else have any options for me?
I've gone down a few different avenues as you can see, but I'm still no closer to a solution for this.
Thanks very much!
I am not quite sure if i follow what it is you wish to do and the problems you are experiencing.
I would go for a variation of 1. Excluding the items from promotions. with a hint of 2.
Thanks for such a quick reply, much appreciated.
Thats a really good point about the CollectionTargetEvaluator I will give this a go.
On another note, would there be a way of only applying a promotion if the line item total from that promotion (against the line items list price) would be cheaper than that of the special price were storing on the order line?
You might be able to make it work in a few special cases with a custom promotion but it won't be easy and the requirements have to be just right.