Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1. #11
    Join Date
    Nov 2011
    Location
    Brisbane, Australia
    Posts
    10
    Plugin Contributions
    0

    Default Re: Forcing default currency at checkout

    My preference is to show at checkout the currency in which the charge will be transacted. This gives the customer an indication that a conversion to their own currency will take place, hence they will not be too surprised if the charged amount is not in perfect alignment with the checkout's estimated amount. But if that's not an issue, then DrByte's is a good option.

  2. #12
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Forcing default currency at checkout

    Quote Originally Posted by haroldf View Post
    My preference is to show at checkout the currency in which the charge will be transacted. This gives the customer an indication that a conversion to their own currency will take place, hence they will not be too surprised if the charged amount is not in perfect alignment with the checkout's estimated amount. But if that's not an issue, then DrByte's is a good option.
    Fixed it without hacking core code (as per DrByte's suggestion).

    The shopping cart page(s) still show the chosen currency. Added a few language defines and displayed their relevant content on the checkout_confirmation page. These language defines won't show up if the default currency AUD is selceted - and neither they should show up in this instance as there is nothing to convert.

    See screenie:

    Name:  currency_conversion.jpg
Views: 117
Size:  111.7 KB

  3. #13
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Forcing default currency at checkout

    Posted the code changes in the eWay thread:

    https://www.zen-cart.com/showthread....57#post1305257

  4. #14
    Join Date
    Sep 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Forcing default currency at checkout

    I'm looking for a similar solution to a slightly different problem. The (ZC155) store wants to price its goods in US dollars, but only display them in GB Pounds - not just at the checkout, but throughout the store.

    It works just fine if the customer chooses GBP in the currency drop-down, but I don't want them to have that option: I want that setting to default to GBP even though the underlying store Default Currency is USD. Preferably without showing the currency box at all.

    How can I do this? What does that Currency box change when the customer alters it? How can I "pre-alter" it?

  5. #15
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Forcing default currency at checkout

    Quote Originally Posted by hairydog View Post
    I'm looking for a similar solution to a slightly different problem. The (ZC155) store wants to price its goods in US dollars, but only display them in GB Pounds - not just at the checkout, but throughout the store.

    It works just fine if the customer chooses GBP in the currency drop-down, but I don't want them to have that option: I want that setting to default to GBP even though the underlying store Default Currency is USD. Preferably without showing the currency box at all.

    How can I do this? What does that Currency box change when the customer alters it? How can I "pre-alter" it?
    You simply set the "default currency" (in Localization->Currencies) to be GBP instead of USD.
    And then you have to manually set currency-exchange rates (because the auto-updater of exchange rates is based on the default currency).
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #16
    Join Date
    Sep 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Forcing default currency at checkout

    You are missing the point, both here and the other place where the thread has been closed so I can't reply there.

    If I change the default currency to GBP, all the prices are stored in GBP. That would be no use at all. The client wants to price in dollars, sell in pounds.

    I have not been able to get it to work as it should, but I've found a workaround: I have created a new language called UKEnglish, which is simply an exact copy of English. Selecting this as the default store language and then removing the language English has made the system work as I think it is supposed to:

    The prices are stored in USD, the currency lookups work automatically on a cron job (though I had to read the php code to find out how to set it up - is there no documentation for this?)

    The default language is set to UKEnglish and its default currency is GBP. Customers are now shown prices in GBP.

    Clearly there is some hard-coded default somewhere in ZC155 that sets the currency to USD if the language is English, ignoring the settings in the language files. By setting a different language I've bypassed this bug. It would be better to find the bug and fix it, but I don't know how.

    The only downside to my workaround is that for any addons I install, I need to rename the English directory before installing. The big advantage is that a future ZC update won't overwrite my Admin english.php settings.

  7. #17
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Forcing default currency at checkout

    Quote Originally Posted by hairydog View Post
    Clearly there is some hard-coded default somewhere in ZC155 that sets the currency to USD if the language is English, ignoring the settings in the language files. By setting a different language I've bypassed this bug. It would be better to find the bug and fix it, but I don't know how.
    Not aware of any such "hard-coded" thing in this regard.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #18
    Join Date
    Sep 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Forcing default currency at checkout

    I'm sure there shouldn't be, but my experience of the bug and the successful workaround suggests that there is!

  9. #19
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,402
    Plugin Contributions
    94

    Default Re: Forcing default currency at checkout

    @hairydog: What's your store's setting for Configuration->My Store->Switch To Default Language Currency?

  10. #20
    Join Date
    Sep 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Forcing default currency at checkout

    True .

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. PayPal Checkout in default currency
    By giftmeister in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 15 May 2011, 05:16 AM
  2. Forcing currency on checkout
    By mjpwall in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 20 Dec 2010, 05:06 PM
  3. Currency converting back to default in checkout
    By eurojen in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 26 Nov 2008, 12:13 AM
  4. How to force checkout in default currency?
    By tj1 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 13 Oct 2008, 03:59 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR