diff --git a/app/controllers/spree/checkout_controller_decorator.rb b/app/controllers/spree/checkout_controller_decorator.rb index 1367a01..6b3e5cd 100644 --- a/app/controllers/spree/checkout_controller_decorator.rb +++ b/app/controllers/spree/checkout_controller_decorator.rb @@ -357,7 +357,7 @@ module Spree shipping_method = @order.shipping_method_id ? ShippingMethod.find(@order.shipping_method_id) : ShippingMethod.all.first shipping_default = [{ :default => true, :name => shipping_method.name, - :amount => ((shipping_method.calculator.compute(self).to_f) * 100).to_i }] + :amount => ((shipping_method.calculator.compute(@order).to_f) * 100).to_i }] end {