News:

Looking for documentation? Take a look on our wiki

Main Menu

Currency converter - show icons or text instead of dropdown

Started by srajca, June 11, 2012, 14:57:04 PM

Previous topic - Next topic

srajca

Hello, I guess that the title says it all. How can I change the currency selector module, so that I can have icons or text instead of a dropdown? I would like to use icons for changing / switching between currencies. Any ideas on how can this be accomplished? I am using Virtuemart 2.0.6 on Joomla 1.5.25. Thank you very much for your help,

rzrz

the closest I've found is something like the below, but I'm not sure how to put in the correct variable:


<?php
$link = JRequest::getURI();
$var =& JURI::getInstance( $link );
$var->delVar('product_currency');
$link = $var->toString();
if ($_REQUEST["product_currency"]){
   $var->setVar( 'product_currency', $_REQUEST["product_currency"]);
}
foreach($currencies as $key => $val) {
$class = ($key == $GLOBALS['product_currency'])? 'class="current" style="font-weight: bold;"' : '';
echo "<a $class href='".JRoute::_("$link&virtuemart_currency_id")."'>$key</a> ";
}
*/ ?>

sorema

did anyone found a way to replace dropdown with icons or text? i only use two currencies and i would prefer to use something visually better than dropdown

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

sorema

my currency selector module does not have any option in backend! i have last virtuemart 2.0 compatible version where should i see?

Maxim Pishnyak

Not good. Are you sure that you have last VM AIO extensions?

Regards.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

sorema

i've got last vm version and last vm aio version! what's happening?

Maxim Pishnyak

Everything IS very simple.

Please post here screen shot of your currency module settings and write here version of this specific module.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

sorema

i attach the screenshot and the version is 2.0.18a    January 09 2013

[attachment cleanup by admin]

Maxim Pishnyak

That's right. This picture also shows that you have old version of module.
The newest one is 2.0.20b.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

roefen

Got the same request, running 2.0.24 and there is no way to change to icons in the module.
Did you got it working?

Thanks

sorema

i've downloaded the latest vm version full package. unzipped the folder and checked the module : you are wrong: latest currency selector module does not allow to choose icons or text display.