Jump to content

Sub/Sub Category open/close


Recommended Posts

this is the structure:

 

Fertilizatori  [+]

                  |_Fertilizatori (firme) [+]

                                                |_ Advanced Nutrients  here i need [+] becouse i want to open the next sub-trees.

                                                                                  |_   Nutrienti organici

                                                                                  |_   Atami

 

the settings in the cat module are:  dept level: 0 ; dinamic; after position;..

Link to comment
Share on other sites

..cache off -> empty cache -> ctrlF5. nothing changed, same issue.

 

this is the css class for open/close #categories_block_left li .OPEN, #categories_block_left li .CLOSE

 

if i use same settings in #categories_block_left ul li everything gets mess up...

Link to comment
Share on other sites

seems i cant find any cat in $blockCategTree but i get this:

 

/home/hidropon/public_html/modules/blockcategories/blockcategories.tpl (compile 0.00000) (render 0.01482) (cache 0.00000) 
/home/hidropon/public_html/modules/blockcategories/category-tree-branch.tpl (compile 0.00000) (render 0.00742) (cache 0.00000)

Link to comment
Share on other sites

this is the structure:

 

Fertilizatori  [+]

                  |_Fertilizatori (firme) [+]

                                                |_ Advanced Nutrients  here i need [+] becouse i want to open the next sub-trees.

                                                                                  |_   Nutrienti organici

                                                                                  |_   Atami

 

the settings in the cat module are:  dept level: 0 ; dinamic; after position;..

 

link is here... In firebug only java that i find related to the cat is:

// <![CDATA[ 
// we hide the tree only if JavaScript is activated 
$('div#categories_block_left ul.dhtml').hide(); 
// ]]> 
Link to comment
Share on other sites

Hi,

 

It's strange that your maximum depth limit is set to "0" but just so happens to mimic the default settings, i.e. layer 4 (where root = layer 0, home = layer 1, first category = layer 2 etc). Since your back office form pulls up max_depth = 0 it's likely your config table correctly has "0" and not "4" (but you can confirm in mysql with SELECT * FROM `ps_configuration` WHERE `name`='BLOCK_CATEG_MAX_DEPTH' (replace ps_ with your prefix if necessary)).

 

If you're confident that every form of caching has been de-activated (not forgetting CloudFlare) and you still get the error you can try un-installing and re-installing the category block module I guess. Also, have you tested on your local server? If you still have issues you can play around with the max_depth value (e.g. what happens when you set it to 6 etc, or maybe toggling the value alone may fix your problem) and also check cache\smarty\cache\blockcategories file contents and see if these files are re-created once deleted (indicating smarty caching has not been turned off).

 

By the way, the javascript for the category tree can be found in your theme's folder within js/tools/treeManagement.js if you're interested.

 

Cheers

Link to comment
Share on other sites

Thank you all for the time and sugestions. I've manage not to solved this and moved the sub-cat as a main cat.

 

All is good now.

 

Thank you again guys. All the best.

 

Please mark this as solved! (in my case is a done capter)

Link to comment
Share on other sites

×
×
  • Create New...