Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to translate an email template using WPML, but the plugin used for the email templates is not compatible with WPML.
Solution:
We recommend contacting the plugin author to encourage them to join our Go Global program. Meanwhile, you can try the following workaround:

1. Open the file at

.../wp-content/plugins/tour-booking-manager/templates/ticket/book_now.php

.
2. Locate line 6.
3. Replace the existing code:

$tour_id=$tour_id??TTBM_Function::post_id_multi_language($ttbm_post_id);

with:

$tour_id=$tour_id??TTBM_Function::post_id_multi_language($ttbm_post_id);
$tour_id = apply_filters( 'wpml_object_id', $tour_id, 'product' );

If this solution does not resolve your issue or seems outdated, 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 you still need assistance, please open a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Shekhar Bhandari 6 months, 2 weeks ago.

Assisted by: Shekhar Bhandari.

Author Posts
August 13, 2024 at 6:07 am #16064439

leonidasI

Background of the issue:
I am trying to translate an email template for my site hidden link.

Symptoms:
Need solution of my issue.

Questions:
How can I translate an email template using WPML?

August 13, 2024 at 10:32 am #16065717

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I have escalated the issue to our compatibility team, I will update you as soon as I will have any feedbacks to share.

Thanks

August 15, 2024 at 5:23 am #16072965

leonidasI

Have you solve my issue of translate email template?

August 15, 2024 at 10:06 am #16073875

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

The issue is still in our compatibility team queue, I will update you as soon as I will receive any further feedback.

Thanks

August 19, 2024 at 1:23 pm #16083812

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Upon checking we found out that this plugin is not compatible with WPML. I suggest you to ask the plugin author to join our go global program. https://wpml.org/documentation/support/go-global-program/

In the meantime could you try this workaround and share it with the client if it works?

Workaround
Open .../wp-content/plugins/tour-booking-manager/templates/ticket/book_now.php file.

Look for line 6.

Change

$tour_id=$tour_id??TTBM_Function::post_id_multi_language($ttbm_post_id);

For:

$tour_id=$tour_id??TTBM_Function::post_id_multi_language($ttbm_post_id);
$tour_id = apply_filters( 'wpml_object_id', $tour_id, 'product' );

Let me know if this helps.

Thanks