diff --git a/core/app/models/spree/order.rb b/core/app/models/spree/order.rb index 2d58b60154b..1014af0e1e2 100644 --- a/core/app/models/spree/order.rb +++ b/core/app/models/spree/order.rb @@ -465,9 +465,8 @@ def empty! persist_totals end - def has_step?(step) - checkout_steps.include?(step) - end + alias_method :has_step?, :has_checkout_step? + deprecate has_step?: :has_checkout_step?, deprecator: Spree::Deprecation def state_changed(name) state = "#{name}_state" @@ -785,7 +784,7 @@ def require_email end def ensure_inventory_units - if has_step?("delivery") + if has_checkout_step?("delivery") inventory_validator = Spree::Stock::InventoryValidator.new errors = line_items.map { |line_item| inventory_validator.validate(line_item) }.compact diff --git a/frontend/app/views/spree/shared/_order_details.html.erb b/frontend/app/views/spree/shared/_order_details.html.erb index 5638a492254..3c814126d96 100644 --- a/frontend/app/views/spree/shared/_order_details.html.erb +++ b/frontend/app/views/spree/shared/_order_details.html.erb @@ -1,13 +1,13 @@