Jump to content

[SOLVED] Template 31061 - Top Category Menu not displaying


Recommended Posts

URL - http://www.scrapbookingdeb.com

The top category menu is not displaying in the header area.

1. I installed the theme on the proper version 1.3.1.x
2. I installed the SQL dump correctly
3. CHMOD permissions are correct
4. Modules display and are activated
5. The hook is visible and set correctly
6. I have NOT modified the CSS or Header.tpl
7. Categories Block v1.0 is correctly set to no. 6 in “Top of pages”
8. I have checked the Default group is activated
9. Note that there is no javascript error in taskbar
10. I have proper PHPmemory setting on server of 40MB

Please advise :)

Here is a url of a properly working theme - http://cms.template-help.com/prestashop_31061/

Link to comment
Share on other sites

Ok, here is how i fixed the problem -

First let me say that I have great sympathy for anyone who like me has wasted hours attempting to find a solution to prestashop issues. PrestaShop is great, and I love it, but I just want to say thanks to everyone who has helped others.

Ok, heres the solution -

1. open this file with your HTML editor

theme/modules/blockcategories/blockcategories.php



2. See line 73



3. EDIT



[line 73]



function getTree($resultParents, $resultIds, $maxDepth, $id_category = 1, $currentDepth = 0)



CHANGE TO



function getTree($resultParents, $resultIds, $maxDepth, $id_category = 0, $currentDepth = 0)





edit the .............$id_category = 1 ........ to........... $id_category = 0




4. FTP the file into its proper location



5. This sounds silly, but it worked. NOW EDIT IT BACK TO THE ORIGINAL CODE



[line 73]



function getTree($resultParents, $resultIds, $maxDepth, $id_category = 1, $currentDepth = 0)




*** edit the .............$id_category = 0 ........ to........... $id_category = 1



6. FTP the file into it's proper location

************************************

THE END

Don't ask me why it worked. I don't know. All I know is I spent 48 hours searching for an answer and after reading other post here I took a wild guess. I hope it works for you too. Good luck!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...