diff --git a/app/controllers/checkout_controller.rb b/app/controllers/checkout_controller.rb index c1fe12ce53..240e736645 100644 --- a/app/controllers/checkout_controller.rb +++ b/app/controllers/checkout_controller.rb @@ -152,7 +152,6 @@ class CheckoutController < Spree::CheckoutController end def update_failed - clear_ship_address RestartCheckout.new(@order).call respond_to do |format| @@ -165,15 +164,6 @@ class CheckoutController < Spree::CheckoutController end end - # When we have a pickup Shipping Method, - # we clone the distributor address into ship_address before_save - # We don't want this data in the form, so we clear it out - def clear_ship_address - unless current_order.shipping_method.andand.require_ship_address - current_order.ship_address = Spree::Address.default - end - end - def load_order @order = current_order redirect_to(main_app.shop_path) && return unless @order && @order.checkout_allowed?