[ic] Catalog v.s. admin: locale change

Stefan Hornburg (Racke) racke at linuxia.de
Mon Jun 25 15:36:02 EDT 2007

Ton Verhagen wrote:
> Dear All,
> With every order we save the locale under which the
> order is placed. Doing so enables us to print the invoice
> (and packing list) in the customer's locale.
> Unfortunately one problem occurs:
> In the admin it seems not possible to change the locale on the fly.
> In other words the [setlocale] tag does not work....

Unfortunately the UI has its own set of locales.

> The only way getting the invoice and packing list print in the
> corresponding locale is to login with the locale set on the login page.
> What could we do in order to be able to print a bunch of invoices
> in one go, all with their own locale?

The code switching to the "UI" locale is contained in [mm_locale].
You can probably figure out a way to keep the catalog locale by
passing a scratch variable on your print page and modify the [mm_locale] code slightly.


LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

More information about the interchange-users mailing list