Pearl Posted June 10, 2013 Share Posted June 10, 2013 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 More sharing options...
vekia Posted June 10, 2013 Share Posted June 10, 2013 in the productscategory.php module you've got: $categoryProducts = $category->getProducts($this->context->language->id, 1, 100); /* 100 products max. */ 100 is the value of number of products Link to comment Share on other sites More sharing options...
Pearl Posted June 10, 2013 Author Share Posted June 10, 2013 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 More sharing options...
vekia Posted June 10, 2013 Share Posted June 10, 2013 it is possible to get an url to your shop? Link to comment Share on other sites More sharing options...
Pearl Posted June 10, 2013 Author Share Posted June 10, 2013 (edited) 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 Edited June 10, 2013 by Pearl (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 10, 2013 Share Posted June 10, 2013 I look forward to the address;) as i understood - now i can mark this thread as [solved] ? Link to comment Share on other sites More sharing options...
Pearl Posted June 10, 2013 Author Share Posted June 10, 2013 yes thank you , solved Link to comment Share on other sites More sharing options...
vekia Posted June 10, 2013 Share Posted June 10, 2013 ok, so im goint to mark this thread as [solved] thanks! Link to comment Share on other sites More sharing options...
Zitoun Posted June 22, 2013 Share Posted June 22, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now