News:

Looking for documentation? Take a look on our wiki

Main Menu

Exclude categories in latest product module

Started by Csabesz, December 12, 2014, 13:20:07 PM

Previous topic - Next topic

Csabesz

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!

Csabesz

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 :)

GJC Web Design

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?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation