Hi,
My default currency is GBP, I have also enabled euros, I have also enabled the currency specific fields.
When I change the currency, using the change currency block, to euros the total order amount on the checkout page appears as 0.00€. The line item is fine.
This only happens for euros and not for GBP.
Comments
Comment #1
das-peter commentedPlease check how the related rules ("Set the currency price") look like.
It sounds like the rule doesn't use/set the € field.
If there's no rule to set the € price, please save and then revert the reaction rule. That should help since this triggers commerce_multicurrency to recreate the rule from scratch.
(Sometimes even a simple cache clear helps I such situations.)
Comment #2
chazsmi commentedHi,
I have reverted this rule and cleared the cache, unfortunately no luck.
The rule "Set the currency price" has one action: "Use the EUR price" which has a Data selector of "commerce-line-item".
Is this correct? Would this data selector cover the order total?
Thanks,
Charlie
Comment #3
das-peter commentedI spent some time figuring out why that issue only affects the checkout total.
The (surprising) outcome was that in the cart view
commerce_line_items_total()is used to calculate the total - this summarizes the amount by using the line item amout values, but the order total (as used in checkout and generated bycommerce_order_calculate_total) bases oncommerce_price_components_combinewhich only considers the price components.Unfortunately the current rules config of commerce_multicurrency used
data_setto copy the price values from the price field into the line item price - and because the price field hasn't a price component set, the calculation of the order total struggled.I've changed the rules now to use commerce line item actions which also take care about creating the price component.
Changes committed and new release available.
Please make sure the rule components (admin/config/workflow/rules/components) "Use the XXX price" are reverted (open, save, revert the component)
Comment #4
chazsmi commentedThanks a lot all seems to be working for me now, nice work.
Thanks again.