Jump to content

Edit History

2byte

2byte

Yes, this is the question, I think that ps should list product from the category selected, not listing all products that are in some parent category or children categories.

For example, I have this tree category: 

- CAT A

- - CAT A1

- - - CAT A2

- - - - CAT A3 

 

And I have a product called PRODUCT A3, and this product have selected only the CAT3 category. 

Then, I we go to listing category in frontend CAT A,CAT A1 or CAT A2, here you can see in the bottom list the product CAT3. 

I think it´s not correct, before it not happened in pestashop.

The reason is that in YOUR_THEME/templates/catalog/listing/product-list.tpl 

<section id="products">
      {if $listing.products|count}   --------->   >1 .Not list the category selected and count products, it count all products in all categories. 

How can change the products count in the category selected?

Thanks.

2byte

2byte

Yes, this is the question, I think that ps should list product from the category selected, not listing all products that are in some parent category or children categories.

For example, I have this tree category: 

- CAT A

- - CAT A1

- - - CAT A2

- - - - CAT A3 

 

And I have a product called PRODUCT A3, and this product have selected only the CAT3 category. 

Then, I we go to listing category in frontend CAT A,CAT A1 or CAT A2, here you can see in the bottom list the product CAT3. 

I think it´s not correct, before it not happened in pestashop.

The reason is that in YOUR_THEME/templates/catalog/listing/product-list.tpl 

<section id="products">
      {if $listing.products|count}   --------->   >1 .Not list the category selected and count products, it count all products in all categories. 

How can change the products count in the category selected?

Thanks.

×
×
  • Create New...