This thread is resolved. Here is a description of the problem and solution.
Problem:
When placing an order from a bookable product, the client receives the order confirmation in all languages instead of just the language in which the order was placed. This happens even after translating the emails.
Solution:
This issue might be related to the 'Check this box if the booking requires admin approval/confirmation. Payment will not be taken during checkout' option in WooCommerce Bookings. Here are the steps we recommend:
1. Ensure that WordPress, all plugins, and the theme are updated to the latest versions.
2. Make a backup of your website.
3. Navigate to the
.../wp-content/plugins/woocommerce-multilingual/compatibility/WcBookings/Emails.php
file and locate line# 63.
4. Directly below it, insert the following code:
add_action( 'woocommerce_booking_pending-confirmation', $this->handle([\WC_Email_Booking_Pending_Confirmation::class]), self::PRIORITY_BEFORE_EMAIL_TRIGGER );
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
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 4 replies, has 3 voices.
Last updated by 1 year, 4 months ago.
Assisted by: Waqar Ali.