Banned
- Join Date:
- Jun 2004
- Posts:
- 40
- Plugin Contributions:
- 0
Stock For Product With Different Attributes (OLD)

Just packaging it up now :)
Views: 80,694
Banned

Just packaging it up now :)
Banned
Description:
This module allows one to keep track of individual stocks of a product variant. 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 with an unlimited amount of attributes so you could have green, small, cotton shirts.
Download here:
http://1-2-3-direct.com/forum_stuff/produc...butes_stock.zip
New Zenner
dear dafonz
it will be a great module but can you tell me the differece between it and the "Attributes by stock" module by milosh , can they work together or their will be conflicts in that
Banned
ah_salama:
dear dafonz
it will be a great module but can you tell me the differece between it and the "Attributes by stock" module by milosh , can they work together or their will be conflicts in that
Can't speak for whether or not they work together (I'm guessing likely not), but this allows you to have finer control over the stock.
For example, with milosh's module, you can specify number of each attribute.. so it could be 5 black and 5 blue and 3 medium and 7 small.
Problem is, you don't know what is what. Is it 3 medium blacks or 3 medium blues? You don't know.
With this module, you can specify different stock ids..
so
3 medium blacks
2 small blacks
5 small blues
Zen Follower
This is a really dumb question, but where do I go to add attribute stock? I can't figure out where to use this addon.
Banned
cslhypnotech:
This is a really dumb question, but where do I go to add attribute stock? I can't figure out where to use this addon.
Catalog > Products with Attributes stock
Zen Follower
I checked the files for consistency using Winmerge, installed the tables, uploaded the files, and I'm not seeing this option.. I'll check my files again, any ideas?
New Zenner
I'm having the same problem, I uploaded all the files, ran the query etc and it doesn't give me that option under my catalog.
Banned
My bad.. I left out a file!
You'll need to edit admin/includes/boxes/catalog_dhtml.php and add this line (whereever you want)
// Edit
$za_contents[] = array('text' => BOX_CATALOG_PRODUCTS_WITH_ATTRIBUTES_STOCK, 'link' => zen_href_link(FILENAME_PRODUCTS_WITH_ATTRIBUTES_STOCK, '', 'NONSSL'));
// end edit
Updated the zip to reflect that. Sorry about that guys!
Zen Follower
Thanks :) appears to be working perfectly!
Deceased
Better way -- create file admin/includes/boxes/extra_boxes/products_with_attributes_stock_catalog_dhtml.php with this code:
<?php
$za_contents[] = array('text' => BOX_CATALOG_PRODUCTS_WITH_ATTRIBUTES_STOCK, 'link' => zen_href_link(FILENAME_PRODUCTS_WITH_ATTRIBUTES_STOCK, '', 'NONSSL'));
?>
Banned
Hi wonderfullymade (just trying to consolidate everything.. responding to this post)
http://www.zen-cart.com/modules/ipb/index....showtopic=36921
Did you check your boxes? You can either edit this file here
admin/includes/boxes/catalog_dhtml.php and add
// Edit
$za_contents[] = array('text' => BOX_CATALOG_PRODUCTS_WITH_ATTRIBUTES_STOCK, 'link' => zen_href_link(FILENAME_PRODUCTS_WITH_ATTRIBUTES_STOCK, '', 'NONSSL'));
// end edit
or refer to the post by a_berezin with using the overrirdes. I just prefer editing the file directly as I can place the link where I want it to in the menu
Deceased
dafonz:
I just prefer editing the file directly as I can place the link where I want it to in the menu
Yes! I use the digit prefix in filenames for that. ;)
New Zenner
Thanks!! That worked! Now I have to figure out how to get molish (I think it was) contrib that wasn't what I needed out of my system (sigh) I didn't back up, but my store isn't live or advertised yet so I have time to work on it.
New Zenner
::tup ::tup
installed it, works fine!
Zen Follower
Does this mod correctly decriment stock #'s per attribute when orders are placed?
Banned
afx114:
Does this mod correctly decriment stock #'s per attribute when orders are placed?
You bet
Zen Follower
Hi,
Great contribution, Thanks.
I have noticed that when deleting an order the stock is not added back in, should it?
Thanks
Zen Follower
I have yet to add any modules to my cart. I am working through things as I come to them, but I have a lot to learn about webspace in general, including Zen Cart.
There are plenty of references throughout the forums to "backup before making major changes" and "test this thoroughly before going live."
How do y'all test something before going live? Once in business your website is live 24/7. So where does the testing happen?
Bet ya weren't expecting such a bare basics kinda question :)
The Newbie,
Audra
Banned
longstockings:
Hi,
Great contribution, Thanks.
I have noticed that when deleting an order the stock is not added back in, should it?
Thanks
Nope.. you'd have to make that yourself I think. I don't like the idea of deleting orders because logging everything is good...
Fields marked required must be completed.
Tell staff why this post should be reviewed.