Jump to content

[sovled] Related Products - change the number of products


Recommended Posts

Hello! in modules / productscategory / productscategory.tpl ,i want to display a specific number of products ? how can i modify the code ? with default code are displayed all products within that category.

Link to comment
Share on other sites

thanks for answer! it works , i set it to 8 , so now are 7 products on the page!

one last question!

by the way i set all products to be in one line like this

<li {if count($categoryProducts) < 8}style="width:60px"{/if}> 

but now i want to get rid of that scroll on the right!cause after 6 products i have a scroll there to move to the 7th product. how i can get rid of that ?

i checked at :

{if count($categoryProducts) > 5}<a id="productscategory_scroll_right"  ...

but nothing

 

thanks a lot , appreciate

Link to comment
Share on other sites

i'm sorry i can't do that , i'm using a local server :) i figured it out eventually .. increase the width with css and all produtcs are in one line! but i promise as soon i will finish the website , i will show it to you , you need to see my masterpiece :P

Edited by Pearl (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

Good morning,

I got the same problem and have been reading your post.

Please, how to override this module in a clean way ?

Putting class ProductsCategory.php once corrected in \override\classes\module doesnt work.

Thanks a lot in advance.

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