=== WebSkyLink Wishlist ===
Contributors: vrvijendra007
Tags: wishlist, woocommerce wishlist, save for later, favorites, guest wishlist
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Let customers save products to a wishlist, as guests or with their account, and add them to the cart later.

== Description ==

WebSkyLink Wishlist adds an "Add to wishlist" button to your product pages and product grids. Customers save products without reloading the page, come back to them on the wishlist page, and add them to the cart when they are ready.

= Saving products =

* Button on product pages: before or after the add to cart button, after the product summary, or only where you place the shortcode.
* Button on the shop, category and tag pages, before or after the add to cart button, or hidden.
* Works with classic themes and block themes (the add to cart and product button blocks).
* Saves without a page reload. The button shows whether the product is saved, and a second click removes it, or turns into a "View wishlist" link.
* Variable products: the selected options are saved, including options a variation leaves open (such as "any size"). Each choice is saved once.
* Duplicate products are never saved twice.
* Loading state, visible focus, and changes announced to screen readers. An icon-only button keeps its text for screen readers.

= The wishlist page =

* A page with the `[webskylink_wishlist]` shortcode is created when you activate the plugin; you can choose another page.
* Product image and name, chosen options, price, availability, quantity, add to cart and remove.
* Products that need options chosen link to their page. Products that were deleted or are no longer available are left out.
* Optionally remove a product from the wishlist when it is added to the cart, and go to the cart.
* Works without JavaScript; with JavaScript, removing a product does not reload the page.
* Stacks into cards on small screens.

= Guests and accounts =

* Logged-in customers keep their wishlist with their account.
* Guests can use a wishlist too (you can switch this off): a cookie with a random identifier links it to their browser. Only a keyed hash of that identifier is stored.
* When a guest logs in or registers, their wishlist moves to their account, without duplicates.
* Guest wishlists are deleted a set number of days after their last change (30 by default).

= Privacy =

* Wishlists are included in WordPress's personal data export and erasure tools.
* Suggested privacy policy text is added under Settings > Privacy.
* Wishlists of deleted customers and items of deleted products are removed.
* On uninstall, data is removed only if you turn on "Remove data".

= For theme developers =

* `[webskylink_wishlist_button product_id="123"]` places a button anywhere; leave out `product_id` to use the current product.
* `webskylink_wishlist_button()` prints a button in a theme template.
* Templates can be overridden in `yourtheme/webskylink-wishlist/` (`button.php`, `wishlist.php`).
* Filters and actions: `webskylink_wishlist_show_button`, `webskylink_wishlist_button_icon`, `webskylink_wishlist_columns`, `webskylink_wishlist_page_template`, `webskylink_wishlist_can_view`, `webskylink_wishlist_item_added`, `webskylink_wishlist_item_removed`, `webskylink_wishlist_before_table`, `webskylink_wishlist_after_table` and more.

= WebSkyLink Wishlist Pro =

A separate Pro add-on adds multiple wishlists, sharing (link, email and social), notes, quantities and ordering, moving products between lists, "Add all to cart", a grid layout and widget, button colors and icons, price drop and back in stock emails, promotional emails with consent and unsubscribe, wishlist reports, and PDF download. This plugin works fully without it. More at https://webskylink.com/.

== Installation ==

1. Install and activate WooCommerce.
2. Install this plugin from Plugins > Add New Plugin, or upload the zip, and activate it.
3. A "Wishlist" page is created. Change it, and the button placement, under WooCommerce > Settings > Wishlist (also reachable from Webskylink Suite > Wishlist).

== Frequently Asked Questions ==

= Do customers need an account? =

No. Guests can use a wishlist unless you switch that off under Guests. Their wishlist moves to their account when they log in or register.

= My page cache shows the wrong button state. =

The button state and the security token are refreshed from the server after the page loads, so cached pages show the right state. Make sure `?wc-ajax=` requests are not cached (WooCommerce already sends no-cache headers for them).

= How long are guest wishlists kept? =

30 days after their last change by default; set 1 to 365 days under Privacy & data.

= Where is the data stored? =

In two database tables, `{prefix}webskylink_wishlists` and `{prefix}webskylink_wishlist_items`. Orders are never read or changed, so the plugin is compatible with High-Performance Order Storage.

== Screenshots ==

1. The button on a product page.
2. The wishlist page.
3. Settings.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
