Home Forums WoodMart support forum Wishlist page broken after saving theme settings on other language

Wishlist page broken after saving theme settings on other language

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

    alex.l
    Participant

    Hi,

    We faced with a problem, losing wishlist page settings after saving theme settings not on default language.

    Theme version: 8.1.2
    WPML version: 4.7.5
    Site has 3 language versions: RO(default), RU, EN
    All translations for wishlist page are present

    Steps to reproduce:
    1. Navigate to Theme settings -> Shop -> Wishlist page
    2. Choose wishlist page from page list
    3. Save settings
    4. Change language selector in admin bar to ‘Show content in: English’
    5. Save settings
    6. Change language selector in admin bar to ‘Show content in: Romanian’ (default site language)

    Expected result: the settings for the wishlist page have not changed

    Actual result: wishlist page in theme settings is empty

    • This topic was modified 1 month, 3 weeks ago by alex.l.
    Attachments:
    You must be logged in to view attached files.
    #663200

    Luke Nielsen
    Keymaster

    Hello,

    You have the WPML installed, when you save Theme Settings in another language, it could disable some options.

    It’s necessary to save the settings only in the primary language, and if something needs to be changed in other languages, it should be done through string translation.

    Kind Regards

    #663321

    alex.l
    Participant

    Hello,

    Thank you for your reply.

    We understand the limitation regarding saving theme settings in non-default languages when using WPML. However, we would like to point out that this specific issue has been recurring for several years and only affects the Wishlist Page field in the theme settings. All other settings remain intact when saved from another language, which makes this behavior seem inconsistent and potentially unintended.

    As we frequently work on theme adjustments in different language versions, it’s easy to overlook this issue—especially since it impacts only one specific field.

    Could you please confirm whether it would be possible to address this inconsistency in a future theme update?

    We appreciate your support and look forward to your response.

    Best regards

    #663331

    Luke Nielsen
    Keymaster

    Hello,

    Sorry, for now, it works in a way that you need to save the settings only in the primary language when using WPML.

    If you have any additional questions, let me know.

    Kind Regards

    #663531

    alex.l
    Participant

    Hi,

    Thank you for the clarification.

    We understand that the Wishlist page setting must be saved in the default language when using WPML. However, as this field frequently resets (unlike other settings), we’re looking for a safe workaround.

    We’re exploring programmatically setting the Wishlist page based on the current language. Here’s an example we’ve tried:

    add_filter('option_woodmart_wishlist_page', function($value) {
             $default_id = get_option('woodmart_wishlist_page', 123); // Fallback to 123 if not set
             $translated_id = apply_filters('wpml_object_id', $default_id, 'page', true);
    
             return ($translated_id && get_post($translated_id)) ? $translated_id : $value;
    });

    Could you confirm if this approach is viable or suggest a better way to prevent the Wishlist page setting from resetting? This issue impacts “Back in stock” notifications, so a reliable solution would greatly improve our workflow.

    We appreciate your advice and look forward to your feedback.

    Best regards

    #663566

    Luke Nielsen
    Keymaster

    Hello,

    Send access to the admin panel so we can look closer at it.

    Thank you in advance.

    Kind regards

    #663635

    alex.l
    Participant

    Hi,
    added here are access to admin panel.
    Let me know if you need more information.
    Thanks

    #663758

    Luke Nielsen
    Keymaster

    Hello,

    Our developers have checked it and said that unfortunately, you cannot save Theme Settings in other languages, you have to make changes in Theme Settings in the default language, and all other changes you need to make via WPML -> String Translation.

    Kind Regards

Viewing 8 posts - 1 through 8 (of 8 total)