PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

WOOCS prices by user role only works with one currency

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi guys, how are you doing?

I recently bought WOOCS and now I have some questions about some issues, when I set a price per user role it sets that price for each currency in my store, I mean, it doesn't make the exchange for all the other currencies, also, when I add a product to cart it changes automatically the currency to the welcome currency and the user can't make the checkout in the user's selected currency. Also, I'm using invented currencies internal on my site as a marketing strategy, but when I force the checkout in stripe it says the code is invalid, I thought the plugin makes the conversion before the user makes the payment with a credit card but it doesn't, is there a way to do that?

Hello

Please paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png and  wp-admin access - https://share.pluginus.net/image/i20210618130637.png I will check  it

Hi, I already solved, was a caché problem, sorry the delay I was too busy, I would like to know if there's any way to hide especific currencies in the selector per user role?

Hello

In this case, you need code customization. Read  this  please - https://currency-switcher.com/woocs_currency_manipulation_before_show

Hi Mr. Pablo.

So, in this case could be for example:

add_filter('woocs_currency_manipulation_before_show', function($currencies) {
$user_info = true;

if ($user_info->roles[0]=="administrator") {
unset($currencies['USD']);
unset($currencies['EUR']);
}

return $currencies;
});

 

Please let me know if that's ok, or should I make it in another way.

Thanks in advance.

Hello

Yes! But you need to get the current user:

$user_info = wp_get_current_user();

and check if the user is logged in:

if ($user_info && $user_info->roles[0]=="administrator") {

Hi Pablo, sorry for the delay, I'm too busy at the office, thanks man, today I finally could get some time to work on the website, I did it as you said, it's working pretty well, very thanks.

Hello

Great!  Welcome;)