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

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

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.

 

Thank you for your answer. I wrote everything in the popup Private data

Hello Taras

Thank you for cooperation, this page link is sent to LABS task

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

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 :(

Hello

OK! I will write to you when we investigate this in more detail.

Hello, Ok. Thank you!

Hello

I added my  IP  to"Private data"

Hello. I added your ip address. Now you can connect via ftp

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

Hello

Now everything works fine. You helped me a lot. Thank you :)

Welcome;)