News:

Looking for documentation? Take a look on our wiki

Main Menu

Questions with stock management andchilds products

Started by toonetcreation, August 07, 2012, 16:27:07 PM

Previous topic - Next topic

toonetcreation

Hello all,

I have read this topic http://forum.virtuemart.net/index.php?topic=100480.135 but I'm sorry it's not completely clear for me.

My need is very easy (I think): I just want to know how works stock management with "VM Custom, stockable variants" plugin ?

I know that I can use child products, but the stock level does not decrease on the parent product.

Someone can confirm if I'm right or not with this?

If I want to manage my stock for each size for a product (e.g: tee shirt in S, M and L size) I have to:

- create the main product
- create childs products (one for each size, so 3 childs)
- link them to the main product
- create a custom field called for example options (Products -> Custom Fields -> New -> Custom Field Type = plug-ins AND plug-in = VM - Custom, stockable variants) with option name 1, option name 2, option name 3 and option name 4
- go to my main product -> tab Custom fields -> then I add the custom field created before with all the size (see attached file called custom-field.jpg)

Questions:

- -Am I right ?
- Do I have to check the boxes called Parent Variant  (see attached file called custom-field.jpg) ?
- on main product, on the tab Product status, do I have to fill in In stock and Low Stock Notification fields? or is it on childs products?
- on childs products, on the tab Product status, do I have to fill in In stock and Low Stock Notification fields? or is it only on main product?

Do you know also how to display child product stock level on the parent product details page?

If I add this code <?php echo $this->product->product_in_stock ?> on the parent product details page, I can only display the parent product stock level instead of child product stock level.

Thanks in advance for your help.
Have a nice day

Laurent


jeoff

Hi Laurent,

I am working on the same setup. It all looks OK in the shop BUT:

I experience the problem that if one of the child items is out of stock (say Size Medium), I can't add any other sizes in my cart because it says it is out of stock (so also Small and Large). And I double-checked the child items Small and Large that the stock is not 0.

Do you have this problem also?

toonetcreation

No I have not this problem.

But check if your stock is correctly manaed at child level and not parent level.

jeoff

Ok thanks for the tip. I set the parent product stock to 0 and that solved my problem.