...
Add a new flag in LD to control this new behavior/fix:
The new flag is: https://app.launchdarkly.com/intl-guest-app/dev-plk-es/features/enable-premium-options-at-first-position/targeting
Or flag will depends on the
enable-product-upsell-simplified
flag (https://app.launchdarkly.com/intl-guest-app/dev-plk-es/features/enable-product-upsell-simplified/targeting). If this flag is off our solution will not work.
After updating the query, we need to adjust the
ProductCustomizationOptions
compComp path:
src/components/product-detail/product-customization/product-customization-options.tsx
This is the part of the code that holds the logic for the list order. The first position of the array is for regular items, and the second object represents the premium options item. We can make a new function and change this to something dynamic based on the new flag
...