Jump to content

[SOLVED] Cannot add categories


Recommended Posts

Hi all, I am new here. I have looked over the forum for a solution for this but the 2 I have read do not work, so I guess this is a new issue. I am having problems adding categories. What happens is, I create a new sub category under Home, lets say electronics. And under this sub category 17 more sub categories. Everything creates fine but when viewing the site map, nothing is under Home. It's like nothing has been created. Even on the website there is no categories at the Home level. It's really annoying me now as I have tried everything I can with this. Any suggestions on what it could be or what I have missed?

Link to comment
Share on other sites

Most likely, there is a Javascript error on your site that is preventing the categories from displaying. In IE, check whether it says "Done, but with errors" in the bottom-left corner. If it does, click on the icon to display the errors and post the errors here.

Link to comment
Share on other sites

Can you provide a link to your site? It is usually a Javascript error. The only other possible thing I can think of is that the categories access in the customer group is missing. Otherwise, I can't help any further.

Link to comment
Share on other sites

I had the same issue last time ... but I dunno if it is relating to your problem or not ... please check your CSV file in categories name column whether there are any spaces in the names such as

HOME

is different than

HOME

So the importer is confuse or something. heheheh .. anyway .. good luck ... Hope you find the answer ...

Link to comment
Share on other sites

Correct. I kept this there as an example category to check out the structure and see why the other category was not displaying. Have tried to set up group access like you said but dont know where in admin it is. Have no idea why it is not displaying, the sql code for categories is at level one Home category as it should be the same as the USB item category. The USB item category should not be there really as it is not a catagory it is just an example to help resolve the issue.

Link to comment
Share on other sites

How did you add the categories originally? Did you use the CSV import tool or did you add the categories manually using the Back Office. Did you upgrade from an earlier version of Prestashop? If there are errors in the categories table, reinstalling and then copying the categories tables will also copy the errors, which would make reinstalling pointless. It is the ps_category_group table you should be looking at. If it is missing entries, then the categories will not display. The table should list every category and the number 1 for the default group.

Link to comment
Share on other sites

Thanks alot you solved it. Would I have to do this everytime I add categories, or will this be ok now. It's not a problem to do it but would take a little longer to do it. Your a great guy I bow down to you oh superior one :)

Link to comment
Share on other sites

Glad I could help. If your issue is solved, please edit your first post and add [sOLVED] to the front of the title.

You shouldn't have to manually add entries to the database every time you add categories. Adding categories through the Back Office or the CSV import tool should automatically add these entries to the ps_category_group table. I don't understand why they weren't added on your site. Perhaps a failed upgrade from an earlier version of Prestashop or a failed CSV import caused the problem.

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