*

Fil

  • ***
  • 42 posts
How to make for category 7,8,9 to open as lists instead of galleries


*

MB Themes

Re: How to make for category 7,8,9 to open as lists instead of galleries
« Reply #1 on: March 19, 2018, 08:01:05 AM »
@Fil
In file:
oc-content/themes/veronika/search.php

You have code:
Code: [Select]
<?php $old_show Params::getParam('sShowAs') == '' $def_view Params::getParam('sShowAs'); ?>
Try to change it i.e. to:
Code: [Select]
<?php 
  
if(Params::getParam('sShowAs') == '') {
    if(
in_array($search_cat_id, array(7,8,9))) {
      
$old_show 'list';
    } else {
      
$old_show $def_view;
    }
  } else {
    
$old_show Params::getParam('sShowAs');
  }
?>

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots