If the {{ customer.unsubscribe_url }} placeholder doesn’t redirect the customer to the communication preferences page and instead returns a 404 error, there’s a quick fix you can apply.
Why is this happening?#
ShopMagic automatically generates a dedicated communication preferences page. By default, it is available under the /communication-preferences URL. There is no need to manually create a page or add any shortcode.
In some cases, WordPress may not recognize this URL because its rewrite rules (permalinks) are outdated.
How to fix the issue#
- In your WordPress dashboard, go to Settings → Permalinks.
- Without changing any settings, click the Save changes button.
This will refresh WordPress rewrite rules and ensure that the communication preferences URL is registered correctly.
After saving the permalinks, the unsubscribe link should work as expected.
Note: You don’t need any additional plugin, page, or shortcode to use the unsubscribe feature. The functionality is built into ShopMagic and works out of the box.
