tebdilikiyafet Posted July 31, 2013 Share Posted July 31, 2013 Hi everybody; As you understand from the topic I have a problem with products category module. In module productscategory.php file there are two section to choose category; /* 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)); } I have three categories. A, B and C. C is subcategory of B and B is subcategory of A. I have a product which have categories A and C. And default category is A. As I understand from code comments when I click the product under category of A, module will display products of category A. If I click the product under category of C, module will display products of category C But my module always display the A category (the default one). There is nothing about subcategories. Why is it happens? Link to comment Share on other sites More sharing options...
benjamin utterback Posted July 31, 2013 Share Posted July 31, 2013 Hi! Do you have a site url we could look at. Also, screenshots of your category configuration would be helpful as well as screenshots of your associations for products. but FIRST. Make sure that you set the Default Category in your Catalog>Product>Associations> Default Category. That may do the trick Link to comment Share on other sites More sharing options...
tebdilikiyafet Posted July 31, 2013 Author Share Posted July 31, 2013 (edited) As I state first alwyas display default category's products. So default category is setted to A in my example. It never display subcategories products Can it be related with clean url structure? I don't use {category} in product url. Edited July 31, 2013 by tebdilikiyafet (see edit history) Link to comment Share on other sites More sharing options...
tebdilikiyafet Posted August 24, 2013 Author Share Posted August 24, 2013 any idea? I really need help Link to comment Share on other sites More sharing options...
SmartDataSoft Posted August 26, 2013 Share Posted August 26, 2013 Is your product also associated with Category A,B,C or it related to A category but show other category, if you share your site url i can give you the solution. Link to comment Share on other sites More sharing options...
tebdilikiyafet Posted August 26, 2013 Author Share Posted August 26, 2013 Product is related with category A and C. Category A is default category of product. My problem is category C never display on breadcrumb. As summary when I click a product from subcategory, the default category display in breadcrumbs but subcategory is never. I doesn't matter where I clicked. Link to comment Share on other sites More sharing options...
SmartDataSoft Posted August 26, 2013 Share Posted August 26, 2013 so your problem is not productcategory module, that is on breadcrumb? Link to comment Share on other sites More sharing options...
tebdilikiyafet Posted August 26, 2013 Author Share Posted August 26, 2013 I don't know where is the problem but both of them don't work. Link to comment Share on other sites More sharing options...
tebdilikiyafet Posted September 5, 2013 Author Share Posted September 5, 2013 (edited) Finally I understand the problem. It is about category url. If you add a prefix to {id} sub categories doesn't work. this is the bug : http://forge.prestashop.com/browse/PSCFV-10313 Is there any idea how can we solve it? Edited September 5, 2013 by tebdilikiyafet (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts