Post by ChetanCx » Sat Jan 19, 2013 3:49 am

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

User avatar
Active Member

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by ChetanCx » Fri Feb 08, 2013 9:24 pm

Updated for 1.5.5.x

User avatar
Active Member

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by zombiee » Tue Mar 05, 2013 8:32 pm

Hey Chetan, Nice mod,
Any way to make it show subcategories from a specific category for OC 1.5.4?

Newbie

Posts

Joined
Tue Jun 07, 2011 3:30 pm

Post by bobmartinusa » Mon Mar 18, 2013 4:57 am

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

New member

Posts

Joined
Sat Mar 16, 2013 5:39 pm

Post by ChetanCx » Mon Mar 18, 2013 6:16 pm

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 ...

User avatar
Active Member

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by i2Paq » Mon Mar 18, 2013 8:34 pm

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

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by jamiehellen » Thu May 02, 2013 5:08 am

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

Newbie

Posts

Joined
Thu May 02, 2013 5:04 am

Post by matteoraggi » Fri May 10, 2013 9:25 pm

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?

http://www.restaurantsupplies.eu Restaurant Supplies
Opencart 1.5.6.4 VQMOD 2.4.1
Languages: Italian, French, German, Hungarian, English, Russian, Polish and Spanish


Active Member

Posts

Joined
Fri Apr 10, 2009 8:16 pm

Post by ChetanCx » Sat May 11, 2013 7:21 am

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

User avatar
Active Member

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by Yam » Tue Aug 20, 2013 4:55 am

Hi. Does this work for the dropdown menu too? I want the sub/ sub category to display in the dropdown menu
Thanks, Craig.

Yam
New member

Posts

Joined
Fri Sep 30, 2011 8:59 pm

Post by lxtnsv » Tue Nov 26, 2013 10:40 pm

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.

Newbie

Posts

Joined
Thu Sep 05, 2013 8:42 pm

Post by brandon-leudke » Tue Sep 09, 2014 8:03 am

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]

User avatar

Posts

Joined
Tue Sep 09, 2014 7:49 am
Who is online

Users browsing this forum: No registered users and 3 guests