Jump to content

Layered navigation (product filters) in left sidebar missing


Da9L

Recommended Posts

Hi nemo,

 

two questions that are not available in the set up area of the module:

1) do you think the layered navigation (filter) can be shown in the homepage and in all the pages?

2) do you think it is possible to view other features with the slider bar just like the price?

 

Hope you can help

Navid

Link to comment
Share on other sites

@Nemo

 

- do you know any module to accomplish that?

- often I see some kind of search with attributes in e-commerce websites, how come it's not a standard feature in PrestaShop?

- it would be great to have a small search in all the pages and then an advanced search into a dedicated page, suggestions?

 

thanks

Navid

  • Like 1
Link to comment
Share on other sites

Hi, I've the same problem. Categories activated for layered navigation and left side bar missing. Layered Navigation Block is hooked on DisplayLeftColum hook. In fact there is no left column  on categories pages. Is there anywhere a way to activate it?

Link to comment
Share on other sites

:( what a pitty...

 

last question... Nemo...  with the standard theme is it possible to add the layered navigation block into the central column of a CMS page?

 

I would like to create a sort of page dedicated to the Search with some explanation...

 

Thanks again

Navid

Link to comment
Share on other sites

I solved the problem and layered navigation is visible in left column. I have another questions:

Is it possible to display the manufacturers block on the homepage but not in categories pages? That is, I want the manufacturers block on the "homepage left column" and layered navigation in categories pages. Otherwise manufacturers selection is redundant in categories pages.

Another question, Is it possible to wide the left column? categories and brands in layered navigatiion appear in two columns and some long names are divided into two lines. 

One last, Can you change the order in layered navigation? This means that price slide appears as the first selection for example.

Thanks in advance!

Link to comment
Share on other sites

:( what a pitty...

 

last question... Nemo...  with the standard theme is it possible to add the layered navigation block into the central column of a CMS page?

 

I would like to create a sort of page dedicated to the Search with some explanation...

 

Thanks again

Navid

 

Nope, category only :)

Link to comment
Share on other sites

I solved the problem and layered navigation is visible in left column. I have another questions:

Is it possible to display the manufacturers block on the homepage but not in categories pages? That is, I want the manufacturers block on the "homepage left column" and layered navigation in categories pages. Otherwise manufacturers selection is redundant in categories pages.

 

Another question, Is it possible to wide the left column? categories and brands in layered navigatiion appear in two columns and some long names are divided into two lines. 

 

One last, Can you change the order in layered navigation? This means that price slide appears as the first selection for example.

 

Thanks in advance!

 

Manufacturers: yes, just add an exception for the category page in modules->positions when setting up the hook

You can widen left column by editing css, it depends on your theme of course!

 

Lastly, you should be able to sort out items from the module's configuration page, just drag them and save :)

Link to comment
Share on other sites

  • 9 months later...

I solved the problem and layered navigation is visible in left column. I have another questions:

Is it possible to display the manufacturers block on the homepage but not in categories pages? That is, I want the manufacturers block on the "homepage left column" and layered navigation in categories pages. Otherwise manufacturers selection is redundant in categories pages.

 

Another question, Is it possible to wide the left column? categories and brands in layered navigatiion appear in two columns and some long names are divided into two lines. 

 

One last, Can you change the order in layered navigation? This means that price slide appears as the first selection for example.

 

Thanks in advance!

how did you solve it? i cant see navigation layer on the left column.. 

- i am on category page (i see 5 products in the category)

- left column is enabled on category (in theme setup)

- layer block module is enabled (there is only price filter enabled within module, price index is rebuilt)

(using ps 1.6.0.9, running on locale now)

Link to comment
Share on other sites

Hi, I would like to move the layered navigation block in the center and modify it so it will be displayes horizontally but it is not allowed. Does anybody know how to move it? Or an add on which I can buy? I am searching this for a week now but I didn't find a solution. I also tried to create a new hook and move it but it was not allowed, too.

Link to comment
Share on other sites

@Nemo1: I followed the steps I found here: http://prestatips.info/adding-new-hook-prestashop/

 

First I inserted a new entry in ps_hook table.

 

Then I created a file named CategoryController.php in the override/controllers/first folder, which contains the following code:

 
class CategoryController extends CategoryControllerCore
{
    /**
     * @see CategoryControllerCore::initContent()
     */
    public function initContent()
    {
        parent::initContent();
 
        $this->context->smarty->assign(
            'HOOK_CATEGORY_TOP', Hook::exec('displayCategoryTop')
        );
    }
}
 
And finally I added the following code in the themes/default/category.tpl
 
{if $HOOK_CATEGORY_TOP}
    <div class="hook_category_top">
        {$HOOK_CATEGORY_TOP}
    </div>
{/if}

 

Is anything wrong here?

Link to comment
Share on other sites

Ok, I tried to do what is described in your link but nothing changed.

What I did is: In the category.tpl I placed this {hook h='categoryTop'} in the line I want the new position.

Then, I opened the blocklayered.php (beacause this is the module I want to move) and put the following

public function hookCategoryTop($params)
{
    return 'hi there!';
}

And then I added $this->registerHook('categoryTop') in the install function:

if (parent::install() == false || $this->registerHook('categoryTop') || $this->registerHook('leftColumn') == false || $this->registerHook('beforeFooter') == false || $this->registerHook('header') == false)

        return false;

 

Then I reset the module and I tried to transplant the layered navigation block into the categoryTop but I got the message "this module is already transplanted to this hook". But I can't see anything in the site. I should see the 'hi there' message, right?

Link to comment
Share on other sites

Ok, I finally found it but I would like to ask you about that, because it's strange. I noticed that when I made changes in category.tpl nothing happened. I just added a div tag and I looked for that in the site page source but didn't find it. So I decided to search in the whole site code for a div that the category.tpl contained and in the results, except of the category.tpl, there was also another one file with a strange name (many letters and numbers), which was in a folder with path /cache/smarty/ and then many folders with names like 9d/2a/3f/...whatever..

So I tried to changed that file and then I saw the changes in the site. I did what I wanted, but I would like to ask if this is the right way and also what are all these files and folders? I think it makes more sense to change the catgeory.tpl file but when I did it nothing happened. Did I make something wrong?

Link to comment
Share on other sites

×
×
  • Create New...