View Categories

Wishlist Issues with WPML and Multiple Languages

Table of Contents

Problem Description #

When using the site in multiple languages (with WPML or similar), wishlist endpoints (e.g. “my-wish-list”) may trigger locale switching incorrectly, causing unexpected behavior, broken links or redirections.

Common symptoms

  • Wishlist links redirect to wrong language or homepage.
  • Endpoint slug “my-wish-list” not recognized or causes 404 in certain languages.
  • Users report issues immediately after switching language or browsing in other locale. WordPress.org

Cause

  • The plugin registers custom endpoints in a way that conflicts with WPML endpoint translation handling. According to one support thread, the plugin passes the endpoint slug as the locale parameter when calling get_endpoint_translation. This mis‑usage causes WPML to treat the slug as a locale. WordPress.org

Solution (step‑by‑step)

  1. Update plugin & WPML to latest versions: Sometimes fixes are introduced, check if plugin changelog addresses endpoint registration.
  2. Apply custom fix (if comfortable): In plugin code where endpoint is registered, correct the call, omit unnecessary locale parameter. (As per thread: change get_endpoint_translation(self::$endpoint, …) to get_endpoint_translation(self::$endpoint)). WordPress.org
  3. Temporarily disable WPML for testing: Deactivate WPML and test wishlist functionality, if it works, issue is confirmed as WPML‑related.
  4. Alternatively, use a different wishlist slug: Try customizing wishlist page slug to avoid conflicts with language‑switching.
  5. If unsure / no code access: Reach out to plugin support, report the issue, and request compatibility fix or guidance.

Prerequisites

  • Admin access, coder/developer knowledge if editing plugin files, or ability to contact plugin support.
  • WPML (or similar) plugin active and correctly configured.

Additional Notes

  • Because multi-language is common for many WooCommerce stores, ensuring wishlist compatibility with translation plugins is important for UX.
  • After applying changes or plugin updates, re-check all languages to confirm wishlist pages work across locales.

 

Wishlist for WooCommerce