Hi
On the front-end everything works fine.
I can change the currency sign per country.

But in the admin section, the currency signs of the saved orders are still dynamic.
Which means, they change according to the location of the admin.

For example if an order is made in EUR,
and the admin set to Switzerland, he sees a CHF sign in front of the prices in the orders, invoices and package slips.
This leads to incorrect invoices and package slips.

Is there a way to save the currency sign with an order statically?
So they do not change and only reflect the currency sign used at the time of checkout?

I would sponsor this improvement.
Thanks

Comments

stefan81’s picture

I noticed that the currency is saved into the database (uc_orders).
It seems to be done by uc_order.module.

Maybe here:

  function __construct() {
    $this->order_status = uc_order_state_default('in_checkout');
    $this->currency = variable_get('uc_currency_code', 'USD');
  }

But the store default currency is saved.
Can't UC Multiprice use this field to save the currency code there?

Because I modified (hacked) the ubercard core modules to show the right currency.
If I could access the currency field it would make the code simpler.