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

Is Manufacturer inherited in child products?

Started by EvanGR, October 25, 2019, 14:13:43 PM

Previous topic - Next topic

EvanGR

My child products (batch created via a script), do not seem to inherit the Manufacturer field set in the Parent (other properties like images, descriptions etc, work as expected).
Is it supposed to work this way, or have I done something wrong?

Thanks

Jörgen

It should inherit the manufacturer field in almost the same way. But this is not visible in the product editing view, but it should show in the details page in FE.

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

EvanGR

Unfortunately, manufacturer doesn't seem to be inherited here... (see attached image for back-end, also similar in the front-end)

Other fields, such as price, are inherited properly.

Virtuemart 3.6.3 10177

Jörgen

QuoteBut this is not visible in the product editing view, but it should show in the details page in FE.
Have You checked the FE ?

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

EvanGR

After some tweaking, I got it to work, at least partially...

Child products DO show the (inherited) manufacturer in the frontend.

However, when I click to go to the manufacturer page, it does not show any of those products.

In other words, the child products which inherited the Manufacturer from their parent, are not listed in the Manufacturer page.


Jörgen

#5
I think You have a setting for also showing child products in search, but of course this also reflects how search is shown in other places. You could try this in configuration.

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

Studio 42

The logic is same as categories.
You can get the parent products category and manufacturer; but this is only an information.
If you search by category you dont see the childs products too.

EvanGR

This sounds like a bad logic for child products. At least the way I use them...

A parent product is just a 'template' for the child products. The parent is unpublished, only the child products exist for the user.
Therefore this hierarchy is only for convenience, not for organizational purposes.

Studio 42

I know that in some case it's not the best solution, but now suppose you have 4 levels of children, imagine the query to get the manufacturer for search ?
If you really need it, then add the manufacturer in child.

EvanGR

Correct... The performance hit would be significant.
But (I would assume that) anything beyond a 2-level hierarchy is an uncommon scenario in real world?

A great way to work with this is to inherit manufacturer (and other missing fields) from the direct parent only.
That should be a good compromise between real world usage and performance.