Forums / Currencies & Sales Taxes, VAT, GST, etc. / Switching currency automatically depending on language?

Switching currency automatically depending on language?

Locked

Started by kazie on 27 Jan 2010, 10:49 AM · Views: 1,082

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
27 Jan 2010, 10:49 AM
#1
kazie avatar

kazie

New Zenner

Join Date:
Feb 2006
Posts:
26
Plugin Contributions:
0

Switching currency automatically depending on language?

Is there a way to automatically switch the currency when you switch language. For instance, my default language is english/us dollars. When a site visitor switches to spanish, I want the currency to simultaneously switch to euros.

27 Jan 2010, 2:50 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Switching currency automatically depending on language?

Yes. Two steps required:

  1. Edit your /includes/languages/spanish.php file and set the define for LANGUAGE_CURRENCY to 'EUR'
  2. Go to Admin->Configuration->My Store->Switch To Default Language Currency and set it to true.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Jan 2010, 1:29 PM
#3
kazie avatar

kazie

New Zenner

Join Date:
Feb 2006
Posts:
26
Plugin Contributions:
0

Re: Switching currency automatically depending on language?

Awesome, thank you!