This addon adds the ability to set a special price and expiry date directly from the product-editor, instead of setting it on specials.php.
This is particularily useful if you have a lot of products, and the dropdown on specials.php is getting annoying.
The specials still show up on specials.php, so you can still easily manage the products you already have on discount.
##For earlier versions##
If you are on a version prior to 188.8.131.52, you can still install this addon, but you will need to insert a hook-call at admin/categories.php (line 617 on 184.108.40.206):
echo $OSCOM_Hooks->call('categories', 'injectDataForm');
This call is added in core from 220.127.116.11 and later, so it's fine to add to an earlier version, and will not be overwritten by an update, if you update to at least 18.104.22.168.
The layout might be off, but if you look at the other input-boxes in categories.php, you might be able to figure out how to ammend includes/hooks/admin/categories/productSpecials.php accordingly
To install upload everything beside this file to the coresponding directories at the server.
NOTE! All files go to the includes of the root directory, and not the admin/includes!
Copy and translate the English language-file as needed.
Credit goes to the PhoenixCart core-developers for making it possible to install without modifying core.
A small hook to add a specials-input on the product-edit
- 01/06/2021 - Initial release
- 14/09 2021 - Bugfix and correction on structure; thank you BrockleyJohn. Add datepicker.