Products Does Not Appear In Assigned Category

  • Posts: 42
  • Thank you received: 1
12 years 5 months ago #51674

I have assigned products to a sub-categories within a category. However, of the entire list of sub-categories, 2 of them are having problems displaying the products within them on the frontend. The rest are having no problems. I do not know why.

I have checked and double confirmed on the individual backend product page that these products are correctly assigned to the respective sub-category. However, they just are not appearing on the frontend.

For example, if I assign a product to 1 of the "problematic" sub-category and also to another proper functioning sub-category, it will appear only in the proper-functioning one at the frontend instead of both.

Nicolas, I have also pmed you regarding this. Appreciate your help as I can't figure this out. Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #51747

Did you try to delete these two categories and recreate them ?

Maybe your category tree is out of synch.
You could try to run the code below to resynch the category tree:

$categoryClass = hikashop_get('class.category');
			$root = $categoryClass->get($categoryClass->getRoot());
			$categoryClass->categories = array();
			$categoryClass->rebuildTree($root,0,1);

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 1
12 years 5 months ago #51772

nicolas, i tried deleting and re-create but the product still does not appear in the category.

i observe that whatever new categories i create (regardless of name) does not display the products i attach to them. do you know why?

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 1
12 years 5 months ago #51773

nicolas, i also observe that the products that i have assigned to those problematic categories has disappeared from the backend by themselves. i did not delete them. this is weird

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 1
12 years 5 months ago #51774



nicolas, please take a look at this. i have 14 sub-categories under this category. but in the backend, the 14 items are not even showing in the left hand side under the explorer. is this right?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 1
12 years 5 months ago #51856



nicolas, i have attached another screenshot here to show you the problem. please take a look at what happens when i try to assign a product to one of the problematic category. the name of the category with id 106 does not appear. after saving the product, the front end does not display the product. however in the properly working "TravelJohn" category, it is appearing fine. please help!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #51861

If a link between a category and a product cannot be made, the product won't appear in the back end nor on the front end.

I can see in one of your screenshots that you add your categories under the manufacturer "main" category.
That's maybe why you don't get the links added.
Why don't you add your categories under the "product category" category as it is the case by default ?

Also, you can try to turn on the "debug mode" option of the joomla configuration. You might get an error when adding you products/categories if there is a problem with the MySQL database. We would give us information on what is happening.

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 1
12 years 5 months ago #51868

Nicolas, I created these categories under the manufacturer "main" category because I wanted to have 2 different sets of categories in my website. The first one is done under "product category" to display products according to their brands. I then created this second set of categories under "manufacturer" to display products according to their categories eg tee shirt, pants, hats etc.

I have not came across any problem until this problem mentioned in this thread, as displayed by my two screenshots.

Am I able to create the above mentioned 2 different sets of categories, ie "browsing by brands" and "browsing by category", both under the "main" product category?

Please Log in or Create an account to join the conversation.

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #51871

The manufacturers are to be set in the "manufacturer" dropdown of the product edition screen, not in the categories of the product.

The simplest might indeed be to create both sets of ctegories under the main category and have them set in the categories area of your products.

Please Log in or Create an account to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum