Title: Currency based website redirection possible ?
Last modified: May 19, 2018

---

# Currency based website redirection possible ?

 *  Resolved [portraitflip](https://wordpress.org/support/users/portraitfllip/)
 * (@portraitfllip)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/currency-based-website-redirection-possible/)
 * Hello, I used your plugin. It’s nice. I was wondering if I can send a user to
   another subdomain of my site if a customer clicks a particular currency.
    For
   example: I would like to have 5 currency options If someone clicks euro, dollar,
   currency gets converted and is shown on the same site That’s working well. I 
   want to send the user to [https://india.portraitflip.com/](https://india.portraitflip.com/)
   if he clicks on the Indian rupee. Is it possible?
    -  This topic was modified 7 years, 12 months ago by [portraitflip](https://wordpress.org/support/users/portraitfllip/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcurrency-based-website-redirection-possible%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [RealMag777](https://wordpress.org/support/users/realmag777/)
 * (@realmag777)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/currency-based-website-redirection-possible/#post-10301780)
 * Hello
 * Not from the box, but with some scripts improvements – Yes. Its possible as by
   javascript so by PHP. I will describe how to do this with PHP because JS need
   hardcoding in the WOOCS code.
 * When user select INR site go to the link like: [https://demo.currency-switcher.com/?currency=INR](https://demo.currency-switcher.com/?currency=INR)–
   and it is possible play on it using $_GET[‘currency’] and this hook [https://codex.wordpress.org/Plugin_API/Action_Reference/plugins_loaded](https://codex.wordpress.org/Plugin_API/Action_Reference/plugins_loaded)
   in functions.php of the current wp theme:
 *     ```
       add_action( 'plugins_loaded', function () {
           if(isset($_GET['currency']) AND $_GET['currency'] == 'INR){
             wp_redirect('https://india.portraitflip.com/');
             exit;
           }
       });
       ```
   
    -  This reply was modified 7 years, 12 months ago by [RealMag777](https://wordpress.org/support/users/realmag777/).

Viewing 1 replies (of 1 total)

The topic ‘Currency based website redirection possible ?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-currency-switcher/assets/icon-256x256.png?rev
   =2844633)
 * [FOX - Currency Switcher Professional for WooCommerce](https://wordpress.org/plugins/woocommerce-currency-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-currency-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-currency-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-currency-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-currency-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-currency-switcher/reviews/)

## Tags

 * [currency](https://wordpress.org/support/topic-tag/currency/)

 * 1 reply
 * 2 participants
 * Last reply from: [RealMag777](https://wordpress.org/support/users/realmag777/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/currency-based-website-redirection-possible/#post-10301780)
 * Status: resolved