kadapawn Posted September 30, 2013 Share Posted September 30, 2013 Hello guys, I have a small problem regarding the open/close function of the category module subcategory of a subcategory... Picture details: - for example i want to show the [+] and [-] for Advanced Nutrients so i can have the subcategorys in the module tree. Thank you very much for helping. Regards, Link to comment Share on other sites More sharing options...
NemoPS Posted September 30, 2013 Share Posted September 30, 2013 does that category have subcategories? If not, you have to add them, then you can go to modules -> modules, look for blockcategories and click configure. At this point you have to increase the 'depth level' Link to comment Share on other sites More sharing options...
kadapawn Posted September 30, 2013 Author Share Posted September 30, 2013 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 More sharing options...
NemoPS Posted September 30, 2013 Share Posted September 30, 2013 I see, so there is no depth limit? It might be a theme configuration as you're using a custom one (though I doubt). Also, what's your prestashop version? Link to comment Share on other sites More sharing options...
kadapawn Posted September 30, 2013 Author Share Posted September 30, 2013 yes, is a custom one but same problem is on default theme. Prestashop is 1.5.4.1. Thanks very much for taking interest in my problem. Regards Link to comment Share on other sites More sharing options...
NemoPS Posted September 30, 2013 Share Posted September 30, 2013 Can you try going to advanced parameters->performance and turn off 'use cache' and then check if they appear? Link to comment Share on other sites More sharing options...
kadapawn Posted September 30, 2013 Author Share Posted September 30, 2013 ..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 More sharing options...
NemoPS Posted September 30, 2013 Share Posted September 30, 2013 Hm, really weird. In the same admin page, enable debug Access the site using ?SMARTY_DEBUG and look for $blockCategTree see if all categories are there Link to comment Share on other sites More sharing options...
kadapawn Posted September 30, 2013 Author Share Posted September 30, 2013 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 More sharing options...
NemoPS Posted September 30, 2013 Share Posted September 30, 2013 Really weird! :/ I am clueless to be honest! Link to comment Share on other sites More sharing options...
kadapawn Posted September 30, 2013 Author Share Posted September 30, 2013 I will put the website offline tonight and try some default settings to see if debug still show same thing. i will post the report here. Thanks very much for taking interest and your time. Regards Link to comment Share on other sites More sharing options...
PrestaSOO Posted September 30, 2013 Share Posted September 30, 2013 Maybe you have a js function that conflict with core js. It's better if you post your url here or use firebug to detect Link to comment Share on other sites More sharing options...
kadapawn Posted September 30, 2013 Author Share Posted September 30, 2013 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 More sharing options...
kadapawn Posted October 1, 2013 Author Share Posted October 1, 2013 after last night edit with default theme and settings, still could not find the source of the problem... Any help is going to be appreciated. Link to comment Share on other sites More sharing options...
kadapawn Posted October 5, 2013 Author Share Posted October 5, 2013 so sad... Link to comment Share on other sites More sharing options...
Emzed Posted October 5, 2013 Share Posted October 5, 2013 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 More sharing options...
Emzed Posted October 5, 2013 Share Posted October 5, 2013 I'll just state that the fact you don't have $blockCategTree assigned as a smarty variable highlights that a pre-cached tpl has been used (but I don't have the code in front of me to check just now). Link to comment Share on other sites More sharing options...
kadapawn Posted October 6, 2013 Author Share Posted October 6, 2013 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 More sharing options...
Recommended Posts