Woocommerce Appointments
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 Taras on September 7, 2021, 18:05Hello, I use the plugin I wrote in the title link: WooCommerce Appointments - the #1 WordPress Appointment Plugin (bookingwp.com).
And I have a problem if I add additional fields with the price then the currency icon changes but the currency itself is not converted. In the cart, everything is fine, as on the payment page. But on the product page where I added a few fields such as the duration of the ride, and the price, then this price is not converted into dollars. In the screenshot, the price is in UAH, and the currency icon is a dollar. Help me pls. Thanks
Screenshot: http://joxi.ru/l2ZqvE1hR5Xg4m
Screenshot Checkout page: http://joxi.ru/GrqaMxzTRjDoqrTranslates a page, I have Translatepress. I used this code to connect, up to UAH: http://joxi.ru/BA0YdNMtvaYyYr
Hello, I use the plugin I wrote in the title link: WooCommerce Appointments - the #1 WordPress Appointment Plugin (bookingwp.com).
And I have a problem if I add additional fields with the price then the currency icon changes but the currency itself is not converted. In the cart, everything is fine, as on the payment page. But on the product page where I added a few fields such as the duration of the ride, and the price, then this price is not converted into dollars. In the screenshot, the price is in UAH, and the currency icon is a dollar. Help me pls. Thanks
Screenshot: http://joxi.ru/l2ZqvE1hR5Xg4m
Screenshot Checkout page: http://joxi.ru/GrqaMxzTRjDoqr
Translates a page, I have Translatepress. I used this code to connect, up to UAH: http://joxi.ru/BA0YdNMtvaYyYr
Quote from Pablo Borysenco on September 8, 2021, 13:29Hello Taras
Read this please: https://currency-switcher.com/woocs-labs/
As booking plugin is not free please provide in Private area (blue button on the right) link to download zip of that plugin or better FTP + wp-admin access to the site you dev.
Hello Taras
Read this please: https://currency-switcher.com/woocs-labs/
As booking plugin is not free please provide in Private area (blue button on the right) link to download zip of that plugin or better FTP + wp-admin access to the site you dev.
Quote from Taras on September 8, 2021, 15:44Thank you for your answer. I wrote everything in the popup Private data
Quote from Pablo Borysenco on September 9, 2021, 11:46Hello Taras
Thank you for cooperation, this page link is sent to LABS task
Hello Taras
Thank you for cooperation, this page link is sent to LABS task
Quote from Pablo Borysenco on September 13, 2021, 16:13Hello
In file - \wp-content\plugins\woocommerce-appointments\includes\class-wc-appointment-cart-manager.php - I added code - https://c2n.me/4bsBqqk.png
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->current_currency != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
if ($WOOCS->is_multiple_allowed) {
$rate = $currencies[$WOOCS->current_currency]['rate'];
$cart_item_meta['appointment']['_cost'] = $cart_item_meta['appointment']['_cost'] / $rate;
}
}
}and do a test
Hello
In file - \wp-content\plugins\woocommerce-appointments\includes\class-wc-appointment-cart-manager.php - I added code - https://c2n.me/4bsBqqk.png
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->current_currency != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
if ($WOOCS->is_multiple_allowed) {
$rate = $currencies[$WOOCS->current_currency]['rate'];
$cart_item_meta['appointment']['_cost'] = $cart_item_meta['appointment']['_cost'] / $rate;
}
}
}
and do a test
Quote from Taras on September 13, 2021, 16:39Thanks for the help. This is not a problem on the cart page problem on the single product page
Screenshot: http://joxi.ru/RmzyXNeSjxxkKr
As you can see there are 900 prices, etc. It's not in dollars. Now it shows in the screenshot, in UAH with a dollar icon. It is wrong.
Unfortunately, your answer did not help me :(
Thanks for the help. This is not a problem on the cart page problem on the single product page
Screenshot: http://joxi.ru/RmzyXNeSjxxkKr
As you can see there are 900 prices, etc. It's not in dollars. Now it shows in the screenshot, in UAH with a dollar icon. It is wrong.
Unfortunately, your answer did not help me :(
Quote from Pablo Borysenco on September 14, 2021, 11:12Hello
OK! I will write to you when we investigate this in more detail.
Hello
OK! I will write to you when we investigate this in more detail.
Quote from Taras on September 14, 2021, 11:14Hello, Ok. Thank you!
Hello, Ok. Thank you!
Quote from Pablo Borysenco on September 16, 2021, 13:28Hello
I added my IP to "Private data"
Hello
I added my IP to"Private data"
Quote from Taras on September 16, 2021, 13:32Hello. I added your ip address. Now you can connect via ftp
Hello. I added your ip address. Now you can connect via ftp
Quote from Pablo Borysenco on September 16, 2021, 16:49Hello
In file - \wp-content\plugins\woocommerce-appointments\includes\class-wc-appointment-cart-manager.php - I added code - https://c2n.me/4bsBqqk.png
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->current_currency != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
if ($WOOCS->is_multiple_allowed) {
$rate = $currencies[$WOOCS->current_currency]['rate'];
$cart_item_meta['appointment']['_cost'] = $cart_item_meta['appointment']['_cost'] / $rate;
}
}
}
in file - wp-content/plugins/woocommerce-appointments/includes/integrations/woocommerce-product-addons/includes/class-wc-product-addons-cart.php add code - https://share.pluginus.net/image/i20210916174809.png
if (class_exists('WOOCS')) {
global $WOOCS;
$addon['price'] = $WOOCS->woocs_exchange_value(floatval($addon['price']));
}
And in functions.php
add_filter( 'woocommerce_product_addons_option_price_raw', function($option_price, $option){
if (class_exists('WOOCS')) {
global $WOOCS;
$option_price = $WOOCS->woocs_exchange_value(floatval($option_price));
}return $option_price;
},10,2 );
Please do a test
Hello
In file - \wp-content\plugins\woocommerce-appointments\includes\class-wc-appointment-cart-manager.php - I added code - https://c2n.me/4bsBqqk.png
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->current_currency != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
if ($WOOCS->is_multiple_allowed) {
$rate = $currencies[$WOOCS->current_currency]['rate'];
$cart_item_meta['appointment']['_cost'] = $cart_item_meta['appointment']['_cost'] / $rate;
}
}
}
in file - wp-content/plugins/woocommerce-appointments/includes/integrations/woocommerce-product-addons/includes/class-wc-product-addons-cart.php add code - https://share.pluginus.net/image/i20210916174809.png
if (class_exists('WOOCS')) {
global $WOOCS;
$addon['price'] = $WOOCS->woocs_exchange_value(floatval($addon['price']));
}
And in functions.php
add_filter( 'woocommerce_product_addons_option_price_raw', function($option_price, $option){
if (class_exists('WOOCS')) {
global $WOOCS;
$option_price = $WOOCS->woocs_exchange_value(floatval($option_price));
}
return $option_price;
},10,2 );
Please do a test
Quote from Taras on September 16, 2021, 16:58Hello
Now everything works fine. You helped me a lot. Thank you :)
Hello
Now everything works fine. You helped me a lot. Thank you :)
Quote from Pablo Borysenco on September 17, 2021, 11:33Welcome;)
Welcome;)