Get Final Promotional Price
Kyle Montgomery
It's been often discussed in Unofficial SFCC - how it is difficult to display a final product price considering all promotions available to a specific consumer.
With the advent of temporary baskets, along with some caching for performance, this should now be possible.
A framework should be written that can be reused and improved that, for each product:
(1) checks the cache,
(2) if no cache, creates a temporary basket,
(3) adds the product to the temporary basket,
(4) returns the price to the user,
(5) caches the result
The cache should vary by price/promotion.