I’m building a bilingual online store using WooCommerce and WPML. I have run into problems when trying to use conditions relating to Product Category’s.
I have been working on the layout for my store and category pages, which from what I can understand should work with the same WooCommerce Archive layout (the one set to store, is also used for all category pages unless overridden). I really want the Product Category Archive condition to do what I need, below you will see that its not working. In the process of trying things I found what seems to me to be a bug with the Product Category condition as well, when working with a WPML site.
Product Category Archive - Condition not working at all
When I set a condition of Product Category Archive : is being viewed I would expect that element to show up an all Product Category Archive pages but not on the main store page. What is actually happening is the element isn’t showing anywhere (not on category archive pages or the main store page).
Example of a Product Category Archive page in both languages, element with condition is missing.
Product Category - Condition not applying to all languages
If I switch the condition to Product Category : Category Name the element does show up on the archive page for the chosen category, but only in one language (not the translated version of the archive page).
The dropdown selector only lets me select a Product Category in the language my WP Admin user has chosen for the backend. I am building a site that is Spanish first, with English translation, but I have my admin user set to prefer English, so in my case the Product Category dropdown in the condition editor only shows the English Category Names, this wouldn’t matter if selecting a category would apply to both languages.
To test this I changed my WP Admin user language in the profile page from English to Spanish, and now when I go to conditions it displays in Spanish and lets me chose a category name in Spanish. The condition then only applies to the Spanish Category Page.
Example of Product Category Condition, options are language specific, only shows up in language chosen, chooser only shows language of admin user.


