Skip to content

Releases: abdhannan/woocommerce-watchlist

Release version 0.1

Choose a tag to compare

@abdhannan abdhannan released this 30 Apr 20:10

📦 Release: v0.1 — Initial Public Beta
✅ Overview
This is the first public beta release of the WooCommerce Watchlist plugin, designed to allow logged-in users to save selected products to a personal watchlist, print or export them, and customize functionality via an admin settings panel.

🚀 Features
🛒 Core Watchlist Functionality
Add products to a user-specific watchlist (login required)

Remove products from watchlist with inline interaction

Prevent duplicate entries: disables Add button for already-added products

Redirects non-logged-in users to login (with return redirect)

📄 Frontend Output
Watchlist display with:

Product image

Name, brand (from attribute), short description

Sale price & regular price with automatic savings calculation

Total price & total savings calculated and shown below list

Inline UI messaging (no popup)

🖨️ Print & PDF
Print-friendly watchlist output using only selected watchlist area

PDF export using html2pdf.js (clean output, excludes buttons)

Removes all interactive elements (e.g. Remove button) from export

⚙️ Admin Panel (Settings Page)
Custom text configuration:

Empty list message

Add / Remove / Added button labels

Custom styling configuration:

Button color

Text color

Font size

Custom login page selection (redirects Add button for non-logged-in users)

🧠 Code Design
Modular PHP structure using class-based architecture:

WL_Init, WL_Admin_Page, WL_Ajax, WL_Utils

Fully WordPress-compliant structure and naming

CSS + JS loaded cleanly and scoped to plugin

Inline CSS dynamically injected from admin settings

⚠️ Known Limitations
No item reorder or grouping (planned for future)

No bulk add/remove from product archive (planned)

No email/export sharing support yet

🛠 Recommended Use
WooCommerce stores offering deals, discounts, or price-sensitive products

Sites that want to offer “save for later” or “wishlist-like” functionality, but only to logged-in users