Skip to content Skip to sidebar

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

Problem:
The client is experiencing issues with a bus ticket plugin that is not compatible with WPML, causing different IDs for buses in different languages, which affects ticket orders in WooCommerce.
Solution:
We recommend the following steps to address the issue:
1. Set the Custom Post Type related to the bus plugin to "Translatable".
2. Set the Custom Taxonomies related to the bus plugin to "Translatable".
3. Adjust all Custom Fields associated with those Custom Post Types to either "Copy" or "Translate".
4. Translate the Custom Post Types and Custom Taxonomies.
For the issue with the search form not displaying results in a second language, ensure:
1. In "Bus > Settings > Bus Settings", the "Search result" page is correctly selected.
2. The "Global search form" page and the "Search result" page are translated in "Pages".
3. Routes are correctly translated and settings are copied over, which can be reviewed in the WordPress Editor. You can also translate these routes using the WordPress Editor by following this guide: Using different translation editors for different pages.

If these steps do not resolve your issue or if the solution seems outdated or irrelevant to your specific 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 further assistance is needed, 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 0 reply, has 1 voice.

Last updated by Andreas W. 1 year, 3 months ago.

Assisted by: Andreas W..

Author Posts
January 9, 2025 at 12:14 pm #16577587

viktorH-11

Hello, we upload the passwords and ftp do you recived them, because we dont see them in the forum

January 9, 2025 at 12:15 pm #16577588

viktorH-11

Yes, we see them

January 9, 2025 at 2:15 pm #16578250

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

You need to:

- Set the relative Custom Post Type to "Translatable".
- Set the relative Custom Taxonomies to "Translatable".
- Set all Custom Fields that relate to those CPTs to "Copy" or "Translate" respectively.
- Translate the CPTs and Custom Taxonomies.

The remaining issue is that the shortcodes used to display the search form is not displaying any search results in a second language and we do sadly not yet have a workaround for this issue.

Once I get more feedback from the compatibility team, I will contact you again.

January 13, 2025 at 3:31 pm #16589427

viktorH-11

Hello, but waht about that its create two bus lines in the the two languages, and they are not the same.

January 14, 2025 at 2:21 pm #16593404

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Please take note, that we can not longer confirm any issue, as with the correct settings the translations and search form work as expected honor test.

1) The translation should always be identical to the original.

2) If you want to create different routes per language, you can do this by changing the admin language in the top admin bar and then creating an independent, original route in a second language.

For the issue with the form:

1) In "Bus > Settings > Bus Settings", make sure that the "Search result" page is selected.

2) In "Pages", make sure to translate both the "Global search form" page (where the search is performed) and the "Search result" page (where results are displayed).

3) Make sure the routes are translated correctly, meaning all settings are copied over. You can review the routes in each language on the WordPress Editor.

NOTE: You could also translate those routes with the WordPress Editor by following this guide:
https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/