News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Stock Control with one Main Product to Children

Started by MAD King, June 19, 2016, 15:31:05 PM

Previous topic - Next topic

MAD King

Hello,

does anyone know if this is possible?

I have a main product, let's say an aluminum plate which I use for 5 different products.
Of these aluminum plates I have 10 in stock
What I would like to do is, to add these 10 plates to, and I do not know if this is the right term, something like a parent and assign 5 children (products) as different products to it so that all 5 children (products) show 10 plates in stock.

Now, when a customer orders one plate it should reduce the amount of plates which are in stock to 9 on all 5 children (products).

Is this possible and if so, how?

Thank you



VirtueMart 3.0.9
Joomla! 3.5.1 Stable
Joomla! 4.3.4
VirtueMart 4.2.4 10922

Jörgen

If You use custom attribues to define the variants it will work as you want. The custom attributes don´t use Children and use the same stock. Define the attributes as cart item and look at the demo page for more examples.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

MAD King

Thank you Jörgen.

So, all products have to be parents? But how do I assign the attributes to each of them? It was clear with VM 1x, but with 3 it is a little bit more complicated.
Joomla! 4.3.4
VirtueMart 4.2.4 10922

Jörgen

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

MAD King

Thank you, but I saw that already and there is nothing on it, except

A handy list of all product with inventory levels shown. Sort by clicking any of the headers. Unpublish so customers cannot see this item by clicking the green checkmark in the PUBLISHED Column.


https://docs.virtuemart.net/manual/products-menu/inventory.html
Joomla! 4.3.4
VirtueMart 4.2.4 10922

jenkinhill

Quote from: MAD King on June 20, 2016, 18:41:03 PM
But how do I assign the attributes to each of them?

You can assign custom fields to a group and assign the group to each product.

Also http://docs.virtuemart.net/manual/general-concepts/212-customfields.html
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Jörgen

The documentation is there, You just have to look around. I showed You the book, but You have to read it Yourself :)

As Jenkins sais grouping can be a good idea. But grouping customfields into groups has it's diasadvantages. Any custom field name for example "diameter" can only be in one group at a time. If You create customfield groups think hard first.

You can also make unpublished products that You can use as templates with the custom fields You need.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

MAD King

Thank you. I hope I will figure it out, somehow.
Joomla! 4.3.4
VirtueMart 4.2.4 10922