A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Hi everyone,
I have a requirement in Optimizely Commerce where we need to remove all pricing from the Variant level for few custom Variants and instead manage pricing entirely through a custom Admin form.
Requirement Details
Variants will not have any prices configured in price lists
Admin users will use a custom form where they:
Select a SKU / line item from a dropdown
Enter a price
The entered price should act as:
List price
Sell price
This price must be used consistently across:
Cart
Promotions
Taxes
Order processing
Current Understanding
I understand that Optimizely Commerce assumes pricing is resolved via price lists and
IPriceService. If no prices exist on the variant, default price resolution will return nothing and cart calculations can break.Questions
Is removing all variant-level pricing a supported and safe approach in Commerce?
Are there any pitfalls around promotions, taxes, or order totals with this approach?
Would decorating
IPriceServicebe a better option, or isIPlacedPriceProcessorpreferred?Are there any official guidelines or examples for this pattern?
I’d appreciate insights from anyone who has implemented a similar pricing model or has guidance on best practices.
Thanks in advance!