Home › Forums › WoodMart support forum › layout translation condition
layout translation condition
- This topic has 7 replies, 2 voices, and was last updated 4 hours, 50 minutes ago by erredigi.
-
AuthorPosts
-
October 25, 2024 at 6:27 pm #607673
erredigiParticipantHi,
I’m working on a new ecommerce with woodmart and wpml. I need to create a custom layout for some categories. the layout works correctly in the main language of the site (Italian) but does not work for the translated versions. I translated both the layout and the category but I can’t associate it with the categories in a language other than the main one. How should wd_layout_conditions and wd_layout_type be set?thankls,
RobertoOctober 26, 2024 at 12:37 pm #607770
Aizaz Imtiaz AwanKeymasterHello,
Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.
Best Regards.
October 26, 2024 at 12:57 pm #607777
erredigiParticipantplease check the layout “Grooming”
The default language is set to Italian, and I have already provided translations for both the category and layout in english. However, they are not displaying correctly.October 26, 2024 at 3:10 pm #607801
Aizaz Imtiaz AwanKeymasterHello,
I did not see the issue, the Grooming category and layout is working fine in English and Italian:
Italian: https://ibb.co/YbvRZpp
English: https://ibb.co/ZgsnsD9
Best Regards.
October 28, 2024 at 12:58 pm #608073
erredigiParticipantI have been working on this layout compatibility issue with WPML for several days. I am also in contact with the WPML support team who has confirmed a behavior that is not fully compatible with the layouts. By setting wd_layout_conditions and wd_layout_type to translate, the translated layout does not automatically associate with its translated version. To make it work, it must be manually linked (which is also an unexpected behavior according to the WPML support team). More critically, every time there is a textual modification of the layout in the primary language, the translated version loses its display conditions and needs to have them reset.
I am currently working on finding a workaround, and the best compromise seems to be setting wd_layout_type to “copy” and wd_layout_conditions to “copy once.” This way, the translated version is not associated automatically, but at least with each update of the layout in the main language, the display settings are not lost.
I thought that Woodmart was fully compatible with WPML, but evidently this is not the case. Frankly, it’s a problem to build a new e-commerce site with these issues.
Please let me know if the issue is clear and if you can assist me in finding a solution.
October 29, 2024 at 2:21 pm #608417
Aizaz Imtiaz AwanKeymasterHello,
Yes, for the layouts to work correctly in another language, the fields you specified should be selected in the WPML settings. In the future, we will consider setting these options as the default.
Best Regards.
November 2, 2024 at 3:22 pm #609441
erredigiParticipantDear Support Team,
I have conducted numerous tests and discovered that changing the settings of wd_layout_type and wd_layout_conditions can negatively impact other layout types (e.g., Cart, Checkout). Given these findings, could you provide guidance on how to safely use these settings?
Additionally, I am facing difficulties in mapping product categories within the layout to work effectively with WPML. It seems not to be functioning correctly or compatible. Could you explain how to configure this properly?
Thank you for your support.
November 2, 2024 at 3:38 pm #609442
erredigiParticipantI am experiencing an issue where layouts configured to map WooCommerce product categories do not seem to work when integrated with WPML. It appears that the layouts, when used for this specific purpose, are not compatible with WPML, and thus, are not functioning as expected.
product categories are not being translated by WPML. This problem prevents the layouts from functioning correctly in multiple languages.- This reply was modified 4 hours, 49 minutes ago by erredigi.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register