I live in a country where EURO is going to replace local currency.
But there's a period of time where price in BOTH, local and EURO currency, must be displayed.
So here's a tweak to achieve this, if you got a fixed exchange rate. But note that this customization means changing two files directly - I have not enough php programming knowledge to add some exchange rate field into vm backend. It would also mean changing database table structures and only Soeren can probably approve such a thing as it would influence on all users/developers.
So what you need to do is:
- in file shop.browse.php (/administrator/components/com_virtuemart/html/) find the following string:
$product_cell = str_replace( "{product_sku}", $db_browse->f("product_sku"), $product_cell );
it should be around line 412. After above line add the following:
$product_price_num= str_replace(".", "", $product_price);
$product_price_num= str_replace(",", ".", $product_price_num);
$product_price_num= str_replace("SIT", "", $product_price_num);
$eur_product_price = number_format( strip_tags($product_price_num) / 239.64,2,",",".");
$product_cell = str_replace( "{eur_product_price}", $eur_product_price, $product_cell );
The factor 239,64 is my exchange rate between SIT and EUR. You will put another number here, based on your own exchange rate.
Save the file and open your browse template (usually "browse_1.php" in /administrator/components/com_virtuemart/html/templates/browse/)
at end of line containing the following:
{product_price}
add <br/> tag and put in new line:
{eur_product_price} EUR
Save file and that's it. If you want, you can change text "EUR" to some other currency.
All this will display EUR price under usual price on product browse page.
Hope I helped someone with this.
Bostjan