[ic] Country variable lost when logging out

Ed LaFrance interchange-users@icdevgroup.org
Tue Nov 5 09:54:00 2002


At 08:32 AM 11/5/2002 +0000, you wrote:
>Interchange user [interchange.mail@virgin.net] wrote:
> >
> > If I log in and log out again, and then go to the checkout page, my 
> shipping
> > routine is not returning anything. I have found that this is because the
> > [value country] variable that is normally passed to it is lost upon 
> logging
> > out. It will stay this way until I hit 'recalculate', change the 
> country, or
> > log back in, even if I go to another page and then come back to the 
> checkout
> > page.
> >
>You could modify your catalog.cfg to include this directive:
>
>     ValuesDefault  country  GB
>
>Where 'GB' is the default to be set (change to whatever you need).
>The [value country] will be initialised with the default whenever a
>new session is allocated.

But that doesn't solve the little problem he is describing, which is 
logging out (which clears the country value) within the same session, then 
returning to the checkout page. In that case, just add something like this 
to the top of ord/checkout.html:

[value name=country set="[either][value country][or]US[/either]" hide=1]

... you could also use the default country variable from the variable table 
as the settor instead of 'US'

- Ed L.


===============================================================
New Media E.M.S.              Technology Solutions for Business
463 Main St., Suite D         eCommerce | Consulting | Hosting
Placerville, CA  95667        edl@newmediaems.com
(530) 622-9421                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (530) 622-9426 Fax
===============================================================