VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: divined on July 13, 2017, 11:18:54 AM

Title: Custom product category view
Post by: divined on July 13, 2017, 11:18:54 AM
Hello everybody

I have this problem with my site that I'm building. Specifically, I would like to display only the product categories and not the products per se on my initial product category view. Can this be done through the CMS or do I need to do some coding?

Site URL: www.gpb.gr
Title: Re: Custom product category view
Post by: jenkinhill on July 13, 2017, 12:35:41 PM
Versions?  http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: Custom product category view
Post by: divined on July 13, 2017, 12:47:35 PM
Sorry for not providing my Jooma and Virtuemart versions. Here are the data:

joomla: 3.7.2
virtuemarkt: 3.2.2
php: 7.0.19
Title: Re: Custom product category view
Post by: jenkinhill on July 13, 2017, 13:54:35 PM
OK, the configuration options in 3.2.2 are different form older versions.

For the order of configuration priority see  http://forum.virtuemart.net/index.php?topic=137598.0

There is an option "Show products of the selected category" in VM Configuation/Templates, on the settings tabs in the Joomla menu config for the store and on the Product Category Form for each individual category.  In addition display can be changed by the use of template overrides.   Plenty of options to choose from!
Title: Re: Custom product category view
Post by: divined on July 14, 2017, 07:43:31 AM
Thank you for the reply

I tried these options ('Show products for related categories') and they do work for the various categories pages. What about though the root product category page? I still get a list of all my products regardless of category.
Title: Re: Custom product category view
Post by: jenkinhill on July 14, 2017, 12:20:23 PM
ON my sites I usually I don't show any products on the homepage except for featured & latest. The image shows the settings used for the menu item.  This is using the default VM templates, no overrides.

(https://image.ibb.co/jUtk4a/homemenu.png) (https://imgbb.com/)
Title: Re: Custom product category view
Post by: divined on July 15, 2017, 23:21:49 PM
Thank you very much

Your reply and associated image were very helpful!