[ic] Localization causes misbehavior of basket?

Ton Verhagen ton@verhagen.net
Thu, 23 Nov 2000 19:22:14 +0100


At 12:50 PM 11/23/00 -0500, you wrote:
>Quoting Ton Verhagen (ton@verhagen.net):
> > Dear All,
> >
> > I encountered a problem while localizing the construct demo.
> >
> > Entries in locale database:
> >
> > code  en_US   de_DE   fr_FR   nl_NL
> > ProductFiles  products        de_products     fr_products     nl_products
> > products      products        de_products     fr_products     nl_products
> >
> > With these settings all searches perform well (as long as no file is
> > explicitly mentioned in search).
> > In other words, when a locale is in effect, e.g. nl_NL, the results come
> > from the associated products table (nl_products). So far so good.
> > However, when I order a product when nl_NL is in effect, the basket shows
> > info coming from 'products' and mv_ib is set to 'products'.
> > Is this intended behavior, have I overlooked something, or is this a bug?
> >
>
>Not intended. You can help by putting this code at the top of your
>basket page and telling me what you see:
>
>[calc]
>         push @out, "ProductFiles: ";
>         push @out, join ",", @{$Config->{ProductFiles}};
>         push @out, "\nDefaultLocale: $Config->{DefaultLocale}\n";
>         push @out, "current locale: @@MV_LANG@@\n";
>         return join "", @out;
>[/calc]

Mike,

Have accessed the catalog with:
http://mydomain.com/cgi-bin/construct/process/locale/nl_NL/page/index

Results from your code:
ProductFiles: nl_products DefaultLocale: current locale:

Why are there no DefaultLocale and current locale showing up?
Hope you'll find out what's wrong.

Thanks a lot.

Ton Verhagen