GWP Product Actions
Adds Wishlist and Quick View actions to WooCommerce products with a secure shortcode and React-powered admin/frontend interfaces.
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/ridhwanahsan/gwp-product-actions/archive/refs/heads/main.zipWishlist and Quick View actions for WooCommerce products with a clean React admin UI and a lightweight, scoped frontend runtime.
Highlights
- Wishlist heart icon with AJAX toggle
- Guest wishlist using localStorage (optional)
- Quick View eye icon with AJAX modal
- Shortcode:
[gwp_product_actions id="PRODUCT_ID"] - React-based admin settings page
- Scoped CSS with
gwp-prefix
Requirements
- WordPress 6.5+
- WooCommerce active
- PHP 7.4+
Installation
- Upload the plugin folder to
wp-content/plugins/gwp-product-actions. - Activate GWP Product Actions in the Plugins screen.
- Go to
Dashboard > GWP Product Actionsto configure settings.
Usage
Add the shortcode anywhere:
[gwp_product_actions id="123"]
If the shortcode id is omitted on a single product page, the current product is used automatically.
Settings
The admin UI is located at Dashboard > GWP Product Actions. Available settings:
- Enable/disable wishlist
- Enable/disable quick view
- Icon style (solid / outline)
- Modal animation toggle
- Button position (after title / before add to cart / after add to cart)
- Primary / accent colors
- Enable guest wishlist
- Performance mode toggle
Data Storage
- Logged-in wishlist is saved in user meta:
gwp_wishlist_ids - Guest wishlist is stored in browser localStorage:
gwp_wishlist_items - Plugin settings are stored in the option:
gwp_product_actions_settings
Security
- All AJAX requests use nonce verification
- All REST requests require
manage_options - Inputs are sanitized and outputs escaped
- No telemetry, tracking, or external requests
Uninstall
Uninstalling the plugin removes:
gwp_product_actions_settingsgwp_wishlist_idsuser meta
Development Notes
- Admin and frontend scripts are built into
build/ src/contains placeholders for future build pipelines- No jQuery dependency
FAQ
Does this require WooCommerce?
Yes. The plugin is inactive without WooCommerce.
Does guest wishlist work without login?
Yes, if enabled in settings.
Can I place actions manually?
Yes. Use the shortcode where you want the buttons to appear.
License
GPL-2.0-or-later