eurooil Posted February 23, 2015 Share Posted February 23, 2015 Hi, I'm working on a car part shop and I need help with the layered navigation block. I want to know if it is possible to make the features list openning and closing. By now it look like this: And I want it to look like this Thanks for your help Link to comment Share on other sites More sharing options...
eurooil Posted February 23, 2015 Author Share Posted February 23, 2015 I did it exactly the way you told me and nothing has change. It still the same Link to comment Share on other sites More sharing options...
eurooil Posted February 23, 2015 Author Share Posted February 23, 2015 I just saw that the module is able to do what I want. The problem is in the module configurations. When you create a new filter, you choose a feature you what to filter and at the extrem right, with a dropdown menu, you can choose how many feature filters the user will see: no limits, 4, 5, 10, 20. I have set it to 4 and I was able to see the 4 first feature filters and there was a see more button to see all the other ones. Is there a way to add a new value that will be 0 ? In the "languages" files, I'll be able to change the "see more" to be a "+". Thank you Link to comment Share on other sites More sharing options...
eurooil Posted February 24, 2015 Author Share Posted February 24, 2015 The problem is that the "0" value is the no limit value. How can I make it to be an absolute "0" ? Link to comment Share on other sites More sharing options...
elisa1212 Posted February 24, 2015 Share Posted February 24, 2015 (edited) hi, my module show all subcategories, even if they're inactive. the code to modify is this on blocklayered.php? case 'category': $categories = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' SELECT cl.name, cl.id_lang, c.id_category FROM '._DB_PREFIX_.'category c INNER JOIN '._DB_PREFIX_.'category_lang cl ON (c.id_category = cl.id_category) WHERE cl.id_lang = '.(int)$filter['id_lang']); foreach ($categories as $category) { if (!isset($attribute_values_by_lang[$category['id_lang']])) $attribute_values_by_lang[$category['id_lang']] = array(); if (!isset($attribute_values_by_lang[$category['id_lang']]['category'])) $attribute_values_by_lang[$category['id_lang']]['category'] = array(); $attribute_values_by_lang[$category['id_lang']]['category'][] = array('name' => $this->translateWord('Categories', $category['id_lang']), 'id_name' => null, 'value' => $category['name'], 'id_value' => $category['id_category'], 'category_name' => $filter['link_rewrite'], 'type' => $filter['type']); } break; i tried to add WHERE c.active=1 AND... but it doesn't work. Any help? Also, i would like order subcategories by name. is it possible? Thanks in advance. Edited February 24, 2015 by elisa1212 (see edit history) Link to comment Share on other sites More sharing options...
Kaper Posted April 8, 2015 Share Posted April 8, 2015 Thanks, it is working in 1.6.0.11, but i need it CLOSED as default, how can i do that ? Thanks ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now