Remove category list from manufacture page

Commercial shopping Joomla template to easy create webshop with various extensions supported like ViruteMart, K2 and K2Store.
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Apr 20, 2016 11:17 am
Reply with quote
Report this post
I have added a link to direct visitors to the page listing all the products made by a manufacture but I do not like that the category list shows at the top before all the products are displayed. Is there a way to remove the category list from the manufactures products page? Thanks,
User avatar
Fresh Boarder

GK User
Thu Apr 28, 2016 2:00 pm
Reply with quote
Report this post
Hello,

I afraid that it won't be possible to do only for the manufacturer. Most probably the mentioned view is generated by file html/com_virtuemart/category/default.php and as you can see there is the following fragment:

Code: Select all
<?php
/* Show child categories */
if ( VmConfig::get('showCategory',1) and empty($this->keyword)) :
   if (!empty($this->category->haschildren)) :
      // Category and Columns Counter
      $iCol = 1;
      $iCategory = 1;
      // Calculating Categories Per Row
      $categories_per_row = VmConfig::get ( 'categories_per_row', 3 );
      $category_cellwidth = ' width'.floor ( 100 / $categories_per_row );
      $BrowseTotalProducts = count($this->products);
      // Separator
      $verticalseparator = " vertical-separator";
   ?>
   <div class="category-view">
      <?php // Start the Output
      if(!empty($this->category->children)) :
         foreach ( $this->category->children as $category ) : ?>
            <?php if ($iCol == 1 && $iCategory > $categories_per_row) : ?>
            <div class="horizontal-separator"></div>
            <?php endif; ?>
            
            <?php if ($iCol == 1) : ?>
            <div class="row">
            <?php endif; ?>
            
            <?php
               // Show the vertical seperator
               if ($iCategory == $categories_per_row or $iCategory % $categories_per_row == 0) {
                  $show_vertical_separator = ' ';
               } else {
                  $show_vertical_separator = $verticalseparator;
               }
      
               // Category Link
               $caturl = JRoute::_ ( 'index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id );
      
                  // Show Category ?>
                  <div class="category floatleft<?php echo $category_cellwidth . $show_vertical_separator ?>">
                     <div class="spacer">
                        <a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>"><?php echo $category->images[0]->displayMediaThumb("",false); ?></a>
                        
                        <h2 class="catSub"> <a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>"> <?php echo $category->category_name ?> </a> </h2>
                        
                        <a href="<?php echo $caturl; ?>" class="category-overlay"><span><span><?php echo JText::_('TPL_GK_LANG_VM_VIEW'); ?></span></span></a>
                     </div><!-- .spacer -->
                  </div><!-- .category -->
                  <?php
               $iCategory ++;
      
            // Do we need to close the current row now?
            if ($iCol == $categories_per_row) : ?>
               <div class="clear"></div>
            </div><!-- .row -->
            <?php
               $iCol = 1;
            else :
               $iCol ++;
            endif;
         endforeach;
      endif;
      // Do we need a final closing row tag?
      if ($iCol != 1) : ?>
         <div class="clear"></div>
      </div><!-- .row -->
      <?php endif; ?>
   </div><!-- .category-view -->
<?php
   endif;
endif;
?>


It suggests that there is an option called "Show category" which can be used to disable this block, but also it will probably cause disabling of this block on the other subpages based on this view.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.