Fix passing order not self shipping calculator.
This commit is contained in:
parent
dc6bccfad3
commit
732a85dc88
|
@ -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
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue