Feature requests

Support guest wishlist button states with full-page caching

9d agoPending

Please add native support for accurate guest wishlist button states on full-page cached shop, category and product pages.

Currently, the recommended configuration is to disable **“Save button state after adding to the wishlist.”** This keeps cached buttons neutral, but guests lose the saved-state indication after navigating or reloading.

Suggested behavior:

1. Render neutral, unchecked wishlist buttons in guest HTML so the same page can be cached and shared.
2. After loading, read the existing `woodmart_wishlist_products` cookie and synchronize **both saved and unsaved states**, including icons and button labels.
3. Repeat synchronization after AJAX filtering, pagination, load more, product tabs and Back/Forward navigation.
4. Preserve native guest add/remove behavior without adding per-product AJAX requests.

Logged-in customers and the personal wishlist page would remain excluded from caching.

This would let stores retain Cloudflare or other full-page caching while showing guests accurate wishlist icons, without requiring a custom companion plugin.

A companion implementation using this approach passed local shared-HTML tests.

(its like remove all states on each page reload then sync the saved products from cookie)

0 comments