Jump to content

Products Category Module does not show up


Recommended Posts

Hi,

I have trouble with Products Category module. It does not show up. I do not see any code from the module in my source code. Not even the productcategory.js files are being written to the source. I am on 1.3.1 PS. Any idea how I can fix this problem?

Link to comment
Share on other sites

Make sure that the "Default category" of your products is not set to "Home", otherwise the module won't have a "Same category" to get products from and so won't display. Also, make sure that the module is installed in the "Product footer" hook.

Link to comment
Share on other sites

  • 9 months later...
Make sure that the "Default category" of your products is not set to "Home", otherwise the module won't have a "Same category" to get products from and so won't display. Also, make sure that the module is installed in the "Product footer" hook.


Thanx it solved the problem. How did you find that out?
Link to comment
Share on other sites

It's in the code on line 105-113 of modules/productscategory/productscategory.php:

/* If the visitor has came to this product by a category, use this one */
if (isset($params['category']->id_category))
   $category = $params['category'];
/* Else, use the default product category */
else
{
   if (isset($product->id_category_default) AND $product->id_category_default > 1)
       $category = New Category((int)($product->id_category_default));
}



If the customers clicks on a product from a category, then that category is used, otherwise, the product's default category is used unless it is category 1.

Link to comment
Share on other sites

Ok I see. Meanwhile I found a bug. If you unset the default 'Home' category for some products. Only default 'Home categories are considered as Featured products. Those products don't show up in the main page where it show 'Feature Products'. Any Idea to solve that?

Link to comment
Share on other sites

It's not a bug. If you uncheck a product from the "Home" category, it won't be displayed as a featured product, even if it's default category is set to "Home". The default category is used to choose what will display in the breadcrumb when going directly to a product without going through a category first. It's not used to choose which products are featured products.

Link to comment
Share on other sites

  • 11 months later...

Good evening, I have a problem like this come in my storeprestashop a few days here I add when they procure goods at homeand in the product category appears only in the home, it's products in the categories but does not appear in the category, http://www.jbsshop.com.br/8-informatica

 

 

 

WebRep

 

Classificação geral

 

 

Este site não tem classificação

(número de votos insuficientes)

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