Displaying the two currencies in the price of goods (In the item card)

Started by Drunk_Monkey, August 26, 2012, 09:22:42 AM

Previous topic - Next topic

Drunk_Monkey

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