Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Posts
    7
    Plugin Contributions
    0

    Default force currency based on shipping adress

    I have searched around the forum for a week, and found answers to almost everything, but not this;

    In my store you can use two different currencies. When it comes to taxes I have managed to set it up so if the shipping adress is within a zone the tax will be added (in my case VAT if the customer is from the same country I'm shipping from).

    My question is; is it possible to do the same with currencies? I have 2 different currencies, GBP and Euro. but for UK citizen I want the order to be charged in GBP, and not have the option to choose euro.

    regards
    Enriko

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: force currency based on shipping adress

    Doing that will require some custom coding.

    You could try adding some logic to init_currencies.php to check the customer's address and if they're UK and have selected EUR to force it back to GBP.

    And/or you could alter the code in the currencies sidebox so that EUR is not offered if the customer's address is UK.
    .

    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.

  3. #3
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    Default Re: force currency based on shipping adress

    Hi guys, could someone please post the code required to force currency back to the default currency when the customer starts the checkout process?

    Thanks. :)

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: force currency based on shipping adress

    This will set the session's currency to the store's default currency, ignoring any language-related currency override:
    $_SESSION['currency'] = 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.

 

 

Similar Threads

  1. v150 Set default shipping adress when creating a new adress book entry.
    By Fehfeh in forum General Questions
    Replies: 1
    Last Post: 16 Aug 2012, 04:02 AM
  2. Any Way To Force USPS Express Shipping based on dollar amount?
    By dharma in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 9 Nov 2010, 07:23 PM
  3. 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
  4. force a currency
    By rikdc in forum Managing Customers and Orders
    Replies: 2
    Last Post: 10 May 2006, 03:35 PM

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