Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Change currency via URL?

Change currency via URL?

Views: 858

Results 1 to 4 of 4
23 Nov 2011, 11:59 AM
#1
ian avatar

ian

New Zenner

Join Date:
Nov 2003
Location:
Brisbane , Australia
Posts:
44
Plugin Contributions:
0

Change currency via URL?

Is it possible to have the currency changed without hard coding something, like having a adder to the url to change the currency?

thanks
ian

23 Nov 2011, 7:06 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Change currency via URL?

Yes. That's how the currency-selection sidebox works presently.

23 Nov 2011, 7:27 PM
#3
ian avatar

ian

New Zenner

Join Date:
Nov 2003
Location:
Brisbane , Australia
Posts:
44
Plugin Contributions:
0

Re: Change currency via URL?

Can you tell what the url looks like as mine does not change
looks like domainname.com/shop/index.php?main_page=index before and after i change currencies.
I was thinking that it should have a reference to currency=GB or something when selecting GB as currency.
Or am i off on a tangent here?

thanks
ian

23 Nov 2011, 8:50 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Change currency via URL?

Simply adding &currency=GBP will change the store into that currency, for that customer's shopping session.

After set, the URL will NOT continue to show it, since it's not needed in the URL once set. The prices, however, will be showing in the new currency, until logoff or closing the browser, or until selecting another currency.