fix(storefront): Show cash discount price in product JSON-LD - #790
fix(storefront): Show cash discount price in product JSON-LD#790vitorrgg wants to merge 1 commit into
Conversation
Product JSON-LD offers now apply the store's configured payment discount (settings.modules.list_payments.discount_option), reusing getPriceWithDiscount from use-prices. Falls back to the regular price when no discount is configured, so behavior is unchanged for stores that don't set it.
ReviewOverviewThis PR makes the Product JSON-LD What works well
Suggestions
Risks worth being aware of (not blockers)
Tests
SecurityNo concerns: a numeric value derived from trusted store settings, serialized via Verdict: solid, minimal change that fixes a real SEO price-accuracy gap. Suggest addressing rounding (1) before merge; (2) is a judgment call. |
|
duplicado de #788 |
Product JSON-LD offers now apply the store's configured payment discount (settings.modules.list_payments.discount_option), reusing getPriceWithDiscount from use-prices. Falls back to the regular price when no discount is configured, so behavior is unchanged for stores that don't set it.