VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: Csabesz on December 12, 2014, 13:20:07 PM

Title: Exclude categories in latest product module
Post by: Csabesz on December 12, 2014, 13:20:07 PM
how can I exclude showing the products from specific categories in latest product module.

like I have category ID 12, 13, 14, 15 and 16.

I don't want to show Category 15.

In the latest product module, there is filed called "Category" - this is for select one single category but I need to exclude one single category.

Any help will be greatly appreciated!
Title: Re: Exclude categories in latest product module
Post by: Csabesz on December 15, 2014, 07:47:48 AM
I know it`s not possible with simple configuration settings but I don`t know where and what need to modified to exclude one category, so that is the cause why I need someones help :)
Title: Re: Exclude categories in latest product module
Post by: GJC Web Design on December 15, 2014, 21:03:01 PM
the module ultimately uses the product model function sortSearchListQuery() which only accepts one cat id -- so no simple solution

either make your own query in the  modules\mod_virtuemart_product\mod_virtuemart_product.php or loop thru the result and exclude any from the cat u don't want?