Horgans Lifestyle Posted January 21, 2014 Share Posted January 21, 2014 (edited) Hi, I'd like to adjust the settings of my 'products in the same category' feature. I think it's currently set to show a maximum of 30, but we'd like to adjust this. I've gone to Modules > Front Office > Products Category > Configure but all it gives me is the opportunity to Display the Price on the products. How can I adjust so that we show more products in this product category feature? Kind regards Tom Edited January 28, 2014 by TomHorgans (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 21, 2014 Share Posted January 21, 2014 modules/productscategory/productscategory.php there is a code: // If products tab higher than 30, slice it if ($sizeOfCategoryProducts > 30) { $categoryProducts = array_slice($categoryProducts, $middlePosition - 15, 30, true); $middlePosition = 15; } 2 Link to comment Share on other sites More sharing options...
Horgans Lifestyle Posted January 22, 2014 Author Share Posted January 22, 2014 How can I get into the code to amend this section of code? Link to comment Share on other sites More sharing options...
stottycabanas Posted January 22, 2014 Share Posted January 22, 2014 Just open the file in an editor such as Notepad++ Cheers, Dave Link to comment Share on other sites More sharing options...
vekia Posted January 22, 2014 Share Posted January 22, 2014 you can also open this file in simple text editor like notepad, but personally i suggest notepad++ exactly as Dave Link to comment Share on other sites More sharing options...
Horgans Lifestyle Posted January 23, 2014 Author Share Posted January 23, 2014 How can I access the file to open it? Link to comment Share on other sites More sharing options...
Horgans Lifestyle Posted January 23, 2014 Author Share Posted January 23, 2014 Ah I see, in the folders on my computer drive, as opposed to the online Prestashop site. Hopefully I've managed this now. Thanks. Link to comment Share on other sites More sharing options...
Horgans Lifestyle Posted January 23, 2014 Author Share Posted January 23, 2014 Not quite solved, I amended the php file in notepad to now have up to 100 related products in the category slider, but this isn't reflected on the site. Do I have to reinstall the module to have these changes take effect? Link to comment Share on other sites More sharing options...
vekia Posted January 23, 2014 Share Posted January 23, 2014 hello after changes in this file, you uploaded it back to your server? Link to comment Share on other sites More sharing options...
Horgans Lifestyle Posted January 24, 2014 Author Share Posted January 24, 2014 How do you upload it back to a server? Link to comment Share on other sites More sharing options...
vekia Posted January 24, 2014 Share Posted January 24, 2014 you have to use ftp connection, just upload file to directory where original file is, and just "overwrite" it Link to comment Share on other sites More sharing options...
Horgans Lifestyle Posted January 28, 2014 Author Share Posted January 28, 2014 All fixed now. Thank you for bearing with me. Link to comment Share on other sites More sharing options...
YiannisK Posted January 4, 2015 Share Posted January 4, 2015 (edited) I want to show only 6 products, 3 per line I changed the code to // If products tab higher than 30, slice it if ($sizeOfCategoryProducts > 6) { $categoryProducts = array_slice($categoryProducts, $middlePosition - 3, 6, true); $middlePosition = 3; } and it's not working.. what is wrong? Thanks in advance! UPDATE: NO! IT's WORKING! THANKS!! Edited January 4, 2015 by joss54 (see edit history) Link to comment Share on other sites More sharing options...
kiran.jawa Posted February 13, 2015 Share Posted February 13, 2015 testr 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