Hello XStore Support Team,
We need to convert the wishlist and waitlist pages from query parameter URLs to clean WooCommerce My Account endpoints with proper WPML multilingual slug translation.
CURRENT STRUCTURE:
Both pages currently use query parameters:
– Wishlist: /?et-wishlist-page
– Waitlist: /?et-waitlist-page
DESIRED STRUCTURE:
We want proper WooCommerce endpoints with translated slugs:
English:
– /my-account/favorites/
– /my-account/stock-alerts/
Finnish (FI):
– /fi/oma-tili/suosikit/
– /fi/oma-tili/varastoilmoitukset/
Spanish (ES):
– /es/mi-cuenta/favoritos/
– /es/mi-cuenta/avisos-de-stock/
ADDITIONAL REQUIREMENTS:
– Pages need to function as proper WooCommerce My Account tabs
– WPML must recognize and translate the endpoint slugs
– My Account menu should display correctly in all three languages
– All XStore AJAX functionality (add to wishlist/waitlist) must continue working
WHAT WE NEED FROM YOU:
1.- Does XStore have a built-in solution for converting these to proper WooCommerce endpoints, or does this require custom development?
2.- What’s the recommended approach? Should we register custom WooCommerce endpoints and hook into XStore’s rendering, or is there a better method that maintains theme update compatibility?
3.- What XStore-specific functions, filters, or hooks should we use to ensure our solution doesn’t break with future updates?
4.- How do we properly integrate these custom endpoints with WPML’s slug translation system?
5.- Will changing these URLs affect XStore’s JavaScript/AJAX calls for add-to-wishlist and add-to-waitlist buttons?
OUR ENVIRONMENT:
– Latest XStore theme version
– XStore Core plugin active
– WPML Multilingual CMS (3 languages: EN, ES, FI)
– WooCommerce (latest version)
– WordPress (latest version)
– Staging environment (not production)
We’ve attempted to solve this using standard rewrite rules, but the integration with XStore’s existing wishlist/waitlist system has proven complex. We want to implement this the correct way to avoid conflicts with future XStore updates.
Could you please provide guidance or example code showing the proper XStore-compatible
method for achieving this?
Full staging site access (WordPress admin + FTP) and purchase code are provided in the private content area below for your review and testing.
Thank you for your assistance!