Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Choose currency before entering shop


colinr

Recommended Posts

Posted

Is it possible to select a default currency for an individual entering my osCommerce shop based on a query string?

 

I have a homepage that links to the shop and I want the user to choose their location on the homepage by clicking a flag. Based on this the shop will display in their currency, is there a variable I can pass to set the currency at this point? eg: http://www.mysite.com/catalog/?currency=GBP

 

Thanks,

Colin

Posted

Thats exactly how you do it

 

Oscommerce has the currencies box (by default on the righthand bottom column) and it works using that exact same variable

eg

yoursite/default.php?currency=USD

will change it to USD

 

as long as your install supports USD and u put in the right country code..

goto

yoursite/admin/currencies.php?selected_box=localization

in your setup to see which currencies you have available and their code's

Posted

Don't I feel stupid now :)

I must've made a typo when I tested that query string.

 

Anyhow, it works and that's what matters.

Thankyou for the extremely swift response.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...