[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 pleaseIf 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.
Quote from Man on March 17, 2020, 11:50Hi,
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
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
Quote from Pablo Borysenco on March 17, 2020, 12:27Hello Manhua
Please add FTP access
I will add this plugin to the adaptation queue
Hello Manhua
Please add FTP access
I will add this plugin to the adaptation queue
Quote from Man on March 17, 2020, 12:30Hi Pablo,
Added!
Thank you.
Regards
Manhua
Hi Pablo,
Added!
Thank you.
Regards
Manhua
Quote from Pablo Borysenco on March 18, 2020, 11:46Hello Manhua
Ok! I added the plugin to the adaptation queue
Hello Manhua
Ok! I added the plugin to the adaptation queue
Quote from Pablo Borysenco on March 19, 2020, 18:00Please check your FTP access
Please check your FTP access
Quote from Man on March 19, 2020, 18:10Hi Pablo,
I have checked and it is correct..please note the password has capital letter.
Thank you!
Hi Pablo,
I have checked and it is correct..please note the password has capital letter.
Thank you!
Quote from Pablo Borysenco on March 19, 2020, 18:29Hello
I am sure that the password was entered correctly.
Perhaps you have an IP limit
Hello
I am sure that the password was entered correctly.
Perhaps you have an IP limit
Quote from Man on March 19, 2020, 18:31Hi Pablo,
Did you use port 22?
Regards
Manhua
Hi Pablo,
Did you use port 22?
Regards
Manhua
Quote from Pablo Borysenco on March 19, 2020, 18:33Hello
Now is Ok! You did not indicate that this is SFTP
Hello
Now is Ok! You did not indicate that this is SFTP
Quote from Man on March 19, 2020, 18:36Hello,
So sorry for inconvenience caused, i don't know the difference (now I know)
Hello,
So sorry for inconvenience caused, i don't know the difference (now I know)
Quote from Pablo Borysenco on March 19, 2020, 19:24Hello
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!
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!
Quote from Man on March 20, 2020, 07:39Hi Pablo,
I see that you already changed.
But the issue is still the same. When I switched to CAD the price is not converting...
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...
Quote from Man on March 20, 2020, 07:46For 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/
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
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/
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
Quote from Pablo Borysenco on March 20, 2020, 13:28Hello
Ok! I will check it
Hello
Ok! I will check it
Quote from Pablo Borysenco on April 2, 2020, 17:11Hello
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
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
Quote from Man on April 2, 2020, 17:54Hi Pablo,
I added the code, but it is still the same.
Regards
Manhua
Hi Pablo,
I added the code, but it is still the same.
Regards
Manhua
Quote from Man on April 8, 2020, 11:01Hi 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/
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/
Quote from Pablo Borysenco on April 8, 2020, 11:55Hello
Yes. I will check it
Hello
Yes. I will check it
Quote from Pablo Borysenco on April 9, 2020, 18:14Hello
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
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
Quote from Man on April 9, 2020, 18:33Hi Pablo,
Thank you, it works perfect now.
What will happen if I turn off the option?
Regards
Manhua
Hi Pablo,
Thank you, it works perfect now.
What will happen if I turn off the option?
Regards
Manhua