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.
Hellos..
I do it from total in all pages and it's great, but i want add in prices uniques, Price Total...
For example, Shopping Cart Price on Price Unit, Price Total..
I add on Sub-Total: RD $500 / US $14.28 and looks great..
I want this format in any place with Price RD $500 / US $14.28 ..
Regards..
Jose Bourdier
This code add on
includes/templates/template_default/templates/tpl_shopping_cart_default.php
<div id="cartSubTotal"><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal?> <?php echo SUB_TITLE_SUB_TOTAL_DIVIDER; ?> <?php echo $cartShowTotalExtraCurrency ?></div>
and get this RD $500 / US $14.28 is great..
Now, how can do it same there...
<td class="cartUnitDisplay"><?php echo $product['productsPriceEach']; ?></td>
<td class="cartTotalDisplay"><?php echo $product['productsPrice']; ?></td>
I wan see same format RD $500 / US $14.28...
thanks again...
Cheers for the work done on this great mod.
Mike, I notice that you also have dual pricing on your product listing pages. Can you please pont me in the right direction to set this up? I can only get dual pricing on my product info page (tpl_product_info_display.php).
Many thanks,
Geo
I found the answer to my Q in the previous post:
In the product_lisitng.php find this code:
Replace with this:Code:$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
Code:$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />' . zen_get_products_display_price_extra_currency($listing->fields['products_id']);