VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: patben on November 30, 2013, 19:53:01 PM

Title: Hide products from a specific category in search view
Post by: patben on November 30, 2013, 19:53:01 PM
Is possible to hide products from a specific category in search view, and if it is how?

Thank you.
Title: Re: Hide products from a specific category in search view
Post by: patben on December 05, 2013, 20:46:37 PM
any idea?
Title: Re: Hide products from a specific category in search view
Post by: balai on December 06, 2013, 10:38:07 AM
Did you try unpublishing the category?
Title: Re: Hide products from a specific category in search view
Post by: patben on December 06, 2013, 12:43:24 PM
Yes the category is unpublished
Title: Re: Hide products from a specific category in search view
Post by: jenkinhill on December 06, 2013, 13:02:55 PM
Products can only be hidden if they themselves are unpublished. See http://forum.virtuemart.net/index.php?topic=120726.0
Title: Re: Hide products from a specific category in search view
Post by: patben on December 06, 2013, 17:51:41 PM
Yes i know but I use this products with some virtuemart plugins so i cant unpublished them.
Title: Re: Hide products from a specific category in search view
Post by: patben on December 08, 2013, 13:59:27 PM
It is not possible to hide them?
Title: Re: Hide products from a specific category in search view
Post by: GJC Web Design on December 08, 2013, 15:13:05 PM
Natively not in VM if they are published - as it is a very odd and specific request so why would it have been coded?

You would need to hack the product model somehow to exclude them - this si where the search results are produced..
Title: Re: Hide products from a specific category in search view
Post by: patben on December 08, 2013, 16:40:27 PM
Ok, thank for the information. Any help about the product model hack would be welcome.
Title: Re: Hide products from a specific category in search view
Post by: GJC Web Design on December 08, 2013, 17:16:20 PM
It is a very complex file but basically you need to drop the product ids from the result of function getProductListing() around line 1281