News:

Looking for documentation? Take a look on our wiki

Main Menu

Copying also Category and Manufacturer to child products

Started by balai, November 12, 2014, 13:23:00 PM

Previous topic - Next topic

balai

Hi

I like the setting added in VM3 "Show uncategorised child products in search results and modules". This gives the opportunity to search into the child products as well.

Though it would be good to go 1 step further. What if we want to get the child products based on category or manufacturer?

I though that it would be great for the child products, to get (as a db record) also the category and the manufacturer from their parent.
Then it would be up to the shop admin to display them in the categories and the results by a setting.
So the child products will be displayed or not based on the product_parent_id field of a product.

If you agree on that i can prepare a patch

Milbo

You can already do this. Just give your child a category.

child products get the category and manufacturer of their parent already!
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

balai

But i have to visit each child to assign a category and manuf manually.
Also if i assign a category it is always displayed in the category page. No?

Milbo

Bulk associate? The command is there.

Yes it is always displayed in the category page. I am sorry, I think I dont get your idea.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

balai

Thanks for the info

The idea is that some people may want the child products displayed in category pages other don't.
But having category and manufacturer can help tracking them both the front-end and back-end, many times.

I am thinking the child product as a clone of the parent by having some differences i.e name, price, stock and inheriting all the other attributes (description, image, category, manufacturer)

CE WebDesign München

just an idea:

add option "Show child products in category/manufacturer views" next to
"Show ('uncategorised' - this will not be needed then) child products in search results and modules"
so child products can have one or more categories...

(and/or add this option per category and/or per parent product as override...)
CE WebDesign München: https://ce-webdesign.de | Websites, eCommerce WebShops | Responsive Design | SEO

Milbo

No the setting for that is to add a category to the product.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

CE WebDesign München

yes. and my idea would change this. no more need to 'uncategorise' in the first place. more like real world (little green shoe is still a shoe).
control view by aditional checkbox and not by category/no category. problem is backwards compatibility?
CE WebDesign München: https://ce-webdesign.de | Websites, eCommerce WebShops | Responsive Design | SEO

moonaway

Hi, Max. What about this idea? It's very important...
VM3.0.0 testing: http://store.c-site.ru/

Milbo

The problem is the performance and that it is from my point of view redundant.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

balai

Max can we set a setting to return the products based on being parents/children or both after selecting a category/manufacturer?

There is a high demand from some shop owners to return both the parent and the child products based on the selected criteria after a search but display only parent products in the category pages.
The only way i can think to figure this out, is to set categories/manufacturers to all the products but i am missing how to display only parent products to the category pages.

studio42

Hi,
I think the new solution you think is bad because you have 2 choice for childrens :
- using parent as model
- as variant.

If you need as variant then you don't want that the categories are copied from parent, or at end you see all variants in shop, and you have to remove the categories in each child. Exactly the opposite
This change completly the  current logic.
free virtuemart tools : shop.st42.fr

Milbo

Thank you Patrick

Quote from: balai on November 12, 2014, 13:31:42 PM
But i have to visit each child to assign a category and manuf manually.
Also if i assign a category it is always displayed in the category page. No?

I think there is the misunderstanding. If you edit a child, you do not see a category, because it gets the category of the parent. If you use for example the multivariant or dynamich child variant, then you will notice that your child products have the categories, for the canonical link and calc rules.
If you set the categories to the child addtionally, then you have the child in the browse view. It becomes browseable.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

balai

Thanks for the reply
Actually what needed is not related with the use of the categories. I can handle that.

The most important thing is how to display only parent products, in the category page when both parent and child products have categories assigned.
I suppose that this can be done with a simple setting which will add an additional where clause concerning the product_parent_id of the displayed products

Studio 42

Hi,
I don't understand your problem.

If you add categories on child, then you see child in this categories only, or not ?