Hi,
I hope I'm in the right forum for this one...
I've installed the "Ubercart Currency Conversion" - http://drupal.org/project/uc_currency_convert - module and
I've got the flags working and everything is great. I have created a node-product.tpl which I am using to display
prices, imagecache image etc and that works great too. My questions are:
1/ I would like to display the country currency codes such as "AUD", "USD", "GBP", "CAD", "NOK" etc etc next to
the price as well. This info is available in:
function _uc_currency_convert_get_currency($country)
but I am not yet savy enough in PHP to hook the function result into my .tpl file. Can someone please help with me
the code?
2/ I would also like to use the country flag near the price as well, so users a clear with the currency they have
chosen. Can someone also help with the code here too.
Many thanks
Tim
Comments
display current country code
Hi,
After playing around this worked for me...
add to your .tpl file after price:
This should create $100.00 USD (or whatever the current code is)
Adding Flag
So to add the flag image, I added this little bit of extra code...I also duplicated the flag images in the uc_currency_convert folder so that each image had a duplicate image that was renamed the 3 letter code displayed on page ie. US.png was duplicated and named USD.png.
This was how I could grab the image using $currency variable.
Hope this helps someone.
Actually, that code created unwanted extra flags. Best to use php to edit $currency string...maybe