Title: Role Based Currency
Last modified: September 23, 2022

---

# Role Based Currency

 *  Resolved [shoptak](https://wordpress.org/support/users/shoptak/)
 * (@shoptak)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/role-based-currency/)
 * Hello Team,
 * I’m wondering if it’s possible to have different currency based on user role.
 * For example I have 2 user roles:
 * Role A
    Role B
 * I want all users in Role A to see only $ as a site currency while Role B users
   will see a foreign currency I define. despite Geo Location of users in both roles.
 * Note that I don’t want to use switcher between currencies for both roles.
 * Thank you
    -  This topic was modified 3 years, 10 months ago by [shoptak](https://wordpress.org/support/users/shoptak/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/role-based-currency/#post-16043830)
 * Hello
 * Unfortunately, the plugin does not have such a feature, you need code customization
   
   An example
 *     ```
       add_filter('wp_head',function(){    
           if(class_exists('WOOCS')  && $Current_User_Role == 'Your user role name'){
               global $WOOCS;
               $WOOCS->set_currency('USD');
           }
       });
       ```
   
 *  Thread Starter [shoptak](https://wordpress.org/support/users/shoptak/)
 * (@shoptak)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/role-based-currency/#post-16055663)
 * Thank you for your reply.
 * Unfortunately, the above code had a syntax error for more details please check
   the below screenshot.
 * [https://prnt.sc/9Nc8BTOwNUAj](https://prnt.sc/9Nc8BTOwNUAj)
 * Thank you
 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/role-based-currency/#post-16057811)
 * Hello
 * Of course! This is just an example!
 * You need to get the user’s current role and compare it to your list of roles –
   [https://share.stackovergo.com/image/i20220930100127.png](https://share.stackovergo.com/image/i20220930100127.png)
 * If you have no experience in programming, you should ask a developer friend to
   do this customization

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Role Based Currency’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/role-based-currency/#post-16057811)
 * Status: resolved