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
- This topic has 7 replies, 2 voices, and was last updated 1 month, 2 weeks ago by
Luke Nielsen.
-
AuthorPosts
-
May 26, 2025 at 11:03 am #663162
alex.lParticipantHi,
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 presentSteps 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.May 26, 2025 at 12:59 pm #663200
Luke NielsenKeymasterHello,
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
May 26, 2025 at 3:58 pm #663321
alex.lParticipantHello,
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
May 26, 2025 at 4:58 pm #663331
Luke NielsenKeymasterHello,
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
May 27, 2025 at 1:13 pm #663531
alex.lParticipantHi,
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
May 27, 2025 at 2:22 pm #663566
Luke NielsenKeymasterHello,
Send access to the admin panel so we can look closer at it.
Thank you in advance.
Kind regards
May 27, 2025 at 5:48 pm #663635
alex.lParticipantHi,
added here are access to admin panel.
Let me know if you need more information.
ThanksMay 28, 2025 at 11:05 am #663758
Luke NielsenKeymasterHello,
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
-
This topic was modified 1 month, 3 weeks ago by
-
AuthorPosts
Tagged: theme setting, wishlist, Wpml
- You must be logged in to create new topics. Login / Register