Forums / Currencies & Sales Taxes, VAT, GST, etc. / Change language by URL. - Incoming link will change the curency

Change language by URL. - Incoming link will change the curency

Locked

Views: 5,286

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
10 Jul 2008, 11:39 AM
#1
thailandosc avatar

thailandosc

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Change language by URL. - Incoming link will change the curency

Ive used oscommerce for ages and have recently changed to zen

In oscommerce mydomain.com/catalog/index.php?currency=GBP

changes the shown language to GBP (great british pounds).

Similarly mydomain.com/catalog/index.php?currency=USD

changes to US Dollars.

This is great because for my ads aimed at the UK, the customers click the link to my cart and see prices in pounds.

Similarly ads aimed at the us lead people to my site in dollars.

How can i do this in Zen cart? It doesnt work!!!!

This is very useful for google base ads where for US ads the currency must be in USD and UK must be GBP

Thanks

10 Jul 2008, 1:49 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Change language by URL. - Incoming link will change the curency

That's a puzzling thing say. It works in exactly the same way in Zen Cart.

Here are some examples to demonstrate it

http://(sorry, site offline)/138/index.php?currency=GBP

http://(sorry, site offline)/138/index.php?currency=USD

http://(sorry, site offline)/138/index.php?currency=EUR

http://(sorry, site offline)/138/index.php?currency=CAD

http://(sorry, site offline)/138/index.php?currency=AUD

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

10 Jul 2008, 6:59 PM
#3
thailandosc avatar

thailandosc

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: Change language by URL. - Incoming link will change the curency

kuroi:

That's a puzzling thing say. It works in exactly the same way in Zen Cart.

Here are some examples to demonstrate it

http://(sorry, site offline)/138/index.php?currency=GBP

http://(sorry, site offline)/138/index.php?currency=USD

http://(sorry, site offline)/138/index.php?currency=EUR

http://(sorry, site offline)/138/index.php?currency=CAD

http://(sorry, site offline)/138/index.php?currency=AUD

OK it works on the index.php page but does not work on the product info pages

eg

http://(sorry, site offline)/138/index.php?main_page=product_info?currency=USD&cPath=1_4&products_id=1

10 Jul 2008, 7:01 PM
#4
thailandosc avatar

thailandosc

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: Change language by URL. - Incoming link will change the curency

http://(sorry, site offline)/138/index.php?main_page=product_info&cPath=1_4&products_id=1?currency=USD

http://(sorry, site offline)/138/index.php?main_page=product_info&cPath=1_4&products_id=1?currency=EUR

http://(sorry, site offline)/138/index.php?main_page=product_info&cPath=1_4&products_id=1?currency=AUD

It doesnt work!

10 Jul 2008, 10:41 PM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Change language by URL. - Incoming link will change the curency

That's because of a syntax error in the way you're building the URLs (which would apply to any system where parameters are passed as GET variables). The first parameter starts with a "?" but any others chained to it are preceded by "&" instead.

For example, this works:```html
http://(sorry, site offline)/138/index.php?main_page=product_info&cPath=3_15&products_id=20&currency=USD

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)