I'm trying to sort out how the "stock" setting for subproduct attributes works.

For example, if I have a variation "Colour" and an attribute "White", what do I do if I have 3 white shirts and 5 white hats in stock? What should be the "stock" value for Colour -> White? How can I manage the number of each subproduct that I have in stock?

Thanks for any advice.

Comments

greg.harvey’s picture

Product variations create a node for each combination, which is a product with a stock field in it's own right. So when you create your "Hat" and "Shirt" products, you will have checked "White" in the variations bit which will have generated "Hat White" and Shirt White". Edit either one of these and change the stock levels.

That's a very old version you're using?

rvarkonyi’s picture

Hi greg,

my problem is that the variations only get created after I add an item to my cart. Before that I can only see the parent item so I cannot set up the inventory for each variation.

Can you please help

Thanks

greg.harvey’s picture

You parent product should have a subproducts tab above it when you view it as admin. All your subproducts should be listed there and each has it's own edit button.

rvarkonyi’s picture

Hi greg,

thanks for your reply!

Seems like that's my problem, the edit buttons don't appear there. So I cannot setup the stock amounts.

I am at parent products then click on Subproducts attributes tab, can see the list but can't edit the amounts.

Any ideas? Why they don't appear?

Thanks

greg.harvey’s picture

No, you EDIT the Subproduct - it is a node in it's own right - under that you will find a Stock field. Enter your stock number and save. Now your subproduct has stock.

rvarkonyi’s picture

Greg,

thanks for taking the time.

Seems like we've come back to the starting point. The subproduct nodes only get created AFTER i put a product with attributes in the cart. Say i have t-shirt with Color:black and Size:XL and XXL attributes. Normally I create the product first, then apply attributes. What I get is the parent product but not the subproducts created as nodes. So in order to setup say 2 XL and 3XXL t-shirts in the inventory first I have to put "color:black size:xl" and "color:black size:xxl" in the cart. Then they get created as nodes, then I'm able to setup the stock but it's not the right way. I understand what you're telling me but for some reason it is not happening. I can't go to the subproduct's edit form because the node itself is not created.

I really appreciate your help!

Thanks

greg.harvey’s picture

Hmm, I'm not following.

You create a product. You define your variations. AT THAT POINT your sub-products should be created as nodes. Browse to your master product, click on the "subproducts" tab and you should see a list of sub-products... title - status - view link - edit link. Click the edit link and you are editing the subproduct node - you can set stock here.

If you cannot follow the above steps, there is something wrong with your e-Commerce installation or you are using a version I am not familiar with. Either way, I can't help you further... =(

rvarkonyi’s picture

Hi greg,

thanks for still taking the time!

Seems like there is a problem with my database or something else, I'm quite sure I follow all the advices but still no luck. You mention a "Browse to your master product, click on the "subproducts" tab and you should see a list of sub-products... title - status - view link - edit link" --- now this is what I don't have at all. No subproducts tab there, no links. If you have time could you please attach a screenshot so at least I could see how it should look like.

Thanks again!

greg.harvey’s picture

Sure. PDF attached. Note, I start at viewing the master product as an admin with editing permissions. Ignore the PHP warnings... work in progress! ;-)

[EDIT] It pulled my attachment! =( [/EDIT]

rvarkonyi’s picture

OH NO!!!!

Can you attach a .png or .jpg????

Please please please!!!!

rvarkonyi’s picture

OH NO!!!!

Can you attach a .png or .jpg????

Please please please!!!!

rvarkonyi’s picture

Greg!

I just noticed something!

Flushed the whole database, reinstalled everything. Now first time the vocabularies were not created, I could only manage it by running the update script, somehow they appear now. What I noticed, I create the variations and they now appear on the front page as nodes. But they are only attributes and they're not "connected" with the product itself. I just don't know whether I'm getting closer or way too far... :)

Thx

greg.harvey’s picture

Ah, sounds better! Your front page is a river of content and each subproduct is a node, so it makes sense they appear on the front page. If I create a product with 6 subproducts, all 7 nodes will appear in the river of content.

There is no obvious relationship, but there is one behind the scenes. If you use the Views module (which is highly recommended) then you can filter on Master Product to not show the subproducts. print_r() the $node object of a Master Product and you can see how it stores the relationship to the children.

brmassa’s picture

Status: Active » Closed (won't fix)

Guys,

the eC 4 is about to be released and have the brand new Subproducts module, which i designed myself as an advanced module. This module wont get any development anymore.

regards,

massa