Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Joomla Virtuemart Template - DarkMart (SKU# FLEX-00011)

TOPIC: Hide Child products from category view

Hide Child products from category view 6 years 2 months ago #10013

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.

Please helppp! my site: www.sexyboy.mx
The administrator has disabled public write access.

Hide Child products from category view 6 years 2 months ago #10026

Hi,

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.

You may purchase premium support:
www.flexiblewebdesign.com/premium-support

and let us take care this modification for you directly on your website though.

By the way, did you see these topics:
forum.virtuemart.net/index.php?topic=103702.0
or forum.virtuemart.net/index.php?topic=115927.0

(i just found those topics through google.com, if you do some further investigation, i am sure you will find some other topics as well)

Regards.
Support
Last Edit: 6 years 2 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.068 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo