Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Deprecate `display_price` and `display_compare_at_price` helpers
Damian Legawiecb21393f724f6
diff --git a/core/app/helpers/spree/base_helper.rb b/core/app/helpers/spree/base_helper.rbindex 35fa378034..fd4aea575a 100644--- a/core/app/helpers/spree/base_helper.rb+++ b/core/app/helpers/spree/base_helper.rb@@ -33,6 +33,8 @@ module Spreeenddef display_price(product_or_variant)+ Spree::Deprecation.warn('display_price is deprecated and will be removed in Spree 5.5. Use variant.price_for(context).display_amount instead.')+product_or_variant.price_in(current_currency).display_price_including_vat_for(current_price_options).@@ -40,6 +42,8 @@ module Spreeenddef display_compare_at_price(product_or_variant)+ Spree::Deprecation.warn('display_compare_at_price is deprecated and will be removed in Spree 5.5. Use variant.price_for(context).display_compare_at_amount instead.')+product_or_variant.price_in(current_currency).display_compare_at_price_including_vat_for(current_price_options).