Skip Navigation

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

Problem:
You are working on translating an online store using the Orderable plugin, which is not compatible with WPML. This incompatibility results in separate categories for each language, preventing linking of products in new languages to the main language categories for add-ons.

Solution:
Since Orderable is not compatible with WPML, you will need a custom solution. We recommend using WPML's filters and action hooks to provide correct multilingual support. You can find more information and resources here:

We also suggest contacting the plugin author to request a compatibility update and refer them to the WPML Go Global program (Go Global Program) for assistance in making their plugin compatible with WPML.

If this solution does not apply to your case, or if it 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.

This topic contains 2 replies, has 2 voices.

Last updated by Waqas Bin Hasan 3 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
August 18, 2024 at 4:48 pm #16081638

mikolajS-7

Background of the issue:
I’m working on translating an online store for a client, and we’re using a plugin called Orderable, which serves as an ordering system for multiple locations. Orderable allows us to create different product add-ons based on product categories.

Symptoms:
We’ve encountered an issue with WPML. It seems to be creating separate categories for each language, which prevents us from linking products in the new language to the categories responsible for add-ons in the main language. This setup would require us to manually create and manage separate connections for each language to ensure the corresponding add-ons apply to each product.

Questions:
Do you have any experience integrating these systems?
How might we solve this issue?

August 19, 2024 at 8:22 am #16082361

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

Looks like the  "Orderable" is not compatible with WPML (https://wpml.org/plugin/).

WPML creates translations for the content which are linked to their main/default language content. Usually a compatible plugin should be able to handle this, for example, when you access a translated content, you should be able to access the default language content (and vice-versa).

I'm afraid you'd need a custom solution for this. WPML offers filters and action hooks that can be used in your WordPress theme or plugin to provide correct multilingual support. Browse following resources for more information:

- https://wpml.org/documentation/support/wpml-coding-api/
- https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/
- https://wpml.org/documentation/support/wpml-coding-api/shortcodes/
- https://wpml.org/faq/how-to-get-current-language-with-wpml/
- https://wpml.org/documentation/support/wpml-tables/
- https://wpml.org/documentation/related-projects/woocommerce-multilingual/wcml-hooks-reference/

I also recommend you to contact the plugin author and request a compatibility update. WPML offers very useful information for developers aiming to make their themes/plugins compatible. Please see https://wpml.org/documentation/support/ and https://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/ for details.

Theme and plugin authors are welcome to join WPML’s Go Global program, which helps them make their code multilingual ready. Together with WPML’s compatibility team, they can test and confirm that their theme or plugin works with WPML. See https://wpml.org/documentation/support/go-global-program/ for details and you can refer your theme/plugin provider to this as well.

Regards.

August 29, 2024 at 4:10 am #16117435

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello again,

Our team contacted the Orderable author and they shared the following:

I took a look at the customer issue:

It seems to be creating separate categories for each language, which prevents us from linking products in the new language to the categories responsible for add-ons in the main language. This setup would require us to manually create and manage separate connections for each language to ensure the corresponding add-ons apply to each product.

If I understand it correctly, the customer wants to use the same product addon for the original and translated versions. However, if you use a product category to link the addon and translate this product category, WPML will create a "new" product category and this link will be lost.

(see attached image).

We can share the same addon for different languages and also we can have different addons for different languages. Both cases seem right. For this scenario, I'd suggest adding both product categories (original and translated) and/or creating different addons for different languages when it makes sense.

Please let me know if it makes sense or if I am missing something.

Regards.

unnamed.png