A few people have asked how to display a second currency on the product page. Here is a little mod that we use.
Hope it helps,
Matt
A few people have asked how to display a second currency on the product page. Here is a little mod that we use.
Hope it helps,
Matt
This works beautifully on my 1.3.6 cart. See it here for Japanese Yen and US Dollars http://tinyurl.com/34lg7l
Matt,
It displays the prices throughout the catalog very well. I would like the cart to display in two currencies also (shipping, subtotals and totals...sidebox cart also). I don't know how or where to edit the code. Any ideas? Thanks again.
BTW. My default currency is set to JPY.
Mike,
Yes it can be done, but it requires hacking the core code.
In includes/modules/pages/shopping_cart/header_php.php find:
then beneath it put:Code:$cartShowTotal = $currencies->format($_SESSION['cart']->show_total());
Now drop $cartShowTotalExtraCurrency anywhere you like into your cart template to display the subtotal in your second currency.Code:$original_currency = $_SESSION['currency']; $_SESSION['currency'] = EXTRA_CURRENCY; $cartShowTotalExtraCurrency = $currencies->format($_SESSION['cart']->show_total()); $_SESSION['currency'] = $original_currency;
You can repeat this process for other values as needed.
Oh, by the way, your site looks great, but being from the UK I thought when I saw your shopping cart that the prices were in pounds sterling! You may wish to emphasise the Yen.
Hi Matt,
Thanks for the reply. nice comment and the heads up. I'll check out the code. If you don't mind, did the prices come up Pounds Sterling on top and Yen on the bottom? It should be coming up USD on top and Yen on the bottom.
The catalog looks fine. Its just that in the shopping cart you do not display "JPY" with the prices, so the £ symbol looks like it might be uk sterling.
Gotcha. No. That's the problem I'm asking about. The catalog works but I want to make the changes to the cart so it will display both currencies. That's what I'm hoping your hack will help me with. Still haven't had a chance to look at it yet though.
It's actually a Yen symbol. I'll be adding JPY and USD like I have in the catalog once I get it working. Cheers.
I thought to avoid confusion, it would be great if the base currency be bold or larger font , or the secondary currency be in italics or different colour. (Like ebay). Yes, looking at your site, customer may confuse which is the currency.
Thanks Ron. I made some changes to the currency design per yours and Matt's suggestion. I think it looks better. I can understand how it may have been confusing. I hope this works out better.