Display Sub Category AFTER products in current category

  • Posts: 23
  • Thank you received: 0
8 years 8 months ago #259437

-- HikaShop version -- : HikaShop Business: 2.6.4

Hi Guys,

We have a category with some products in it and have just added a sub category with some more products (parts) in it. When I'm viewing the top category I currently see a sub categories followed by the products in the top category. I'd like to see them the other way round ie. products in top category followed by list of sub categories. I assume this is changeable in one of the view files but can't find it and I'm not sure what I'd need to change.

Thanks in advance,

Aran

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 84426
  • Thank you received: 13721
  • MODERATOR
8 years 8 months ago #259443

Hi,

You would have to edit the file "listing" of the view "category" via the menu Display>Views and move the code:

$layout_type = $this->params->get('layout_type');
if(empty($layout_type) || $layout_type=='table') $layout_type = 'div';
$html = $this->loadTemplate($layout_type);
if(!empty($html)) echo '<div class="hikashop_subcategories_listing">'.$html.'</div>';
at the end of the view file.

The following user(s) said Thank You: aran.gibbs

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum