How to make the VM subcategories clickable

GK User
Tue Dec 11, 2012 11:36 am
Hi,

The main overview of all categories at main level, the images are clickable like the title is.
However the subcategories aren't, how to create that for all subcategories? that via the images they are clickable as well?!?!

http://95.211.71.7/~anyfma/index.php/webshop

Regards,
Ronnie
User avatar
Expert Boarder

teitbite
Wed Dec 12, 2012 3:10 am
Hi

You need to edit /html/com_virtuemart/category/default.php and change this code:

Code: Select all
         <div class="spacer">
            <h2 class="catSub">
               <a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
               <?php echo $category->category_name ?>
               
               
               </a>
            </h2>
            <?php // if ($category->ids) {
                        echo $category->images[0]->displayMediaThumb("",false);
                     //} ?>
         </div>


top

Code: Select all
<a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
         <div class="spacer">
            <h2 class="catSub">
               
               <?php echo $category->category_name ?>
            </h2>
            <?php // if ($category->ids) {
                        echo $category->images[0]->displayMediaThumb("",false);
                     //} ?>
         </div>
</a>
User avatar
Moderator

GK User
Fri Jan 04, 2013 1:38 pm
Thanks, works fine now.
User avatar
Expert Boarder

teitbite
Sat Jan 05, 2013 2:45 am
Hi

Ok. Great to hear it :) Greets.
User avatar
Moderator


cron