Page 1 of 1

[Free]Displays all subcategories in category module

Posted: Sat Jan 19, 2013 3:49 am
by ChetanCx
By default opencart's category module shows only top categories and sub categories of active category. This VQmod shows all sub-categories in category module.

This is designed for default opencart template and might not work with other templates.

not very useful if you have lot of subcategories

Download it from here :
http://www.opencart.com/index.php?route ... n_id=10123

Re: [Free]Displays all subcategories in category module

Posted: Fri Feb 08, 2013 9:24 pm
by ChetanCx
Updated for 1.5.5.x

Re: [Free]Displays all subcategories in category module

Posted: Tue Mar 05, 2013 8:32 pm
by zombiee
Hey Chetan, Nice mod,
Any way to make it show subcategories from a specific category for OC 1.5.4?

Re: [Free]Displays all subcategories in category module

Posted: Mon Mar 18, 2013 4:57 am
by bobmartinusa
Hi Chetan, I am using 1.5.5.1 and have uploaded the vqmod file but i am still unable to see the sub-category images

Re: [Free]Displays all subcategories in category module

Posted: Mon Mar 18, 2013 6:16 pm
by ChetanCx
bobmartinusa wrote:Hi Chetan, I am using 1.5.5.1 and have uploaded the vqmod file but i am still unable to see the sub-category images
this vqmod is not supposed to that .. it just expands the category sidebar to show sub categories of all categories ...

Re: [Free]Displays all subcategories in category module

Posted: Mon Mar 18, 2013 8:34 pm
by i2Paq
bobmartinusa wrote:Hi Chetan, I am using 1.5.5.1 and have uploaded the vqmod file but i am still unable to see the sub-category images
You need the attached vQmod ;)

Re: [Free]Displays all subcategories in category module

Posted: Thu May 02, 2013 5:08 am
by jamiehellen
Hello there,

Thanks for this. It was (almost!) just what I was looking for.

How do I make it so it shows all child categories as well. I am basically looking to display the entire category tree.

I'll buy you a beer if you can do this ;-)

~ Jamie

Re: [Free]Displays all subcategories in category module

Posted: Fri May 10, 2013 9:25 pm
by matteoraggi
both that 2 sites have opencart 1.5.5.1 installed and default theme, but on one is all rioght and the other don't change..
http://www.egioiellerie.com/
http://www.etetti.eu/compra/
How I can understand why on egioiellerie.com this vqmod desn't work?

Re: [Free]Displays all subcategories in category module

Posted: Sat May 11, 2013 7:21 am
by ChetanCx
http://www.egioiellerie.com/ didn't had vqmod installed , i installed it by url http://www.egioiellerie.com/vqmod/install
now both are working as expected :)

Re: [Free]Displays all subcategories in category module

Posted: Tue Aug 20, 2013 4:55 am
by Yam
Hi. Does this work for the dropdown menu too? I want the sub/ sub category to display in the dropdown menu
Thanks, Craig.

Re: [Free]Displays all subcategories in category module

Posted: Tue Nov 26, 2013 10:40 pm
by lxtnsv
Hi, i installed your extension on opencart 1.5.5.1 and 1.5.6, but i get the same error in both versions :

Code: Select all

 Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\Singartysilver\vqmod\vqcache\vq2-catalog_view_theme_sellya_template_module_category.tpl on line 135
I am using Sellya theme for opencart. Please help me to fix it i really need to get this work.

Thank you.

Re: [Free]Displays all subcategories in category module

Posted: Tue Sep 09, 2014 8:03 am
by brandon-leudke
How I made this extension compatible with my install of OpenCart 1.5.6.1 & VQMod 2.4.1


Code: Select all

<!-- "Display all subcategories on category module" created by Chetan Paliwal ( ChetanCx on opencart Community forums: http://www.opencart.com/index.php?route=extension/extension/info&extension_id=10123

	Modified by Brandon Leudke, September 8, 2014, as per: https://code.google.com/p/vqmod/wiki/Scripting

	- to make compatible with my install of OpenCart 1.5.6.1 & VQMod 2.4.1
	
	Changelog:

	- removed a few lines of code from category.tpl (span, etc.)
	- changed the offset value to 35 to match the number of lines of code in the original category.tpl

-->
<modification>
	<id>Display all subcategories on category module</id>
	<version>1.1></version>
	<vqmver>2.2.1></vqmver>
	<author>Chetan Paliwal ( ChetanCx on OC  community forums)</author>
	<file name="catalog/view/theme/*/template/module/category.tpl"  error="skip">
		<operation>
			<search position="replace" offset="35"><![CDATA[<div class="box">]]></search>
			<add><![CDATA[<div class="box">
  <div class="box-heading"><?php echo $heading_title; ?></div>
  <div class="strip-line"></div>
  <div class="box-content box-category">
    <ul class="accordion" id="accordion-category">
      <?php $i = 0; foreach ($categories as $category) { $i++; ?>
      <li class="accordion">
        <?php if ($category['category_id'] == $category_id) { ?>
        <a href="<?php echo $category['href']; ?>" class="active"><?php echo $category['name']; ?></a>
        <?php } else { ?>
        <a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
        <?php } ?>
        <?php if ($category['children']) { ?>
        <?php if(!empty($category['children'])) { ?>
        <div id="category<?php echo $i; ?>" class="panel-collapse collapse in" style="clear:both">
        	<ul>
		       <?php foreach ($category['children'] as $child) { ?>
		        <li>
		         <?php if ($child['category_id'] == $child_id) { ?>
		         <a href="<?php echo $child['href']; ?>" class="active"><?php echo $child['name']; ?></a>
		         <?php } else { ?>
		         <a href="<?php echo $child['href']; ?>"><?php echo $child['name']; ?></a>
		         <?php } ?>
		        </li>
		       <?php } ?>
	        </ul>
        </div>
        <?php } ?>
        <?php } ?>
      </li>
      <?php } ?>
    </ul>
  </div>
</div>]]></add>
		</operation>
	</file>
</modification>
[/color]