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

das-peter’s picture

Please 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.)

chazsmi’s picture

Hi,

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

das-peter’s picture

Title: Total price displays 0.00 for second currency euros » Checkout total price displays 0.00 for second currency euros
Status: Active » Fixed

I 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 by commerce_order_calculate_total) bases on commerce_price_components_combine which only considers the price components.
Unfortunately the current rules config of commerce_multicurrency used data_set to 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)

chazsmi’s picture

Thanks a lot all seems to be working for me now, nice work.

Thanks again.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.