Description
- Author: Fahad Mahmood
- Project URI: http://androidbubble.com/blog/wordpress/plugins/products-clearance-sale-for-woocommerce
- Free Version: http://demo.androidbubble.com/products-clearance-sale-for-woocommerce
- Premium Version: http://demo.ibulb.work/products-clearance-sale-for-woocommerce
- License: GPLv2 or later. See License below for copyright jots and titles.
Products Clearance Sale for WooCommerce is a WooCommerce compatible plugin which enables you to automatically backup existing products and launch them on right time with updated price, description and images. It is certainly an attraction for the earlybird customers.
How it works
- In Products, choose “Next Period” in the stock status filter and click Go. Your products are backed up as drafts.
- Edit the Next Period products: new prices, descriptions and images.
- Click “Launch the Next Period Products”. The drafts are published and the original products are removed.
You will also find a WooCommerce > Clearance Sale screen with the current status and a short guide.
Pro add-on (optional, plug and play)
The Pro add-on is a drop-in pro folder inside the plugin directory. If the folder exists the Pro features switch on automatically (no license key, no extra plugin). If it does not exist, the free features simply keep working.
- Scheduled launch with an email report (WP-Cron).
- Complete clone: description, short description, author, menu order and variations of variable products.
- Safe launch: move the original products to the Trash instead of deleting them, and keep draft / private products unpublished.
Important!
Visit my blog and suggest good features which you want to see in this plugin.
License
This WordPress Plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or any later version. This free software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this software. If not, see http://www.gnu.org/licenses/gpl-2.0.html.
Installation
To use Products Clearance Sale for WooCommerce, you will need:
* an installed and configured copy of [WordPress][] (version 5.8 or later).
* an active copy of WooCommerce.
* FTP, SFTP or shell access to your web host (only for manual installs)
New Installations
Method-A:
- Go to your wordpress admin “yoursite.com/wp-admin”
- Login and then access “yoursite.com/wp-admin/plugin-install.php?tab=upload”
- Upload and activate this plugin
Method-B:
- Download the Products Clearance Sale for WooCommerce installation package and extract the files on your computer.
- Upload the
products-clearance-sale-for-woocommercefolder to thewp-content/pluginsdirectory of your WordPress installation, using an FTP or SFTP client. - Log in to the WordPress Dashboard and activate the Products Clearance Sale for WooCommerce plugin.
FAQ
Who can use the backup and launch buttons?
Only users with the manage_woocommerce capability (administrators and shop managers). The capability can be changed with the pcsfw_required_capability filter.
How do I activate the Pro features?
Upload the pro folder of the Pro package into wp-content/plugins/products-clearance-sale-for-woocommerce/. Remove the folder to go back to the free features. Note that updating the free plugin from WordPress.org replaces the plugin folder, so upload the pro folder again after an update (or keep a copy and point the pcsfw_pro_file filter to it).
Does launching delete my original products?
Yes, in the free version the original (backed up) products are deleted permanently when you launch, which is why you are asked to confirm. The Pro add-on can move them to the Trash instead.
Upgrades
To upgrade an existing installation of Products Clearance Sale for WooCommerce to the most recent release:
- Update it from the Plugins screen, or download the installation package and extract the files on your computer.
- Upload the new PHP files to
wp-content/plugins/products-clearance-sale-for-woocommerce, overwriting any existing Products Clearance Sale for WooCommerce files that are there. - Log in to your WordPress administrative interface immediately in order to see whether there are any further tasks that you need to perform to complete the upgrade.
- Enjoy your newer and hotter installation of Products Clearance Sale for WooCommerce
Changelog
1.1.0
- Security: the backup and launch actions now require the manage_woocommerce capability (a valid nonce alone was enough before).
- Security: the debug dump of post meta (?get_keys&debug) is limited to administrators and its output is escaped; it no longer depends on helper functions from the pro folder.
- Security: all database lookups in the backup routine use prepared statements; SQL text is no longer sent to the browser (only when WP_DEBUG is on).
- Security: request values are unslashed and sanitized, output is escaped.
- Fix: the free version no longer calls functions that only existed in the pro folder (pre / pree).
- Fix: scripts and styles load only on the products screens (they used to load, with two queries, on every admin page) and use the plugin version for caching instead of time().
- Fix: the plugin no longer loads the whole wp-admin include set on every request.
- Fix: Next Period list shows the next period drafts; multi-value meta (for example variable product prices) and backslashes are copied correctly; the launched product keeps its original permalink; trashed products are not resurrected at launch.
- Fix: jQuery.parseJSON replaced (removed in jQuery 4).
- New: WooCommerce > Clearance Sale screen, launch confirmation, concurrency lock, admin notice when WooCommerce is missing, HPOS compatibility declaration.
- New: optional plug and play Pro add-on (pro folder).
- Tested up to WordPress 7.1.
1.0.5
- MySql Queries are updated. [16/02/2024][Thanks to Nick Sotiropoulos]
1.0.4
- Revised version. [08/02/2024][Thanks to Nick Sotiropoulos]
1.0.0
- Init. [21/12/2023][Thanks to Nick Sotiropoulos]
