andreibarbuta Posted November 28, 2013 Share Posted November 28, 2013 Easily enough question right? Couldn't find a way, searched and combed every forum. Strange enough nobody else asked this. I want to globally limit the number of product photos that can be uploaded. If there isn't an option within Prstashop or a easier way please provide the code for conditional check and the file where I can place it. I have average php skills. Thank you in advance for any help. Link to comment Share on other sites More sharing options...
ibndawood Posted November 29, 2013 Share Posted November 29, 2013 Hi, As far as I can tell, there is no option to limit the number of product photos uploaded. The code is in adminpanelfolder/themes/default/template/controllers/products/images.tpl It uses valums uploader : http://valums-file-uploader.github.io/file-uploader/ to upload images and you can get the total images count int the smarty variable {$countImages} Hopefully With this info you should be able to write your own logic. Link to comment Share on other sites More sharing options...
andreibarbuta Posted November 29, 2013 Author Share Posted November 29, 2013 Thanks for this. I'm more of a designer than a programmer but I will give it a try. All the best to you Link to comment Share on other sites More sharing options...
ibndawood Posted November 29, 2013 Share Posted November 29, 2013 (edited) Why would you want to limit the no of photos uploaded ? If I know may be I'll have some other suggestion Edited November 29, 2013 by ibndawood (see edit history) Link to comment Share on other sites More sharing options...
andreibarbuta Posted November 29, 2013 Author Share Posted November 29, 2013 A client wanted asked for this. you know how it is. Link to comment Share on other sites More sharing options...
andreibarbuta Posted November 29, 2013 Author Share Posted November 29, 2013 It is for a marketplace shop, I think she wanted to limit because of hosting space however she did not tell why exactly, she just asked for it. Somehow she dropped the request, had some other ideas. Link to comment Share on other sites More sharing options...
ibndawood Posted November 29, 2013 Share Posted November 29, 2013 Good for you. You don't have to go through the pain of modifying the core code ! Link to comment Share on other sites More sharing options...
andreibarbuta Posted November 29, 2013 Author Share Posted November 29, 2013 Yes exactly. Sometimes clients ask for stuff that they think is minor like this pohots limit thing and it really isn't. Problem is also cost, they expect these "small" things to be free. Link to comment Share on other sites More sharing options...
ibndawood Posted November 29, 2013 Share Posted November 29, 2013 Sometimes the best things in the world are free. Like prestashop, ubuntu, apache, php But yes I agree to your point, they thing its just limiting the images but it is one hell of a work ! 1 Link to comment Share on other sites More sharing options...
fong hong Posted March 14, 2015 Share Posted March 14, 2015 i also need to find this answer??? did any one know ?? Link to comment Share on other sites More sharing options...
Recommended Posts