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 LABS] Compatibility with Role based Price for Woocommerce

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.
12

Hi,

I would like to request compatibility with this plugin : Role Base Price for Woocommerce.
Someone has requested before but I see that the thread is stagnant.

Prices are not showing correctly after installing the plugin.

Regards
Manhua

 

Hello Manhua

Please  add FTP access

I will add this plugin to the adaptation queue

Hi Pablo,

Added!

Thank you.

Regards
Manhua

Hello Manhua

Ok! I added the plugin to the adaptation queue

Please  check  your  FTP access

Hi Pablo,

I have checked and it is correct..please note the password has capital letter.

Thank you!

Hello

I am sure that the password was entered correctly.

Perhaps you have an IP limit

Hi Pablo,

Did you use port 22?

Regards
Manhua

Hello

Now is Ok!  You did not indicate that this is SFTP

Hello,

So sorry for inconvenience caused, i don't know the difference (now I know)

Hello

In file - \wp-content\plugins\woocommerce-role-based-price\includes\class-product-pricing.php  change  code - https://c2n.me/46wPhw0.png

if( $is_hook == TRUE OR (class_exists('WOOCS') AND defined( 'DOING_AJAX' )) ) {

 

Do  test  please!

 

 

Hi Pablo,

I see that you already changed.
But the issue is still the same. When I switched to CAD the price is not converting...

For this product,I did not set role based price, but after selecting variation in CAD price is wrong

https://snailylove.com/product/somebymi-snail-truecica-miracle-repair-serum/

https://ibb.co/T4rMgXD

For this I set price for admin USD $24.95, but in CAD it is also converting strangely...

https://snailylove.com/product/somebymi-snail-truecica-miracle-repair-cream/?currency=CAD

Hello

Ok!  I will  check  it

Hello

Try  in  fonctions.php  add  code:

add_filter("wc_rbp_product_get_price", function($wcrbp_price, $product, $rbp_this){

if (class_exists('WOOCS')) {

$sale_price = $product->get_sale_price();

global $WOOCS;
if ($WOOCS->is_multiple_allowed AND ( $sale_price !== '' && $sale_price > 0 )) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$wcrbp_price = $wcrbp_price / $rate;
}
}
}
return $wcrbp_price;
},99,3);

 

Plese  do test

Hi Pablo,

I added the code, but it is still the same.

Regards
Manhua

Hi Pablo,

Sorry, my bad. It is working except the price range on top is not converting for variation products.

Would you please take a look?

https://snailylove.com/product/somebymi-snail-truecica-miracle-repair-cream/

Hello

Yes. I will  check  it

Hello

in  file - public_html\wp-content\plugins\woocommerce-role-based-price\includes\class-product-pricing.php add  code - https://c2n.me/46VPcTg.png

if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$prices['min_price'] = $WOOCS->woocs_exchange_value(floatval($prices['min_price']));
$prices['max_price'] = $WOOCS->woocs_exchange_value(floatval($prices['max_price']));
$prices['min_reg_price'] = $WOOCS->woocs_exchange_value(floatval($prices['min_reg_price']));
$prices['max_reg_price'] = $WOOCS->woocs_exchange_value(floatval($prices['max_reg_price']));
}
}

 

And  do test.

unfortunately this does not work with this option - https://c2n.me/46VSLux.png

Hi Pablo,

Thank you, it works perfect now.

What will happen if I turn off the option?

Regards
Manhua

12