Hello, i need to hide childs products from category view, i know that if you dont categorize them they will not appear, the thing is thay i installed a plug in to filter by size the child products, and only show parents.
For example, user can search Boxer--then size medium. In the search results there will be only the parents wich have available and in stock child size medium.
For this plugin to search in the category boxers, i need to add the childs to this category, so that why in the category view childs are noww showing up.
I just google a little bit and it seems that in flexible_darkmart/html/com_virtuemart/category/default.php i can hack some code in order to hide the childs. But i really don't know what to move.
There is a parameter in the VM Backend, which is this: "Show uncategorised child products in search results and modules?".
I guess you had to enable that. Furthermore, in the normal conditions, the child products shouldn't have any category. Because they are not standalone products. But apparently you need to choose a "category" for difference purposes.
Anyway, what you need to do is applying some coding hacks to category PHP file templates/flexible_darkmart/html/com_virtuemart/category/default.php
to check if the product is parent or child; if it is a child, hide it.
This is a 100% custom coding modification and unfortunately we don't provide free support or step-by-step instructions for custom coding modifications.