Jump to content

Blocklayered module - don't show categories


Recommended Posts

Hi with next problem :) 

I turn on the blocklayered module (filtering) in my presta 1.5.5 - template bought. 

When i try to choose the specific catogies/subcategories I can see just the main HOME category. I can't see else subcategories (there are 34 categories). I try to click the "show all" or + in category tree. Any link like show all, hide all etc. don't work.... I can choose just the Home category. 

In my second shop this module works fine 1.5.4 - else template, but bought too. I click to specyfic categories, the whole list of categories is shown, every link (show all, etc.) works great. 

I tried to overwrite files of this module (from folder modules/blocklayered) from good shop to shop with this module bug, but it didn't helped. 

 

Any idea? Where is the bug?

post-559603-0-32068600-1379457258_thumb.png

Link to comment
Share on other sites

I think problem is with file js/jquery/plugins/treeview-categories/jquery.treeview-categories.js - in chrome developer tools i can see some error with js code: 

  1. Uncaught TypeError: Object #<Object> has no method 'apply' jquery.treeview-categories.js:110
    1. (anonymous function)jquery.treeview-categories.js:44
    2. e.extend.eachjquery-1.7.2.min.js:2
    3. $.extend.heightTogglejquery.treeview-categories.js:41
    4. (anonymous function)jquery.treeview-categories.js:71
    5. f.event.dispatchjquery-1.7.2.min.js:3
    6. f.event.triggerjquery-1.7.2.min.js:3
    7. (anonymous function)jquery-1.7.2.min.js:3
    8. e.extend.eachjquery-1.7.2.min.js:2
    9. f.fn.extend.triggerjquery-1.7.2.min.js:3
 
Code in jquery.treeview-categories.js:110 is: 
// apply event to hitarea
			this.find("div." + CLASSES.hitarea).click( toggler );
		},
		treeview: function(settings) {
			
			settings = $.extend({
				cookieId: "treeview"
			}, settings);
			
			if ( settings.toggle ) {
				var callback = settings.toggle;
				settings.toggle = function() {
					return callback.apply($(this).parent()[0], arguments);
				};
			}
		
			// factory for treecontroller

i overwrite js files mentioned in error for files from shop without bug, but it didn't helped... Same error appears.

HELP!

Link to comment
Share on other sites

I haven't. I tried few things like overwriting files from good shop and else, but it didn't helped. Anyone have some ideas?

I noticed that when i get few filter profiles (for every i select just home category), when i edit one of the previously created profiles, begin to change edit the other, at some moment, a list of all categories shows and I pick the one I want. But then, there is a comprehensive list of features (I have the 95, and there is a choice of only 75). Then I save the profile and it is ok (I can not choose only the features that do not appear, for unknown reasons). Interestingly, the category list is not displayed in a new window (as it should be) only appears on the list of features.

In summary, there are either all the features, but do not appear categories. Or there are categories, but do not load all the features.
Edited by birchoff (see edit history)
Link to comment
Share on other sites

Hi I add this

#layered-categories-selection #categories-treeview li ul{

    display: block !important
}
#layered-categories-selection #categories-treeview li ul li .expandable-hitarea {
    background-position: -64px -25px !important;

}

 

to css/admin.css

it not good idea to bat it work 

Link to comment
Share on other sites

  • 1 year later...
Hello

I am Iranian and I use the Google Translator

I apologize for poor English.

There is problem with the storage configuration in layered module

But could save the settings...!

How to do this:

First Open Edition product page and choose the categories tab

Now... by inspect element Select display categories code

This section contain the following code:

 

<Ul id = "associated-categories-tree" class = "tree">

 

......

.....

 

....

 

</ Ul>

 

Importing edit layered modules and code replaces the corresponding section on this page, please

Now you have the relevant categories.

 


<ul id="categories-treeview" class="tree">

 


......

.....

 

....


 

 

</ul>

 

 


 

Select Categories and Save...!

Link to comment
Share on other sites

×
×
  • Create New...