VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: EvanGR on October 25, 2019, 14:13:43 PM

Title: Is Manufacturer inherited in child products?
Post by: EvanGR on October 25, 2019, 14:13:43 PM
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
Title: Re: Is Manufacturer inherited in child products?
Post by: Jörgen on October 25, 2019, 15:01:15 PM
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
Title: Re: Is Manufacturer inherited in child products?
Post by: EvanGR on October 25, 2019, 16:10:46 PM
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
Title: Re: Is Manufacturer inherited in child products?
Post by: Jörgen on October 25, 2019, 16:52:55 PM
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
Title: Re: Is Manufacturer inherited in child products?
Post by: EvanGR on December 23, 2019, 15:03:15 PM
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.

Title: Re: Is Manufacturer inherited in child products?
Post by: Jörgen on December 24, 2019, 09:59:37 AM
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
Title: Re: Is Manufacturer inherited in child products?
Post by: Studio 42 on December 24, 2019, 10:00:04 AM
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.
Title: Re: Is Manufacturer inherited in child products?
Post by: EvanGR on December 24, 2019, 10:45:12 AM
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.
Title: Re: Is Manufacturer inherited in child products?
Post by: Studio 42 on December 24, 2019, 10:50:58 AM
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.
Title: Re: Is Manufacturer inherited in child products?
Post by: EvanGR on December 24, 2019, 11:00:22 AM
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.