SITUATION
The site hidden link has 2 languages.
Pages like hidden link show enroll buttons for the next available online classes.
- Classes are basic woocommerce products (with some custom fields such Date+Time)
- Relationship connects a Live Online Class post and its related products (aka scheduled sessions)
- Products are set to be not translatable because :
- Pages in primary language (english) and secondary (french) should display all classes, not regard to the language
- Enroll buttons are powered by a toolset view + content template
PROBLEM
On the french version of the page (e.g hidden link), available classes don't display.
Although the filter seems to work - at least partially - as "Aucun cours programmé" (translation for "No class scheduled yet") is display when no courses is available.
SCREENSHOTS ATTACHED
1- Page in english showing enroll button as expected
2- Page in french not showing enroll buttons
3- Page in english with message when no classes are scheduled
4- Page in french with message when no classes are scheduled
5- View and content template powering the enroll button
I've spend few hours to understand what I do wrong. I need help at that point.
Hello,
In English version of WordPress page, Toolset Views will output only posts/products in English.
Same as above in French version of WordPress page, Toolset Views will output only posts in French.
I suggest you check these:
1) Make sure you have translated all English class and product posts into French language
2) Make sure all French class and products posts are connected with your custom post type relationships.
Then test again.
Hello Luo,
Sure, it's what I did in the first place.
Although, according to WPML docs, setting Products as not translatable should work too.
To be sure, I've deleted all products translation, re-created them again, made sure post type relationships are fine. Available courses are displayed based on a conditional: if custom field Date is greater than today then show the enroll button => I've made sure all courses products have a date in the future.
The french version does not work. Even more: it shows a "No course available" ("Aucun cours disponibles"). See screenshots
The problem you mentioned above is abnormal, please check these:
1) Make sure you are using the latest version of Toolset plugins + WPML plugins, you can download Toolset plugins here:
https://toolset.com/account/downloads/
2) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, deactivate all custom PHP/JS code snippets, and test again
3) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/
4) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/
Thanks Luo, I'll do all of that in the next days. I'll let you know then.
Hanael
OK, I have marked this thread as "Waiting for feedback" status, please update here when your duplicator package is ready, private message box enabled again.
I've finally fixed the issue.
After removing element after element, going step by step, I've figure out that something in the WMPL translation causes the issue. I don't know what exactly.
I've started from scratch and it works fine now.
Thanks for your support !
My issue is resolved now. Thank you!