Overview of the Issue
When using WooCommerce Private Store with WPML, the translation of a page with “Add to Private Store” turned on is not protected, so its content is public. Also, “Redirect after login” sends the visitors of every language to the same page.
Workaround
- Go to WPMLSettingsCustom XML Configuration, add the following XML and save:
XML
<wpml-config> <custom-fields> <custom-field action="copy">wcps_page_is_protected</custom-field> </custom-fields> <admin-texts> <key name="wcps_store_redirect" /> </admin-texts> </wpml-config>
- Do this before you translate the protected pages. For pages that are already translated, tick “Add to Private Store” on each translation.
- Translate the “Redirect after login” URL in WPMLString Translation.