VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: srajca on June 11, 2012, 14:57:04 PM

Title: Currency converter - show icons or text instead of dropdown
Post by: srajca on June 11, 2012, 14:57:04 PM
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,
Title: Re: Currency converter - show icons or text instead of dropdown
Post by: rzrz on January 31, 2013, 06:34:59 AM
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> ";
}
*/ ?>
Title: Re: Currency converter - show icons or text instead of dropdown
Post by: sorema on July 12, 2013, 17:11:53 PM
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
Title: Re: Currency converter - show icons or text instead of dropdown
Post by: Maxim Pishnyak on July 12, 2013, 17:15:18 PM
standard currency selector module could show icons
Title: Re: Currency converter - show icons or text instead of dropdown
Post by: sorema on July 13, 2013, 00:41:25 AM
my currency selector module does not have any option in backend! i have last virtuemart 2.0 compatible version where should i see?
Title: Re: Currency converter - show icons or text instead of dropdown
Post by: Maxim Pishnyak on July 13, 2013, 12:02:06 PM
Not good. Are you sure that you have last VM AIO extensions?

Regards.
Title: Re: Currency converter - show icons or text instead of dropdown
Post by: sorema on July 14, 2013, 16:42:58 PM
i've got last vm version and last vm aio version! what's happening?
Title: Re: Currency converter - show icons or text instead of dropdown
Post by: Maxim Pishnyak on July 15, 2013, 22:05:17 PM
Everything IS very simple.

Please post here screen shot of your currency module settings and write here version of this specific module.
Title: Re: Currency converter - show icons or text instead of dropdown
Post by: sorema on July 16, 2013, 02:00:32 AM
i attach the screenshot and the version is 2.0.18a    January 09 2013

[attachment cleanup by admin]
Title: Re: Currency converter - show icons or text instead of dropdown
Post by: Maxim Pishnyak on July 16, 2013, 12:44:41 PM
That's right. This picture also shows that you have old version of module.
The newest one is 2.0.20b.
Title: Re: Currency converter - show icons or text instead of dropdown
Post by: roefen on October 20, 2013, 12:58:36 PM
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
Title: Re: Currency converter - show icons or text instead of dropdown
Post by: sorema on February 14, 2014, 16:49:24 PM
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.