New Zenner
- Join Date:
- Jan 2005
- Posts:
- 24
- Plugin Contributions:
- 0
Dual Currency Display Mod
Hope it helps,
Matt
New Zenner
New Zenner
New Zenner
New Zenner
$cartShowTotal = $currencies->format($_SESSION['cart']->show_total());$original_currency = $_SESSION['currency'];
$_SESSION['currency'] = EXTRA_CURRENCY;
$cartShowTotalExtraCurrency = $currencies->format($_SESSION['cart']->show_total());
$_SESSION['currency'] = $original_currency;New Zenner
New Zenner
New Zenner
New Zenner
Zen Follower
New Zenner
Totally Zenned
New Zenner
New Zenner
Kansai_mike:
This works beautifully on my 1.3.6 cart. See it here for Japanese Yen and US Dollars http://tinyurl.com/34lg7l
New Zenner
$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />' . zen_get_products_display_price_extra_currency($listing->fields['products_id']);New Zenner
New Zenner
Totally Zenned
New Zenner
tj1:
Hi, can someone confirm whether this works on 1.3.8 ?
Thanks
New Zenner
New Zenner
MattC:
Mike,
Yes it can be done, but it requires hacking the core code.
In includes/modules/pages/shopping_cart/header_php.php find:
$cartShowTotal = $currencies->format($_SESSION['cart']->show_total());
then beneath it put:
$original_currency = $_SESSION['currency']; $_SESSION['currency'] = EXTRA_CURRENCY; $cartShowTotalExtraCurrency = $currencies->format($_SESSION['cart']->show_total()); $_SESSION['currency'] = $original_currency;
Now drop $cartShowTotalExtraCurrency anywhere you like into your cart template to display the subtotal in your second currency.
You can repeat this process for other values as needed.
Destination thread ID and reason are required when shown.
Tell staff why this post should be reviewed.
Required for login, security, and core site functionality.
Help us understand how the site is used so we can improve it.
Used for promotion and personalized campaign measurement.