Jump to content

Block category front office not showing categories...


Recommended Posts

Hi Everybody!

I'm trying to resolve a problem about my block categories.

This is my website : www.toutou.be

You will see that there is a top menu ( Menu Haut Horizontal v1.3) with my pages and 2 sub categories called (Dog, Cat) and other sub-categories. So everything look fine.

But when I try to place category block on right column, It shows the title of the block but any sub categories. I don't know how to resolve this problem?

In BO the category block is set on 0 (infinite) and dynamic.

I already try this: Download a new prestashop and only import blockcategory in my prestashop version 1.4.2.5. But not even work ??!!

Please help me

49685_Vb1H0ge2YqL5NSC94d2G_t

Link to comment
Share on other sites

I have the same problem and I don't know where to look. I have a subcategory under the home category but on the front office I have the category block but there are no categories in the block. Please help. I am using version 1.4.3
Thanks
Bruce

Link to comment
Share on other sites

Check to make sure that your categories have translations for all languages and that they have the "Default" group ticked under "Groups access".

 

Also, if your footer is missing, it means a PHP error has occurred in the category block. Edit config/config.inc.php and temporarily change 'display_errors' from 'off' to 'on', then refresh the page to see the error.

  • Like 1
Link to comment
Share on other sites

  • 5 months later...
  • 6 months later...

I had a similar issue and after bashing my head into a wall for something like 5 hours i noticed my customer had un-hooked the categories block from the header of page hook!!!! GRRRRRRRRRRR

 

After i transplanted he module back into the header of page hook WALLA! Working like a G6!

Link to comment
Share on other sites

  • 1 month later...

I have the same issue, I use the 1.4.9.0, block categories 2.0 module is on header of pages and left column hooks, I disabled, enabled, restarted, uninstalled, reinstalled and categories are empty, however other modules show the categories perfectly on front office.

I changed @ini_set('display_errors', 'on'); but I don't see any error on screen.

post-229265-0-97522200-1347525617_thumb.jpg

Link to comment
Share on other sites

  • 1 year later...

Backed up my db, imported db in a new prestashop installation, deleted all categories and products, created one new catgory, but nothing changed; categories still not listed in the block. Any ideas?

 

Later edit: changed root category friendly url "home" to something else and now i can see the categories... i still need to figure out why featured products on home page is not listing any products.

Edited by enjoyabell (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

Hello,

I have a similar problem.

In the .tpl file, there is a javascript code which hides the navigation, when javascript is activated. When i remove this piece of Javascript, it works.

Can someone explain me the reason for this? May i'm missing some information about this.

The piece of code:

 

 

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

  • 4 weeks later...
  • 1 month later...

i have the same problems.

 

i updated manully some modules on the categories on " Front office features" after that when i try to access the front ofiice then it shows nothing. and no erro thrown out. What's the problem? How can i do will roll back the vesions of the module like before.

 

the version of the web is prestashop_1.5.6.2. here is my my web address www.dwmzone.com

Link to comment
Share on other sites

  • 2 weeks later...
  • 6 months later...

Sorry for revamping this old thread but I'm facing the same problem on the last version of PS (1.6.0.9) and I think that it may be related to the smarty cache.

 

It seems that it doesn't get properly deleted when issuing the clearing command from the backend.

 

Is there some workaround for this? Or better a solution?

 

Core team please help us...

Edited by fusillicode (see edit history)
Link to comment
Share on other sites

Ok, as pretty often...my bad :(

 

The problem isn't actually the cache but the broken category tree.

 

To solve it just execute (by uploading a simple php page on your server) this code:

Category::regenerateEntireNtree();

I hope it can help the ones facing the same problem I faced.

 

P.S: I'm developing a little dummy module to wrap the desired functionality. :)

Link to comment
Share on other sites

mmm it seems you didn't include the proper file in which the Category class is defined.

 

Look I've just developed the dummy module I've cited in my previous post.

 

I've test it on the latest version of PS and it seems to work.

 

Here it is: https://github.com/fusillicode/category-tree-regenerator

 

You can try it :)

 

If there is some problem just ask ;)

Link to comment
Share on other sites

Thank you very much I will try but before...a question: will this simply regenerate catehories and their links or edit/delete my categories? This second thing would be very dangerous since I should redefine all categories and reassociate all products in each of them...

Cheers

Link to comment
Share on other sites

Look the only thing that the module does is to call the over mentioned 

Category::regenerateEntireNtree();

method.

 

What the method does is (I'm citing the documentation of the method in the Category class):

 

"Re-calculate the values of all branches of the nested tree".
 
I've personally used the module and it doesn't seem to have broken anything.
 
However I don't take any the responsibility about possible breakage sry :(
Link to comment
Share on other sites

  • 2 months later...

I had the same problem... I could not install you module (I'm on S 1.4.x).

I added 

Category::regenerateEntireNtree();
To Category module but now I can;t see escritoires ONLY on main page, on every other categories are visble.

 

The shop:

http://www.prezentyhurt.pl/pl/

 

PS.

On my main page categories module starts with:

<ul class="tree dynamized" style="display: none;">
on every other page with:

<ul class="tree dynamized" style="display: block;">
Edited by vkmaxx (see edit history)
Link to comment
Share on other sites

  • 1 month later...

hey!

I've tried your module fusilicode but i can't even install it on presta BO

It does'nt show itselft in the list.

And my problem is still...^^

Anyone who know how to fix it?

My catégories shows in footer but not in left column. But they're hooked to left column... I don't understand what happen... I anyone could help me...^^

I would be grateful

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...