Set specials on product-edit

1.2 Phoenix 1.0.8.5 - 1.0.8.9
Released:
Thu Jan 13, 2022 1:06 pm
File size:
45.06 KiB
Validated for:
Phoenix 1.0.8.5 - 1.0.8.9
MD5 checksum:
f79f4727b92be8afab2e6a74aa649028
1.1 Phoenix 1.0.7.0 - 1.0.8.4
Released:
Wed Sep 15, 2021 3:25 am
File size:
4.65 KiB
Validated for:
Phoenix 1.0.7.0 - 1.0.8.4
MD5 checksum:
2998a2a5a5d96f63c4ea8c3fe86695f6
Description
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 1.0.5.9, you can still install this addon, using version 1.1, but you will need to insert a hook-call at admin/categories.php (line 617 on 1.0.5.0):

<?php
echo $OSCOM_Hooks->call('categories', 'injectDataForm');
?>

This call is added in core from 1.0.5.9 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 1.0.5.9.
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.
  • 13/01 2022 - Updated to work on 1.0.8.5 and newer. Modernized.
  • Author Kofod95
  • Last updated Thu Jan 13, 2022 1:06 pm
  • Total Downloads 3369
  • Rating
    (0)
  • Categories Admin
  • Addon Revisions/Downloads
    Version
    Phoenix Version(s)