VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: cehl on May 09, 2013, 01:09:20 AM

Title: Problem module categories
Post by: cehl on May 09, 2013, 01:09:20 AM
Hi, I have tried by all means delete the module "Categories" of virtuemart but I can not. I edited the file: components \ com_virtuemart \ views \ virtuemart \ tmpl \ of fault.php and commented this line:
/ * If ($ this-> categories) echo $ this-> LoadTemplate ('categories') * /

but I can not delete the module, please help!
Title: Re: Problem module categories
Post by: jenkinhill on May 09, 2013, 09:48:01 AM
Unpublish the module in Joomla's Module Manager.
Title: Re: Problem module categories
Post by: cehl on May 09, 2013, 11:57:19 AM
Hi, I haven't module in the category in joomla modules manager, I have unpublished all joomla modules for testing and still appears, I think it is problem of virtuemart, the option "show categories" ignores me, select the option or not select, it always appears in the category module.
Title: Re: Problem module categories
Post by: jenkinhill on May 10, 2013, 11:37:22 AM
Do you actually mean "modules" or something else. The word modules is a very specific term and should only be applied to actual Joomla modules. eg mod_virtuemart_category or mod_weblinks
Title: Re: Problem module categories
Post by: cehl on May 10, 2013, 18:40:30 PM
Hello, first thanks for your attention, it's actually an option that appears going to components -> virtuemart -> configuration -> templates. Appears an option "SOHW categories" on the right. I deselected this option but I still see ... so i searched the forums and wanted to play the virtuemart code if I can not appear but do not work ...

I leave you my page to see it and understand it better, is the "module" below: www.jsm-informatica.com
Title: Re: Problem module categories
Post by: jenkinhill on May 10, 2013, 20:26:35 PM
So it is nothing al all to do with modules.

That home page looks like you are using template overrides -  a commercial template theme?  The default (supplied) VirtueMart homepage template contains the following code to decide if categories should be shown.

if ($this->categories and VmConfig::get('show_categories', 1)) echo $this->loadTemplate('categories');
Title: Re: Problem module categories
Post by: cehl on May 11, 2013, 15:52:34 PM
If it's a commercial template. I went to the template php file in / templates / (template_name) / html / com_virtuemart / virtuemart / default.php and had this:
if ($ this-> categories) echo $ this-> LoadTemplate ('categories');
and I've changed what you said:
if ($ this-> categories and VmConfig :: get ('show_categories', 1)) echo $ this-> LoadTemplate ('categories');

And it works! I'm really grateful, I was going crazy!
Thank you very much  ;D