From 237f9efeaced7979b85c9742eb38250141de4d61 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Tue, 5 May 2020 17:51:55 +0100 Subject: [PATCH 1/2] Dont refresh shipping rates when editing an order in the backoffice --- app/controllers/spree/admin/orders_controller.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/controllers/spree/admin/orders_controller.rb b/app/controllers/spree/admin/orders_controller.rb index 5f8154a355e..df345a673cd 100644 --- a/app/controllers/spree/admin/orders_controller.rb +++ b/app/controllers/spree/admin/orders_controller.rb @@ -33,8 +33,6 @@ def new end def edit - @order.shipments.map(&:refresh_rates) - AdvanceOrderService.new(@order).call # The payment step shows an error of 'No pending payments' From 5386ce30674bafff29a99473d43c9d76306a5517 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Tue, 5 May 2020 17:55:44 +0100 Subject: [PATCH 2/2] Do not refresh shipping rates when updating customer details --- .../spree/admin/orders/customer_details_controller.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/controllers/spree/admin/orders/customer_details_controller.rb b/app/controllers/spree/admin/orders/customer_details_controller.rb index 2a22c1e0866..13784e22382 100644 --- a/app/controllers/spree/admin/orders/customer_details_controller.rb +++ b/app/controllers/spree/admin/orders/customer_details_controller.rb @@ -25,7 +25,6 @@ def update AdvanceOrderService.new(@order).call - @order.shipments.map(&:refresh_rates) flash[:success] = Spree.t('customer_details_updated') redirect_to admin_order_customer_path(@order) else