Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    Join Date
    Jan 2005
    Location
    UK
    Posts
    24
    Plugin Contributions
    0

    Default Dual Currency Display Mod

    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
    Attached Files Attached Files

  2. #2
    Join Date
    Dec 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Dual Currency Display Mod

    This works beautifully on my 1.3.6 cart. See it here for Japanese Yen and US Dollars http://tinyurl.com/34lg7l

  3. #3
    Join Date
    Dec 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Dual Currency Display Mod

    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.

  4. #4
    Join Date
    Jan 2005
    Location
    UK
    Posts
    24
    Plugin Contributions
    0

    Default Re: Dual Currency Display Mod

    Mike,

    Yes it can be done, but it requires hacking the core code.

    In includes/modules/pages/shopping_cart/header_php.php find:
    Code:
    $cartShowTotal = $currencies->format($_SESSION['cart']->show_total());
    then beneath it put:
    Code:
    $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.

  5. #5
    Join Date
    Jan 2005
    Location
    UK
    Posts
    24
    Plugin Contributions
    0

    Default Re: Dual Currency Display Mod

    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.

  6. #6
    Join Date
    Dec 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Dual Currency Display Mod

    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.

  7. #7
    Join Date
    Jan 2005
    Location
    UK
    Posts
    24
    Plugin Contributions
    0

    Default Re: Dual Currency Display Mod

    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.

  8. #8
    Join Date
    Dec 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Dual Currency Display Mod

    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.

  9. #9
    Join Date
    Jan 2006
    Posts
    224
    Plugin Contributions
    0

    Default Re: Dual Currency Display Mod

    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.

  10. #10
    Join Date
    Dec 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Dual Currency Display Mod

    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.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v138a Super Orders mod for Dual Pricing mod to show Reseller on Packing Slip
    By kavlito in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 29 Dec 2012, 08:17 PM
  2. Google sometimes crawls with currency in URL.. USER CURRENCY mod
    By gaffettape in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 22 May 2011, 05:05 AM
  3. Making Dual Pricing Mod and Add Customer from Admin Mod Work Together
    By r2llc1605 in forum Customization from the Admin
    Replies: 5
    Last Post: 19 May 2009, 04:37 AM
  4. Dual Currency with Dual Gateways (USD/CAD)
    By farhansabir in forum General Questions
    Replies: 3
    Last Post: 30 Mar 2009, 07:31 PM
  5. A slightly different dual currency question -- certain products in a certain currency
    By gordonblack in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 18 Jul 2007, 01:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg