Contributions
Add Attributes to categories.php
bcdev contrib - Add Attributes to categories.php
Note:
This contribution add checkboxes in the categories.php file into Administration Panel, so then you create/modify a product, you can add/remove attributes much faster than one-by-one.
It is useful if you have many products with similar attributes (families and/or values)
To appear, the attributes must have been added with the Products Attributes tool already present.
This is my first contrib, I hope this help you.
Benjamin
Expand All / Collapse All
Fix a bug that unable to delete all options.
the line
tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id='" . (int)$products_id . "'");
must be before :
if (isset($HTTP_POST_VARS['option'])) {
around line 270.
If you use products_attributes_download, you will have to add those lignes to your admin/includes/languages/*/categories.php file
define('TABLE_TEXT_FILENAME', 'Filename:');
define('TABLE_TEXT_MAX_DAYS', 'Expiry days:');
define('TABLE_TEXT_MAX_COUNT', 'Maximum download count:');
New Version with explicit installation note and corrected a bug
This version handle options prices, products attributes download, and javascript for converting with tax rates.
Installation note is in the attached archive.
This version now handles Gross and Net prices for attributes.
Use previous version if you do not need to taxe attributes.
At the bottom of the categories.php file, in the same form than products creation/update, added a few forms items :
It lists option name with each option values associated, and input for + or - and for option price.
I hope this can help ;)
Benjamin
This is the good file, dreamweaver broked the links at last save.
bcdev contrib - Add Attributes to categories.php
Note:
This contribution add checkboxes in the categories.php file into Administration Panel, so then you create/modify a product, you can add/remove attributes much faster than one-by-one.
It is useful if you have many products with similar attributes (families and/or values)
To appear, the attributes must have been added with the Products Attributes tool already present.
This is my first contrib, I hope this help you.
Benjamin
Note: Contributions are used at own risk.