web design, England, Britain, UK, belgium
 

Select VirtueMart Currency By Language - Joomla & VirtueMart Tips & How To's

VirtueMart currency selected by chosen language. How to force the VirtueMart currency to be selected by the chosen VirtueMart language.

Home Joomla VirtueMart Tips Select VirtueMart Currency By Language

Tue

01

Dec

Select VirtueMart Currency By Language
  • VirtueMart 1.1
  • Joomla 1.5
  • Joomfish 2.0

Have seen a few times the request for the VirtueMart currency to be set by the chosen language.
After a fair amount of trial and error I've finally got this to work.



VirtueMart currency selected by chosen language With VirtueMart is is quite straight forward to have a fully working multi-lingual shop. See this article on how to integrate Joomfish 2.0. with VirtueMart 1.1 --> Joomla 1.5, VirtueMart 1.1 & Joomfish 2.0

But it would also be nice in some cases to have the currency follow the language selection, for example a shop selling in the UK and France would choose the vendor currency automatically (UK Pounds or Euros ) depending on the language chosen.

The hack basically uses the Joomfish cookie to tell the VirtueMart core which language is chosen and therefore which currency to display. The advantage of this is that the Joomfish cookie is available throughout the browse, cart and checkout sessions and if the user changes language at any point during the transaction, the currency changes with it.
I found, after a lot of experimentation, that this was not case for the other possible parameters product_currency and the url lang= parameter.
If the VirtueMart currency module is used this can also over-ride the currency at any time.

As usual with VirtueMart a lot of recoding is necessary but if you would like us to help you achieve this solution or help in some other way just contact us through our Contact Page.

VirtueMart currency selected by chosen language
Last Updated on Wednesday, 30 January 2013 21:16
 
VirtueMart
Your Cart is currently empty.



Select VirtueMart Currency By Language|Joomla & VirtueMart Tips & How To's



VirtueMart currency selected by chosen language. How to force the VirtueMart currency to be selected by the chosen VirtueMart language.


currency, virtuemart, language, joomfish, chosen, help, changes, shop, lot, joomla, cookie, contact, experimentation, transaction, point, user, available, advantage, display, core, case, browse, checkout, cart, sessions, url, necessary, recoding, usual, like, achieve, page, solution, time, ride, tell, product, parameters, lang, parameter

|

We use cookies to improve our website and your experience when using it. Cookies used for the essential operation of the site have already been set.
To find out more about the cookies we use and how to delete them, see our privacy policy.

I accept cookies from this site.