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] Support for 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.

Hello,

I'm running Role Based Price For WooCommerce on my site, and am running into issues with Sales and wholesale pricing.

The site currency default is Australian Dollars, that appears fine. When I change to USD or EURO we get some issues.

If a product is on sale, or priced differently for wholesale customers the price converts twice - AUD to USD, then USD again. e.g. displays at $68AUD should be $41.82USD but displays at $34.25 USD (converting the rate of 0.70961372331235 twice)

This only happens when the Role Based Price for WooCommerce is Active.  Wondering if a fix can be put in place.

thank you

Hello

Please add  FTP  access  - I will add this plugin to the adaptation queue

Added - thank you!!

Hello

I added the plugin to the adaptation queue.

Hello

I can not log in to your site - https://c2n.me/466qlqH.png

Apologies Pablo, I've updated the private data with a login

Hello

Ok!  Thank  you

Hello

The  same  issue!

I need  access  to  admin panel.

Hi Pablo,

the admin details are at the end of the private document and have admin level access - what else do you require

thanks

Hello

Sorry!  Now I see it

Hello

I did  test - https://c2n.me/46pTvX3.mp4 - I do not see this  error

Thanks for the Screen video Pablo.

The issue occurs when the item is on Sale.

Here is a product that is experiencing the issue:

http://jimmycricket.ellins.net/product/pre-order-pillowcase-double-set-oh-cloud-friends/?bypass=&currency=USD

The price is converting From AUD to USD then to USD again when it is on sale

thanks,

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

Thank you so much Pablo, that has fixed the issue.

Hello

Welcome;)