Description
Nettlebyte Wishlist is a WooCommerce wishlist. Shoppers save a product and the variation they chose, then add saved products to the cart. Save for later works on the classic cart and the cart block.
Each person starts with one list. Several lists can be turned on. The maximum then defaults to 10 and can be set from 1 to 100. Each list holds up to 100 products. A product that WooCommerce has deleted stays at the end of the list, faded, until the shopper removes it.
Shop, category, and product pages stay the same HTML for every visitor. The heart on a product is empty until a script in that visitor’s browser fills it. Browsing the shop does not call the server, and the plugin does not set a wishlist cookie.
WooCommerce is required. The plugin will not activate without it.
Shoppers
- Save a product from a product card or the product page.
- Save the chosen variation on the product page.
- Keep one list, or turn on several lists and switch them from the tabs. Undo a remove. Each list holds up to 100 products. Deleting the last list leaves the wishlist empty until the next save.
- Open a wishlist page with the current price, stock, quantity, notes, and add to cart.
- Add every in-stock product on the list to the cart at once.
- On the classic cart and the cart block, move a line to the wishlist with “Save for later”.
Store owners
- Choose the button label and where it sits: on the image, before or after add to cart, or with
[nettlebyte_wishlist_button]. - Turn the heart off on cards or on the product page. Place the header link automatically, hide it, or use
[nettlebyte_wishlist_count]. - Use a text link, the theme button, or the wishlist circle. The icon can be a heart, a star, a bookmark, or an uploaded image, with its own color.
- Require an account, skip the login merge, remove an item after add to cart, send the shopper to the cart, or keep shoppers on one list.
- Open NB Wishlist in the admin menu for the overview, lists, most wanted, and settings.
- Wishlist shows logged-in saves and cart adds for the number of days set under Settings. The default is 30 and the maximum is 365. Each product keeps one total per day. Saving a shorter time deletes the older rows, including when cron is not running. Lists that already contain an item are a current count.
- Lists shows account lists.
- Most wanted sorts products saved in that same period and can download that list as CSV.
- The wishlist page can show variations, price, stock, the date added, add to cart, add all in stock, a remove icon, and a remove button.
- Settings keeps the button, the wishlist page, how long activity is kept, and the on-screen text. Tools can download account lists and import a CSV after a dry run. The export and the import each write one batch per request.
- Place a Wishlist button or Wishlist count block in the site editor. The button renders inside a product template and renders nothing elsewhere. The count block is the header link. The shortcodes stay available.
- Import an existing list from CSV with WP-CLI, including a dry run. The same file can be imported from Settings → Tools.
- Export and erase account wishlists with the WordPress privacy tools.
Shortcodes
[nettlebyte_wishlist]prints the wishlist on any page. The page chosen in settings shows it without this shortcode.[nettlebyte_wishlist_button]prints the heart for the current product.[nettlebyte_wishlist_count]prints the header link and count.
The header link can be automatic, hidden, or placed with [nettlebyte_wishlist_count]. The same link is the Wishlist count block. The Wishlist button block and [nettlebyte_wishlist_button] print the product heart.
Cache
Shop, category, and product pages stay the same for every visitor. The plugin does not set a wishlist cookie, does not print a per-visitor nonce on those pages, and does not request the wishlist while those pages are viewed.
A shop, category, or product view does not call the server. A logged-in customer’s changes are saved from the wishlist page, the cart, checkout, My Account, or the next heart click. Login merge runs on the wishlist page or on that next save. Guests stay in the browser until then.
Privacy
Guest lists stay in the browser. After logout, a short-lived cookie tells the next page view to clear that browser copy. Account lists are stored on this website. Deleting a WordPress user keeps those lists unless Delete lists when a user is deleted is turned on. Deleting the plugin keeps them unless Delete lists and activity when the plugin is deleted is turned on. Anonymous product lookups store a hash of the visitor IP address for up to an hour. This plugin does not call an external service on its own. Add to cart uses WooCommerce on the same site.
Installation
- Install and activate WooCommerce.
- Install and activate Nettlebyte Wishlist.
- Activation creates a Wishlist page when your site does not already use the
wishlistslug. If that slug is taken, the page slug isnettlebyte-wishlist. An existing page is not edited. - The list appears on the page selected under NB Wishlist → Settings → Page. The shortcode
[nettlebyte_wishlist]is only needed on a different page. Put[nettlebyte_wishlist_count]where you want the header count, or turn on the automatic header link. - Open NB Wishlist for the overview. Lists, Most wanted, and Settings are the other screens.
FAQ
Does this require WooCommerce?
Yes. Install and activate WooCommerce first. Nettlebyte Wishlist will not run without it.
Will this bypass my page cache?
No. Shop, category, and product pages are the same HTML for every visitor. The plugin does not set a cookie and does not call the server on those page views.
Where is a guest wishlist stored?
In the visitor’s browser. A shop, category, or product view does not send it. Login merge runs on the wishlist page or on the next save click.
Does “Save for later” work on the cart block?
Yes. The classic cart still prints the button from PHP. The cart block gets the same button from a script that reads the cart and removes the line after the save. That script loads only on pages that contain the cart block.
Does the plugin call an external service?
No. Wishlist requests stay on your site.
Which languages are included?
English is the language of the plugin. Leave the Text tab empty to follow the site language when a translation is installed. A custom string there is shown in every language.
What do the admin numbers count?
Saves and cart adds in Wishlist and Most wanted are logged-in activity for the number of days set under Settings. The default is 30. Each product keeps one total per day, and older days are deleted. A guest click stays in the browser and is not included. Lists that already contain an item are a current count.
Can guests save without an account?
Yes, unless Require an account is on. Then a guest click opens the login page and nothing is saved in the browser. The shop HTML stays the same either way.
Where can the heart and the header link go?
Cards can put the heart on the image, before add to cart, after add to cart, or only where you place [nettlebyte_wishlist_button]. The product page can put it after add to cart, after the summary, after the thumbnails, or only through that same shortcode. The header link can sit in the corner, stay hidden, or use [nettlebyte_wishlist_count]. The Style tab sets a text link, the theme button, or the wishlist circle, and the icon and its color. The icon can be a heart, a star, a bookmark, or an uploaded image.
How many lists can one person have?
One, until Several lists is turned on. Maximum lists then defaults to 10 and can be set from 1 to 100. Each list holds up to 100 products.
How do I import old wishlists?
Use WP-CLI. Run a dry run first:
wp nettlebyte-wishlist import --file=products.csv --dry-run
The CSV needs user_email and product_id. Optional columns are list_name, variation_id, attributes, qty, note, and added_at. Settings → Tools imports the same kind of file after a dry run. Guest lists are not in either file.
Changelog
1.0.3
- Privacy notice covers the logout cookie, the rate-limit hash, and when lists are kept.
- Uninstall always removes temporary files and rate-limit data. Lists are removed when that setting is on.
- The session request checks a nonce. Shop pages keep one shared value so the HTML stays the same for every visitor.
1.0.2
- Removed the custom CSS field. Button style, icon, and colors are still set from the Style tab.
- Settings scripts load through WordPress. The public product lookup no longer returns titles of trashed posts.
1.0.1
- Plugin Check fixes. The customer list download no longer changes the PHP time limit, and WordPress loads translations itself.
1.0.0
- First release.
- Save for later on the cart block.
- Wishlist button and wishlist count blocks for the site editor.
- NB Wishlist admin menu for the overview, lists, most wanted, and settings. Saves and cart adds cover the retention window of logged-in activity, stored as one total per product per day. The default is 30 days.
- Card, product, and header placement, including shortcodes. Wishlist table columns and cart redirect.
- Style choices for the wishlist control, icons, and optional CSS.
