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
add deprecation warning to FrontendHelper#price_filter_values
Łukasz Adamczyk862cf0bc9da5
diff --git a/frontend/app/helpers/spree/frontend_helper.rb b/frontend/app/helpers/spree/frontend_helper.rbindex 0c779d6646..8256d50d96 100644--- a/frontend/app/helpers/spree/frontend_helper.rb+++ b/frontend/app/helpers/spree/frontend_helper.rb@@ -228,6 +228,11 @@ module Spreeenddef price_filter_values+ ActiveSupport::Deprecation.warn(<<-DEPRECATION, caller)+ `FrontendHelper#price_filter_values` is deprecated and will be removed in Spree 5.0.+ Please use `ProductsFiltersHelper#price_filters` method+ DEPRECATION+@price_filter_values ||= ["#{I18n.t('activerecord.attributes.spree/product.less_than')} #{formatted_price(50)}","#{formatted_price(50)} - #{formatted_price(100)}",