Home Forums WoodMart support forum layout translation condition

layout translation condition

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #607673

    erredigi
    Participant

    Hi,
    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,
    Roberto

    #607770

    Hello,

    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.

    #607777

    erredigi
    Participant

    please 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.

    #607801

    Hello,

    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.

    #608073

    erredigi
    Participant

    I 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.

    #608417

    Hello,

    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.

    #609441

    erredigi
    Participant

    Dear 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.

    #609442

    erredigi
    Participant

    I 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.
Viewing 8 posts - 1 through 8 (of 8 total)