London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
If I understand you correctly then this was introduced in both of my books ...
I'll see if I published it as a blog post ...
Hi,
I'm implementing a tiered pricing model for organizations following Shannon's blog here: https://world.episerver.com/blogs/Shannon-Gray/Dates/2012/7/Creating-tiered-pricing-for-organizations-and-visitor-groups/
I've added the custom SalePriceType:
With the new SalePriceType in place I now need to be able to create prices in code associated with this price type. The code to save a price requires creating a PriceDetailValue with a CustomerPricing object:
The problem is I can't figure out how to create a new CustomerPricing with the PriceTypeId of my custom PriceType as the CustomerPricing uses an enum for PriceType.
Any ideas?