VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Drunk_Monkey on August 26, 2012, 09:22:42 AM

Title: Displaying the two currencies in the price of goods (In the item card)
Post by: Drunk_Monkey on August 26, 2012, 09:22:42 AM
help please

how the item card show prices in two currencies.

In virtuemart one helped this decision

  / components / com_virtuemart / themes / default / templates / common / price.tpl.fp

replace
code:

<?php echo $CURRENCY_DISPLAY->getFullValue($base_price)?>
on
<?php
require_once ( CLASSPATH'currency/convertECB.php');
$convECB = new convertECB;
$kurs $convECB->convert(1,'USD','EUR');
echo 
$CURRENCY_DISPLAY->getFullValue($base_price).'$, 'round($base_price*$kurs,0).' €.';
?>
  - show curency USD and EUR

What and where changes need to be done in vitrtuemart 2