lib/controllers/frontend/spree/checkout_controller_decorator.rb
# Introduces a registration step whenever the +registration_step+ preference is true.
Introduces a registration step whenever the +registration_step+ preference is true.
Introduces a registration step whenever the + registration_step + preference is true .
def check_registration
    return unless Spree::Auth::Config[:registration_step]
    return if spree_current_user || current_order.email
    store_location
    redirect_to spree.checkout_registration_path
  end
def check_registration return unless Spree :: Auth :: Config [ :registration_step ] return if spree_current_user || current_order . email store_location redirect_to spree . checkout_registration_path end
Introduces a registration step whenever the +registration_step+ preference is true.
Introduces a registration step whenever the + registration_step + preference is true .