=== Heartlist – Wishlist for WooCommerce ===
Contributors: ianbaysa
Tags: wishlist, woocommerce wishlist, woocommerce, save for later, favorites
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WooCommerce wishlist with a heart button: shoppers save products for later, guests included. Fast, no jQuery, no junk URLs.

== Description ==

Heartlist is a free WooCommerce wishlist plugin. It adds a heart button to your products so shoppers can save them for later, and a wishlist page where they can find them again and add them to the cart. Guests can use it without an account.

Try it first: click **Live Preview** above to open a demo store with Heartlist already set up.

It is built to stay out of your way:

* **No bot traffic or SEO clutter.** Saving a product is a background request, never a link with a query string. Bots and search engines have nothing to crawl, so they can't flood your server or fill your Search Console with junk URLs.
* **Light.** One small script (no jQuery) and one small stylesheet, loaded only where a heart or the wishlist appears.
* **Works with caching.** The heart state is filled in by the browser, so it stays correct on cached pages. The wishlist page itself is never cached and never indexed.
* **Works with your theme.** Classic WooCommerce hooks, block-theme product grids, two blocks and three shortcodes, so you can place the heart anywhere, including page builders.

= Features =

* Heart button on product pages (three positions) and in shop/category grids (icon only or with text)
* Wishlist page created automatically on activation
* Guests can save products without an account (stored in a cookie with product IDs only); the list moves into their account when they log in
* Remove items, add to cart, see price and stock at a glance
* Logged-in shoppers get a private share link for their list
* "Wishlist" and "Wishlist Button" blocks
* Shortcodes: `[heartlist]`, `[heartlist_button]`, `[heartlist_button id="123"]`, `[heartlist_count]`
* Custom button text
* Accessible: real buttons, keyboard friendly, screen reader announcements
* Privacy: suggested policy text, plus support for WordPress's personal data export and erase tools
* Compatible with WooCommerce High-Performance Order Storage

= Heartlist Pro =

Want the wishlist to bring in sales? [Heartlist Pro](https://heartlist-pro.netlify.app/) is an optional paid add-on:

* Price-drop and back-in-stock emails to shoppers who wished for a product, guests included
* Multiple named wishlists per shopper, each with its own share link
* A "most wished for" report so you know what to restock or discount

The free plugin is complete on its own and never nags you to upgrade.

== Installation ==

1. Install and activate WooCommerce.
2. Go to Plugins → Add New, search for "Heartlist", install and activate it. (Or upload the zip under Plugins → Add New → Upload Plugin.)
3. A "Wishlist" page is created for you. Visit WooCommerce → Heartlist to change the page, button position and text.
4. Optional: add `[heartlist_count]` to your header so shoppers can find their list.

== Frequently Asked Questions ==

= The heart doesn't show on my product page. =

Some themes and page builders replace WooCommerce's standard product layout. Add the "Wishlist Button" block to your product template, or the `[heartlist_button]` shortcode to your product layout.

= Does it work with page caching? =

Yes. Cached pages show the right heart state because it is filled in by the browser after the page loads. The wishlist page sends no-cache headers and sets DONOTCACHEPAGE for caching plugins.

= Do guests need an account? =

No. A guest's list is stored in a cookie (product IDs only) for 30 days. When the guest logs in, the list is merged into their account.

= Will it create indexable URLs? =

No. Saving and removing happen through POST requests to the REST API, never through links. The wishlist page is marked noindex.

= What happens to data when I delete the plugin? =

Deleting the plugin from the Plugins screen removes its settings and all saved wishlists. The wishlist page is left in place because it's your content; delete it yourself if you no longer need it.

== Screenshots ==

1. The heart button on a product page. One click saves the product, no page reload.
2. Hearts in the shop grid, so shoppers can save straight from category pages.
3. The wishlist page: price, stock, add to cart and remove.
4. Settings under WooCommerce → Heartlist.

== Changelog ==

= 1.0.1 =
* Fix: on block themes the product-page heart button no longer stretches across the add-to-cart row.
* Fix: in block product grids the heart now lines up with the Add to cart button.

= 1.0.0 =
* First release.

== Upgrade Notice ==

= 1.0.1 =
Layout fixes for block themes.

= 1.0.0 =
First release.
