[ FOX LABS ] WooCommerce RnB Plugin Price Does Not Change Totally
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 Chris on June 20, 2023, 12:19Hi support,
Just a request for adaptation script, if possible, for a plugin named WooCommerce Rental and Booking Plugin from:
https://codecanyon.net/item/rnb-woocommerce-rental-booking-system/14835145
The price of the products published by using this plugin does not change totally in the front end, specifically the shop page and the single product page. The currency symbol was changed, but the amount is not calculated according to the exchange rate, meaning for example, $100 is showing as ¥100 instead of ¥717.44 in the front end.
Thanks.
Hi support,
Just a request for adaptation script, if possible, for a plugin named WooCommerce Rental and Booking Plugin from:
https://codecanyon.net/item/rnb-woocommerce-rental-booking-system/14835145
The price of the products published by using this plugin does not change totally in the front end, specifically the shop page and the single product page. The currency symbol was changed, but the amount is not calculated according to the exchange rate, meaning for example, $100 is showing as ¥100 instead of ¥717.44 in the front end.
Thanks.
Quote from Pablo Borysenco on June 21, 2023, 11:04Hello
Please add wp-admin+FTP access to your test site - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134615.png
And I will add it to the adaptation queue
Hello
Please add wp-admin+FTP access to your test site - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134615.png
And I will add it to the adaptation queue
Quote from Chris on June 22, 2023, 07:08Hi, I've added. Please check. Thanks
Hi, I've added. Please check. Thanks
Quote from Pablo Borysenco on June 22, 2023, 09:44Hello
Ok! Great!
I will write to you as soon as I get the result
Hello
Ok! Great!
I will write to you as soon as I get the result
Quote from Chris on June 22, 2023, 11:30Hi,
Ok!
Thank you & All the best!
Hi,
Ok!
Thank you & All the best!
Quote from Pablo Borysenco on July 14, 2023, 17:38Hello
I added in file - wp-content\plugins\woocommerce-rental-and-booking\includes\rnb-global-functions.php
code - https://share.pluginus.net/image/i20230714182037.png
if (class_exists('WOOCS') AND $daily_pricing > 0) {
global $WOOCS;
$daily_pricing = $WOOCS->woocs_exchange_value($daily_pricing);
}code - https://share.pluginus.net/image/i20230714182123.png
if (class_exists('WOOCS') AND $monthly_pricing > 0) {global $WOOCS;$monthly_pricing = $WOOCS->woocs_exchange_value($monthly_pricing);}code - https://share.pluginus.net/image/i20230714182227.pngif (class_exists('WOOCS') AND $general_price > 0) {global $WOOCS;$general_price = $WOOCS->woocs_exchange_value($general_price);}code - https://share.pluginus.net/image/i20230714182400.pngif (class_exists('WOOCS') AND $hourly_price > 0) {global $WOOCS;$hourly_price = $WOOCS->woocs_exchange_value($hourly_price);}code - https://share.pluginus.net/image/i20230714182458.pngif (class_exists('WOOCS') AND $hourly_price > 0) {
global $WOOCS;
$price_discount = $WOOCS->woocs_exchange_value($price_discount);
}In file - wp-content\plugins\woocommerce-rental-and-booking\includes\class-rnb-product-cart.phpcode - https://share.pluginus.net/image/i20230714182716.pngif (isset($cart_item_meta['rental_data']['rental_days_and_costs']['cost'])) {if (class_exists('WOOCS') AND $cart_item_meta['rental_data']['rental_days_and_costs']['cost']) {global $WOOCS;if ($WOOCS->is_multiple_allowed) {$currrent = $WOOCS->current_currency;if ($currrent != $WOOCS->default_currency) {$currencies = $WOOCS->get_currencies();$rate = $currencies[$currrent]['rate'];$cart_item_meta['rental_data']['rental_days_and_costs']['cost'] = $cart_item_meta['rental_data']['rental_days_and_costs']['cost'] / $rate;$cart_item_meta['rental_data']['rental_days_and_costs']['line_total'] = $cart_item_meta['rental_data']['rental_days_and_costs']['line_total'] / $rate;$cart_item_meta['rental_data']['rental_days_and_costs']['price_breakdown']['duration_total'] = $cart_item_meta['rental_data']['rental_days_and_costs']['price_breakdown']['duration_total'] / $rate;$cart_item_meta['rental_data']['rental_days_and_costs']['price_breakdown']['total'] = $cart_item_meta['rental_data']['rental_days_and_costs']['price_breakdown']['total'] / $rate;$cart_item_meta['rental_data']['rental_days_and_costs']['price_breakdown']['deposit_free_total'] = $cart_item_meta['rental_data']['rental_days_and_costs']['price_breakdown']['deposit_free_total'] / $rate;$cart_item_meta['rental_data']['rental_days_and_costs']['price_breakdown']['duration_breakdown']['daily'] = $cart_item_meta['rental_data']['rental_days_and_costs']['price_breakdown']['duration_breakdown']['daily'] / $rate;}}}}code - https://share.pluginus.net/image/i20230714182841.pngif (class_exists('WOOCS') AND $duration_total > 0) {
global $WOOCS;
$duration_total = $WOOCS->woocs_exchange_value($duration_total);
}code - https://share.pluginus.net/image/i20230714182947.pngif (class_exists('WOOCS') AND $cost > 0) {
global $WOOCS;
$cost = $WOOCS->woocs_exchange_value($cost);
}code - https://share.pluginus.net/image/i20230714183049.pngif (class_exists('WOOCS') AND $cost > 0) {
global $WOOCS;
$cost = $WOOCS->woocs_exchange_value($cost);
}code - https://share.pluginus.net/image/i20230714183155.pngif (class_exists('WOOCS') AND $rental_data['location_cost'] > 0) {
global $WOOCS;
$rental_data['location_cost'] = $WOOCS->woocs_exchange_value($rental_data['location_cost']);
}code - https://share.pluginus.net/image/i20230714183300.pngif (class_exists('WOOCS') AND $category['cost'] > 0) {
global $WOOCS;
$category['cost'] = $WOOCS->woocs_exchange_value($category['cost']);
}code - https://share.pluginus.net/image/i20230714183402.pngif (class_exists('WOOCS') AND $resource['cost'] > 0) {global $WOOCS;$resource['cost'] = $WOOCS->woocs_exchange_value($resource['cost']);}code - https://share.pluginus.net/image/i20230714183514.pngif (class_exists('WOOCS') AND $deposit['cost'] > 0) {
global $WOOCS;
$deposit['cost'] = $WOOCS->woocs_exchange_value($deposit['cost']);
}code - https://share.pluginus.net/image/i20230714183612.pngif (class_exists('WOOCS') AND $adult['cost'] > 0) {
global $WOOCS;
$adult['cost'] = $WOOCS->woocs_exchange_value($adult['cost']);
}code - https://share.pluginus.net/image/i20230714183716.pngif (class_exists('WOOCS') AND $child['cost'] > 0) {
global $WOOCS;
$child['cost'] = $WOOCS->woocs_exchange_value($child['cost']);
}code - https://share.pluginus.net/image/i20230714183809.pngif (class_exists('WOOCS') AND $rental_data['rental_days_and_costs']['due_payment'] > 0) {global $WOOCS;$rental_data['rental_days_and_costs']['due_payment'] = $WOOCS->woocs_exchange_value($rental_data['rental_days_and_costs']['due_payment']);}
Hello
I added in file - wp-content\plugins\woocommerce-rental-and-booking\includes\rnb-global-functions.php
code - https://share.pluginus.net/image/i20230714182037.png
if (class_exists('WOOCS') AND $daily_pricing > 0) {
global $WOOCS;
$daily_pricing = $WOOCS->woocs_exchange_value($daily_pricing);
}
code - https://share.pluginus.net/image/i20230714182123.png
global $WOOCS;
$price_discount = $WOOCS->woocs_exchange_value($price_discount);
}
global $WOOCS;
$duration_total = $WOOCS->woocs_exchange_value($duration_total);
}
global $WOOCS;
$cost = $WOOCS->woocs_exchange_value($cost);
}
global $WOOCS;
$cost = $WOOCS->woocs_exchange_value($cost);
}
global $WOOCS;
$rental_data['location_cost'] = $WOOCS->woocs_exchange_value($rental_data['location_cost']);
}
global $WOOCS;
$category['cost'] = $WOOCS->woocs_exchange_value($category['cost']);
}
global $WOOCS;
$deposit['cost'] = $WOOCS->woocs_exchange_value($deposit['cost']);
}
global $WOOCS;
$adult['cost'] = $WOOCS->woocs_exchange_value($adult['cost']);
}
global $WOOCS;
$child['cost'] = $WOOCS->woocs_exchange_value($child['cost']);
}
Quote from Chris on July 15, 2023, 18:40Hi, thanks for the effort and detailed explanation. I've tried & checked on it.
The price calculation in cart & checkout & order details etc. are actually working well before the adaptation (Eg. RM 400 = ¥ 633.21 is calculated correctly in mini cart, cart & checkout etc), the only incompatibility is that the pricing info shown on the frontend at single product page, category archive page and shop page are not the exchanged price. (Eg. RM 400 = ¥633.21, but instead of ¥ 633.21, its showing ¥ 400). Attached are the screenshots for better understanding:
- In single product page, https://prnt.sc/NyDNuUcrX0Wx
- In shop / category archive page, https://prnt.sc/iIQbvvlvjOsV
After the adaptation, the single product page, shop and category archive page is still showing the unexchanged currency amount with exchanged currency symbol (Eg. RM 400 = ¥633.21, but instead of ¥ 633.21, its still showing ¥ 400). Also, the price calculation has some issues in which if the user changed the default currency to another currency and then exploring the page, added a product and go to cart/checkout, the amount of the exchanged currency is the same as the amount of the default currency. The screenshots below showing two same products added into cart but with different price, https://prnt.sc/Yk-9y5thT2-D
Hi, thanks for the effort and detailed explanation. I've tried & checked on it.
The price calculation in cart & checkout & order details etc. are actually working well before the adaptation (Eg. RM 400 = ¥ 633.21 is calculated correctly in mini cart, cart & checkout etc), the only incompatibility is that the pricing info shown on the frontend at single product page, category archive page and shop page are not the exchanged price. (Eg. RM 400 = ¥633.21, but instead of ¥ 633.21, its showing ¥ 400). Attached are the screenshots for better understanding:
- In single product page, https://prnt.sc/NyDNuUcrX0Wx
- In shop / category archive page, https://prnt.sc/iIQbvvlvjOsV
After the adaptation, the single product page, shop and category archive page is still showing the unexchanged currency amount with exchanged currency symbol (Eg. RM 400 = ¥633.21, but instead of ¥ 633.21, its still showing ¥ 400). Also, the price calculation has some issues in which if the user changed the default currency to another currency and then exploring the page, added a product and go to cart/checkout, the amount of the exchanged currency is the same as the amount of the default currency. The screenshots below showing two same products added into cart but with different price, https://prnt.sc/Yk-9y5thT2-D
Quote from Pablo Borysenco on July 17, 2023, 09:53Hello
Ok! I will check it
Hello
Ok! I will check it
Quote from Pablo Borysenco on July 27, 2023, 16:58Hello
In file - \wp-content\plugins\woocommerce-rental-and-booking\includes\rnb-global-functions.php - I added - https://share.pluginus.net/image/i20230727175352.png
foreach($days_range as $key => $range) {if (class_exists('WOOCS') AND isset($days_range[$key]['range_cost']) AND $days_range[$key]['range_cost'] > 0) {global $WOOCS;$days_range[$key]['range_cost'] = $WOOCS->woocs_exchange_value($days_range[$key]['range_cost']);}}
Hello
In file - \wp-content\plugins\woocommerce-rental-and-booking\includes\rnb-global-functions.php - I added - https://share.pluginus.net/image/i20230727175352.png
Quote from Chris on August 13, 2023, 17:26Hi, thank you so much! It works now !
I added a few codes from the list you given according to my needs and I'm really appreciate for your help!
But do you know which line of codes caused this issue ( https://prnt.sc/Yk-9y5thT2-D) as shared previously in my last reply? Just want to make sure that I didn't accidentally added that particular codes that caused this. Or is it just because that the latest code shared by your latest reply wasn't added previously so this issue is happening as the price was the unexchanged price? This is because I seems like cannot reproduce this issue since adding the latest code shared by you.
Hi, thank you so much! It works now !
I added a few codes from the list you given according to my needs and I'm really appreciate for your help!
But do you know which line of codes caused this issue ( https://prnt.sc/Yk-9y5thT2-D) as shared previously in my last reply? Just want to make sure that I didn't accidentally added that particular codes that caused this. Or is it just because that the latest code shared by your latest reply wasn't added previously so this issue is happening as the price was the unexchanged price? This is because I seems like cannot reproduce this issue since adding the latest code shared by you.
Quote from Chris on August 13, 2023, 17:38The last part that haven't got changed is at the thank you page or any output that use wc-meta-item such as myaccount order details or email as shown in the screenshot below.
Thank you page = https://prnt.sc/XxGv506QtQgP
Order detail page = https://prnt.sc/yVam9cAOceZY
Email = https://prnt.sc/7FbffZzo5ODW
Maybe its because the price is under wc-meta-item at thank you page instead of variation-RentalBookingCost as both cart and checkout that use variation-RentalBookingCost is working well.
I've added the link to the thank you page shown in this screenshot at private data just in case if you need it.
The last part that haven't got changed is at the thank you page or any output that use wc-meta-item such as myaccount order details or email as shown in the screenshot below.
Thank you page = https://prnt.sc/XxGv506QtQgP
Order detail page = https://prnt.sc/yVam9cAOceZY
Email = https://prnt.sc/7FbffZzo5ODW
Maybe its because the price is under wc-meta-item at thank you page instead of variation-RentalBookingCost as both cart and checkout that use variation-RentalBookingCost is working well.
I've added the link to the thank you page shown in this screenshot at private data just in case if you need it.
Quote from Pablo Borysenco on August 14, 2023, 12:20Hello
Ok! I Will check it
Hello
Ok! I Will check it
Quote from Pablo Borysenco on August 18, 2023, 17:27Hello
In file - \wp-content\plugins\woocommerce-rental-and-booking\includes\class-rnb-product-cart.php
add code - https://share.pluginus.net/image/i20230818181615.png
if (class_exists('WOOCS') AND $duration_total > 0) {global $WOOCS;$duration_total = $WOOCS->woocs_exchange_value($duration_total);}add code - https://share.pluginus.net/image/i20230818181600.pngif (class_exists('WOOCS') AND $cost > 0) {global $WOOCS;$cost = $WOOCS->woocs_exchange_value($cost);}add code - https://share.pluginus.net/image/i20230818181727.pngif (class_exists('WOOCS') AND $cost > 0) {global $WOOCS;$cost = $WOOCS->woocs_exchange_value($cost);}add code - https://share.pluginus.net/image/i20230818181841.pngif (class_exists('WOOCS') AND $rental_data['location_cost'] > 0) {global $WOOCS;$rental_data['location_cost'] = $WOOCS->woocs_exchange_value($rental_data['location_cost']);}add code - https://share.pluginus.net/image/i20230818182007.pngif (class_exists('WOOCS') AND $category['cost'] > 0) {global $WOOCS;$category['cost'] = $WOOCS->woocs_exchange_value($category['cost']);}add code - https://share.pluginus.net/image/i20230818182109.pngif (class_exists('WOOCS') AND $resource['cost'] > 0) {
global $WOOCS;
$resource['cost'] = $WOOCS->woocs_exchange_value($resource['cost']);
}add code - https://share.pluginus.net/image/i20230818182233.pngif (class_exists('WOOCS') AND $deposit['cost'] > 0) {
global $WOOCS;
$deposit['cost'] = $WOOCS->woocs_exchange_value($deposit['cost']);
}add cost - https://share.pluginus.net/image/i20230818182348.pngif (class_exists('WOOCS') AND $adult['cost'] > 0) {
global $WOOCS;
$adult['cost'] = $WOOCS->woocs_exchange_value($adult['cost']);
}add cost - https://share.pluginus.net/image/i20230818182458.pngif (class_exists('WOOCS') AND $child['cost'] > 0) {global $WOOCS;$child['cost'] = $WOOCS->woocs_exchange_value($child['cost']);}add code - https://share.pluginus.net/image/i20230818182556.pngif (class_exists('WOOCS') AND $rental_data['rental_days_and_costs']['due_payment'] > 0) {
global $WOOCS;
$rental_data['rental_days_and_costs']['due_payment'] = $WOOCS->woocs_exchange_value($rental_data['rental_days_and_costs']['due_payment']);
}
Hello
In file - \wp-content\plugins\woocommerce-rental-and-booking\includes\class-rnb-product-cart.php
add code - https://share.pluginus.net/image/i20230818181615.png
global $WOOCS;
$resource['cost'] = $WOOCS->woocs_exchange_value($resource['cost']);
}
global $WOOCS;
$deposit['cost'] = $WOOCS->woocs_exchange_value($deposit['cost']);
}
global $WOOCS;
$adult['cost'] = $WOOCS->woocs_exchange_value($adult['cost']);
}
global $WOOCS;
$rental_data['rental_days_and_costs']['due_payment'] = $WOOCS->woocs_exchange_value($rental_data['rental_days_and_costs']['due_payment']);
}
Quote from Chris on October 22, 2023, 18:51Hi, thanks for the adaptation. I guess its compatible now!
Hi, thanks for the adaptation. I guess its compatible now!
Quote from Pablo Borysenco on October 23, 2023, 09:23hello
Welcome;)
hello
Welcome;)