This thread is resolved. Here is a description of the problem and solution.
Problem:
An issue with the WooCommerce Bookings plugin - Currency issue - price is not changing according to the country on the checkout page.
Solution:
Our compatibility developer has shared a workaround for this issue.
1. Take a backup of your site in case something goes wrong.
2. Edit the following file with a code editor.
/wp-content/plugins/woocommerce-bookings/includes/class-wc-booking-cart-manager.php
3. Find this line (should be line 21).
add_filter( 'woocommerce_get_cart_item_from_session', array( $this, 'get_cart_item_from_session' ), 10, 3 );
4. Comment it out like this:
// add_filter( 'woocommerce_get_cart_item_from_session', array( $this, 'get_cart_item_from_session' ), 10, 3 );
5. Save the changes in the file.
Now, the problem should be solved, and while on the checkout page, when you switch to a country other than Sweden, the currency will change.
Please be aware that the suggested workaround might have other effects we are unaware of.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 21 replies, has 2 voices.
Last updated by 1 year, 10 months ago.
Assisted by: Itamar.