welsafty Posted March 31, 2010 Share Posted March 31, 2010 I am trying to modify the adminProducts.php in BO to chaneg the directory all product images are uploaded to because when the store starts having many items the prestashop/img/p/ directory ends up having soooooo many images that slowes down the server, and making regenerating thumbnails almost imposible, so I want to modify the way prestashop uploads products images and split al the images in prestashop/img/p/ into subdirectories ( to make sure that each directory have a mangable number of files ) and I cant find the code that is actually responsible for adding/ the product to the database can someone help sirecting me to where to find this part that I can change to upload the product images into subdirectories I know i can change the name of the directory from config/ but I actually want to end up with prestashop/img/p/1/images.jpg having images for items from 1 to 100prestashop/img/p/2/images.jpg having images for items from 101 to 200prestashop/img/p/3/images.jpg having images for items from 201 to 300or prestashop/img/p/cat1/images.jpg having images for items for cat1prestashop/img/p/cat2/images.jpg having images for items for cat2prestashop/img/p/cat3/images.jpg having images for items for cat3 Link to comment Share on other sites More sharing options...
Zenith Posted April 1, 2010 Share Posted April 1, 2010 I'd like some details in implementing sub directories too. I've found a lot of talk about this on these forums but no actual working code to make the changes....can anyone provide a solution for this? Link to comment Share on other sites More sharing options...
Domingo Posted April 23, 2010 Share Posted April 23, 2010 I would like to know how this can happen and there to modify file Link to comment Share on other sites More sharing options...
Sderenno Posted June 16, 2010 Share Posted June 16, 2010 Any News ? Link to comment Share on other sites More sharing options...
Zenith Posted June 14, 2011 Share Posted June 14, 2011 The feature of sub-directories has just been implemented in the SVN! Link to comment Share on other sites More sharing options...
Recommended Posts