Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Common stock level for multiple products

Common stock level for multiple products

Views: 1,556

Results 1 to 6 of 6
20 Dec 2009, 9:15 PM
#1
phil020782 avatar

phil020782

Zen Follower

Join Date:
Jul 2007
Posts:
158
Plugin Contributions:
0

Common stock level for multiple products

I think what I am looking for is similar to stock by attributes but not quite the same.

Example.
If I have a category called clocks, in that category I have 2 sub categories called photo clocks and design clocks, in both sub categories there are blue, red, green, white and pink clocks.

I need a database table that has stock levels for the coloured clocks and then the products get their stock levels from the new table, so if I have 10 blue clocks, 8 green clocks and no other colours in stock. When a customer goes into photo clocks and clicks the blue clock product it shows 10 in stock, same if they go to desin clocks and click blue clock product, but when someone buys either of them the stock level for all blue clock products reduces to 9.

I hope that makes sense, it makes sense in my head but quite hard to explain, I hope someone can help with this or at least point me in the right direction of how to make a product consult a new table to get it's current stock level.

Thanks

21 Dec 2009, 7:23 AM
#2
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: Common stock level for multiple products

If it is the same product, you can link it, so that you dont have to manage it seperate. See the tutorial.

25 Dec 2009, 11:01 PM
#3
phil020782 avatar

phil020782

Zen Follower

Join Date:
Jul 2007
Posts:
158
Plugin Contributions:
0

Re: Common stock level for multiple products

It's not the same product but multiple products use the same raw materials (stock)

20 Jan 2010, 8:36 PM
#4
phil020782 avatar

phil020782

Zen Follower

Join Date:
Jul 2007
Posts:
158
Plugin Contributions:
0

Re: Common stock level for multiple products

Can anyone help me with this issue?

20 Jan 2010, 9:10 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Common stock level for multiple products

It probably shares aspects of code with Stock by Attributes, but would require a lot of new coding and database work. Nobody is likely to take this on unless they need it or they are being paid for it. Sorry...

6 Mar 2010, 9:04 AM
#6
phil020782 avatar

phil020782

Zen Follower

Join Date:
Jul 2007
Posts:
158
Plugin Contributions:
0

Re: Common stock level for multiple products

I might have an idea how to make this work if somebody could point me in the right direction. Which part of the code is responsible for checking if a product is at zero quantity or positive quantity and also which part of the code is responsible for deducting from the available quantity once an item has been purchased. If I knew where to find those two little bits, could I change it to look at a specific row of a new database table?

Thanks