Skip Navigation

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

Problem:
You are using the Advanced Product Fields plugin for WooCommerce and are unable to see the elements of this plugin in the translated versions of your site. Additionally, the HTML block connected to the products does not appear, and when logged out, the products display as out of stock in the translated versions.

Solution:
First, ensure that you have set the field groups as translatable and translated these groups manually before translating the products and attached fields. You can find guidance on how to do this in the Advanced Product Fields documentation.

For the HTML block, check if it is a custom created block or provided by a plugin. Custom blocks need to be recognized by WPML, and you can make them translatable by following this guide: Make Custom Gutenberg Blocks Translatable.

Regarding the issue of products appearing as out of stock when logged out, this might be due to a conflict or a data/permissions problem. We recommend opening a separate support ticket to address this specific issue.

If this solution does not apply to your case, or if it seems outdated, please check the related known issues and verify that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket at WPML support forum for further assistance.

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 5 replies, has 1 voice.

Last updated by nasserM-2 3 days, 18 hours ago.

Assisted by: Waqas Bin Hasan.

Author Posts
November 24, 2024 at 9:37 am #16436832

nasserM-2

Background of the issue:
I use the Advanced Product Fields plugin for WooCommerce on my site hidden link. I am trying to translate the elements using WPML.

Symptoms:
In the translated versions, I can't see the elements of the Advanced Product Fields plugin, and the HTML block connected to the products doesn't appear. Additionally, when I log out, the products are displayed as out of stock in the translated versions.

Questions:
Why are the elements of the Advanced Product Fields plugin not visible in the translated versions?
Why does the HTML block connected to the products not appear in the translated versions?
Why are products displayed as out of stock in the translated versions when I log out?

November 24, 2024 at 9:42 am #16436876

nasserM-2

Still facing problems in translated versions

November 24, 2024 at 9:44 am #16436879

nasserM-2

Here is an example product
hidden link

November 24, 2024 at 8:04 pm #16437582

nasserM-2

Regarding HTML blocks it's been translated but not show in en and ar versions

November 27, 2024 at 6:35 am #16447500

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting the support.

Can you please confirm that if you've translated the field groups before translating the products and attached fields? hidden link">As per the documentation from the "Advanced Product Fields" plugin, you'll need to set field groups as translatable and then translate these groups manually first. Then you can use WCML to translate products, which should then include these fields as well.

For the linked HTML block, I'll request more information about it. For example, if this is a custom created block or is provided by the same plugin (or by another plugin)? Usually standard blocks are translatable by default, while custom blocks need to be recognized by WPML. You can easily achieve this by following this guide.

Please let me know and I'll try my best to help you further on the matter.

Regards.

P.S.: About the stocks issue vs logged-out user, I'm not sure at the moment that why this'd happen. Probably a conflict or some data and/or permissions problem causing this. However, to investigate this issue in detail, I'll request to open a separate ticket in our forums, so you can get to the point help. Unfortunately we can not mix several issues in one ticket.

November 27, 2024 at 11:55 am #16448894

nasserM-2

Thank you. I understand. I will do with your advice