Stock by Attributes
This add-on allows a store owner to set a stock value for each variant of a product. For example, if you have three sizes, large, medium and small, this module will allow you to keep track of all the different quantities. It will work for a virtually unlimited number of amount of attribute combinations. For example, if you offered cotton or polyester shirts in green, red or blue and small medium or large sizes, this add-on would allow you to enter and maintain a separate stock level for each of the 18 possible combinations. For latest code see the Github repository link to the right. This version is unlikely to work in versions of Zen Cart prior to 1.3.5. If you are running Zen Cart 1.2.5-1.2.7d, please use the "products_with_attributes_stock" add-on by dafonz. If you are using versions 1.3.0 - 1.3.0.2 please use "Stock Attributes by danielcor". |
![]() |
v1.5.1 |
![]() |
kuroi |
![]() |
potteryhouse - 13 Feb 2014 |
![]() |
40,691 |
Version History
Stock by Attributes - Version: 1.5.3 | |||||||||||||
This version supports "Multiple-Attribute-Combinations" i.e., allows for multiple attributes for a product in the SAME Stock ROW on the SBA stock page, thus you can create custom combinations with specific quantities. It also corrects some display issues, and returns language files previously removed. See change log and Instructions. This version should work as follows: Product with no associated attributes, uses the quantity assigned to the product in the catalog. Product with Attribute(s), If no attribute is created in the SBA Stock page, will use the quantity from the product catalog. Product with Attribute(s), and attributes are created in the SBA stock page, uses the quantity from the SBA Stock page. |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 1.5.2 | |||||||||||||
This update Ports (merged) the functionality from: http://www.zen-cart.com/downloads.php?do=file&id=1355 stock_by_attributes_1.4.13_with_my_stock_id_MOD version 1.0.2 by rhuseby. The updated adds a unique "Item ID" (customid) for each attribute of a product, the new customid field is optional. Switch added to allow display of the new customid field on the applicable pages. In addition to the customid field, there are several usability enhancements and the 'legacy' folder was removed. Instructions updated and a new SQL file (Instructions\InstallSQLcommands.txt) is provided that contains the "raw" sql commands for reference. |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 1.5.1.2 | |||||||||||||
Most files have been Updated, installation script completely rewritten and now located in the admin folder, ajax folder moved, and two files merged (replaced by one file). Added new users guide (found in the Instructions folder). These changes support bug fixes, enhancing existing features and adding new features. Please see the file Updates.txt for a list of changes and Instructions for usage details and the new functionality. |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 1.5.1.1 | |||||||||||||
Update for stock_by_attribute version 1.5.1, Resolves a display issue with the way the price 'strike through' was implemented and adds an option switch to turn this new display option off. See Updates.txt and Usage.txt for more info. |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 1.5.1 | |||||||||||||
See files 'Updates.txt', 'Usage.txt', and 'Optional.sql' for change details. Updated the following files to resolve bugs and to add an ability for showing option values as out of stock, attribute qty, and stock of products without attributes in cart. File updated to support Zen Cart version 1.5.1 admin\includes\functions\general.php File (Zen Cart version 1.5.1) added to support new functionality includes\modules\attributes.php File updated to fix bugs and support new functionality. Details in 'Updates.txt' admin\includes\classes\products_with_attributes_stock.php admin\includes\functions\general.php includes\extra_datafiles\products_with_attributes_stock_database_tables.php includes\languages\english\extra_definitions\products_with_attributes.php includes\modules\attributes.php includes\modules\pages\shopping_cart\header_php.php includes\templates\YOUR_TEMPLATE\templates\tpl_shopping_cart_default.php stock_by_attr_install.php stock_by_attr_uninstall.php New file Optional.sql, this will add entries into the new products_with_attributes_stock table based on current products that have attributes. By default it will set each of the new entries to the quantity found in the product entry. |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 1.5.0 | |||||||||||||
Added Install and Uninstall files Updated files to Zen 1.50 Fixed error that caused all products appearing after an out-of-stock product to also show as out of stock Moved all sql files to "legacy" folder (including sql upgrade for Zen 1.5) Removed "boxes" folder and files, they are no longer used Removed French and German language folders as they are empty |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 1.4.14 | |||||||||||||
This update fixes an XHTML error which causes the inline editing of quantities to not get saved. Only one file affected (see readme.html). | |||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 1.4.13 | |||||||||||||
Fix for includes/modules/pages/shopping_cart/header_php.php | |||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 1.4.12 | |||||||||||||
Merges with 1.3.9h and documentation cleanup. No functional changes. | |||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 1.4.11 | |||||||||||||
- fixed bug in the stock by attribute search; - updated core files for 1.3.9d; |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 1.4.10 | |||||||||||||
This update fixes some obvious bugs in the module as well as adds some new features: - fixed ability to update multiple stock attributes at once (use "save" button at top or bottom of page); - corrected bug if using the search function before the page has loaded; - added a "Reset" link in replace of the "View All" button; - add a "Sort" link to auto sort all stock attributes in order of the primary attributes sort order; - made the product's image thumbnail optional and controllable from the admin; - automatically removes stock attributes if an attribute is removed from a product (requires manual refresh); Note: this update includes a SQL file for updating your database to be able to control the product's image thumbnail as well as add the sort order. |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 1.4.9 | |||||||||||||
*Re-Styled and re-organized the main admin display page and added a small thumbnail. *Updated search function with a 'View All' button |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 1.4.8 | |||||||||||||
- added missing order class from 4.7AJAX; - added feature to quickly resync all quantities at once; |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 4.7ajax | |||||||||||||
Amendments from 4.7 to 4.7ajax added ajax functionality * search filter: "%ma" filters all produchts with "ma" in products-name or in products-model; the search value will be stored in a cookie * a click at the "quantity in stock" value adds an input-field & you can enter the new value; the store button saves all changed values * added files in /ajax folder * changed products_with_attributes_stock.php * added products_with_attributes_stock_ajax.php you can see it in action at :: http://demo.zen-cart.at/index.php?main_page=page&id=26 |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 4.7MULTIADD | |||||||||||||
I modified the admin/products_with_attributes_stock.php file so that you can add ALL attributes for any available attributes with a product. If you have more 1 or 2 attributes, this will be a huge time saver. (This one includes the full fileset) |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 4.7MULTIADD | |||||||||||||
I modified the admin/products_with_attributes_stock.php file so that you can add ALL attributes for any available attributes with a product. If you have more 1 or 2 attributes, this will be a huge time saver. | |||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 4.7 | |||||||||||||
This is a maintenance release that incorporating changes made for Zen Cart 1.3.8. There are no functional enhancements. | |||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 4.6 | |||||||||||||
This version of the add-on allows you to choose on a product-by-product basis whether you wish to maintain stock figures at product level or attribute level. See the readme or the wiki entry for more details. This version is compatible with Zen Cart releases 1.3.7 and 1.3.7.1, |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 4.5 | |||||||||||||
Updated specifically for 1.3.7.1, this release includes the 1.3.7.1 security fixes that apply to the files changed for this mod; the readme file has been beefed up a little; and there is some other tidying at the edges, but no significant new functionality. | |||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 4.4 | |||||||||||||
This version of stock by attributes keeps it consistent with changes made for Zen Cart 1.3.7. | |||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 4.3.1 | |||||||||||||
Fixes minor bug. Not clear if it actually has any functional implications or not, but let's play it safe (my thanks to Frank for spotting it). | |||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 4.3 | |||||||||||||
This is a maintenance release. It incorporates all changes needed to keep the 6 core Zen Cart files that are changed in line with base Zen Cart. In particular it adds in a number of security fixes that were included in Zen Cart 1.3.6. There is also one small bug fix to eliminate a hard-coded reference to "Quantity" in English on the add variant quantity screen. |
|||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 4.2 | |||||||||||||
This is a maintenance release. It fixes one bug introduced with version 4.0 and one carried forward from earlier variants and improves alignment on the stock page. There's a brief explanation on the mod's wiki page and the readme file included in the release package. | |||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 4.1 | |||||||||||||
V4.1 adds in two Zen CArt 1.3.5 bug fixes, removes a diagnostic line and makes a syntactic correction to the SQL file. | |||||||||||||
|
|||||||||||||
Stock by Attributes - Version: 4.0 | |||||||||||||
This add-on allows a store owner to set a stock value for each variant of a product. For example, if you have three sizes, large, medium and small, this module will allow you to keep track of all the different quantities. It will work for a virtually unlimited number of amount of attribute combinations. For example, if you offered cotton or polyester shirts in green, red or blue and small medium or large sizes, this add-on would allow you to enter and maintain a separate stock level for each of the 18 possible combinations. This version is unlikely to work in versions of Zen Cart prior to 1.3.5. If you are running Zen Cart 1.2.5-1.2.7d, please use the "products_with_attributes_stock" add-on by dafonz. If you are using versions 1.3.0 - 1.3.0.2 please use "Stock Attributes by danielcor". |
|||||||||||||
|
|||||||||||||