[ic] Error Messages:

Garry interchange-users@lists.akopia.com
Tue Jul 10 08:27:03 2001


Am I right in assuming that if I want to change the locale, using the admin
interface, I download locale.txt, change the $ to £, and change the column
heading from en_US  to en_GB. Then upload that txt file again?

or, do I need to do this operation to another file? ie config.cfg.  If I
have to modify this, I assume I have to download it using and ftp client,
then alter it using an editor that wont alter any of the line formatting,
then I save it and re upload it again - am I on the right track ?

Garry


----- Original Message -----
From: "Jonathan Clark" <jonc@webmaint.com>
To: <interchange-users@developer.akopia.com>
Sent: Tuesday, July 10, 2001 11:43 AM
Subject: RE: [ic] Error Messages:


>
>
> > I wanted to change the locale to appear to be in the UK.  I have tried
> > several unsuccesful methods, the biggest problem being with the error
> > messages on the checkout page.
>
> default locale should be en_GB, with appropriate settings in locale.txt
for
> price formatting etc.
>
>
> > What I have done, with a degree of success, (and what has seemed to be
the
> > best option so far) is changed the US Label from "United States"
> > to "United
> > Kingdom", removed the option to be able to choose "Canada" or "Other",
and
> > got the Checkout to look up UK Counties instead of US States.
>
> You can alto use a ValuesDefault directive in catalog.cfg to uk:
>
> ValuesDefault    country           UK
>
> > This works
> > extremely well apart from the error message system, which will
> > not accept a
> > UK Postcode: The error message indicating that the postcode
> > entered is not a
> > valid US or Canada Code, and in that, it is correct.
> >
> > Someone told me where to look to change the format of the postcode, but,
>
> yep, that was me.
>
> > given the method by which I have to modify IC - and my limited
> > knowledge of
> > how the program works, I simply didn't understand what I was being told.
> >
> > Is there a simple manner in which I can modify IC to accept a
> > different type
> > of postcode (zip) whilst thinking it is still in the US? (UK
> > postcodes look
> > like this: (eg) BD22 5HU, or W1 5ES).  Or alternatively, just
> > have the error
> > checker see at least the first 2 or 3 characters of the postcode field
to
> > accept it?
>
> simple way was as I described, it performes no validation though... you do
> need the country to be non US / CA for it to work. see etc/profiles.order:
>
> [if value country =~ /^(US|CA)$/i]
> state=state_province "[value state]" is not a valid US/Canada state or
> province.
> zip=postcode "[value zip]" is not a valid US/Canada postal code.
> &or phone_day=phone, phone_night=phone Must have alternative or day
> phone_number
> [else]
> &or phone_day=phone, phone_night=phone Must have alternative or day
> phone_number
> [/else]
> [/if]
>
> you are being caught out by this since country='US'
>
> I just looked and I actually use 'word' filter:
>
> <INPUT TYPE=text NAME=zip VALUE="[value name=zip filter=word]" size=10>
>
> good luck!
>
> Jonathan.
>
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com