-
Notifications
You must be signed in to change notification settings - Fork 118
Shipments cost #34
Comments
Hi Matthieu, and I defined a private method
this solved my shipping cost problem, I guess this method only works for flat rate. hope this helps and you come up with better approach. |
Hi, After few researches on why and how... I see that: class Calculator::FlatRate < Calculator
preference :amount, :decimal, default: 0
preference :currency, :string, default: ->{ Spree::Config[:currency] } I thought that when the calculator is used, it will use the "order/shipment currency"... but seems not. Thanks again, investigations continue... |
Glad you are able to figure it yourself. :) |
Hi, in fact I'm not planning to create new calculators, I will just "decorate" existing ones and set the default currency to |
For shipment methods with calculators such as flat rate that take amount, we should have prices for each currency. |
@priyank-gupta @damianlegawiec @Mafi88 What are your thoughts? Thank you. |
@aishmita-aggarwal i agree with you. I am facing same problem. We can't define right now different value for each currency on calculator. We need it same as we have with products etc. so this feature is missing in this extension. |
we can override like this perhaps. `module Spree
end |
Hi,
Thanks for your work, it's very helpful.
I have some issues with the Shipments cost... because it's "calculated directly" into a variable
shipment_total
...shipment_total
is calculated intoSpree::OrderUpdated::update_shipment_total
method:The problem is that the
cost
is calculated into the current order currency...so if I want to change the
shipment_total
I have to add define thecost
into "all supported currency"?In fact I don't know how to "solve" this problem...
How
shipments
are created? When? just after the user enter isshipping address
?What's
shipping_rate
?How all this stuff work together?
Really, this time, I'm lost. Thanks for your help.
The text was updated successfully, but these errors were encountered: