SCH_001 Posted June 11, 2019 Share Posted June 11, 2019 Hi all, using frozen bs and we have heaps and heaps images / products so many that trying to manage them with FTP only gets us down to H During the import using easy populate we are putting images in to separate directories based on brands or catagories, but keying products directly into OSC or updating images in OSC admin we are already ending up with heaps of images in the root images/ directory So How do others manage this? can we add a path section to adding / editing products so the images will go in to a sub directory of images based on what ever path is entered what else can be done? Many thanks Link to comment Share on other sites More sharing options...
♥14steve14 Posted June 11, 2019 Share Posted June 11, 2019 I had a similar problem when I started in as much that I wanted to put images into files with the same name as the categories. I use this, but it is old, but it does work. Now the problem being that I only use the CE version of oscommerce and not frozen, and I do not use php higher than 5.6 at the present so things may need to be altered and recoded. I am going to add it into a frozen test site but so far do not have the time. https://apps.oscommerce.com/IqETn There may be better and newer addons out there but I have not looked lately. If nothing else it may give you a heads up on recoding something to suit your needs. REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
Mikepo Posted June 11, 2019 Share Posted June 11, 2019 I have the above addon installed in CE Frozen PHP 7.01, works well, and stores images in sub directories. osC CE live - developing osC Phoenix adding modules with no core changes(awesome and easy!) Link to comment Share on other sites More sharing options...
SCH_001 Posted June 11, 2019 Author Share Posted June 11, 2019 @Mikepo did you have to change much to get it to work? The last comment on the support forum for it seems to indicate it was not writing to the database correctly Link to comment Share on other sites More sharing options...
♥JcMagpie Posted June 11, 2019 Share Posted June 11, 2019 Have a look at this old thread and see if it makes sence. When this is done you simply make the sub directorys you need under /images/ and upload all the image files into them. Make sure your db has corect path to each image in each product and your done. if you add a new product then you have a new box in admin showing path for image, use that. Not perfect but works! or as pointed out use an add-on. Link to comment Share on other sites More sharing options...
SCH_001 Posted June 11, 2019 Author Share Posted June 11, 2019 @Mikepo I can't get it to work for me it will not put the image in the directory. I have changed all the post and gets to the correct value removed the hard written DIR_WS_IMAGES; and replaced with 'images/' Any chance you can PM me your admin/categories.php file to compare @JcMagpie the code from the post is so old again I think I will have trouble making it work Link to comment Share on other sites More sharing options...
♥JcMagpie Posted June 11, 2019 Share Posted June 11, 2019 1 minute ago, supercheaphobb said: the code from the post is so old again I think I will have trouble making it work 😂 Works fine still, very little changed in code, The only restiction is it is limited to one image per product as aditional images were a later additon to the code. Link to comment Share on other sites More sharing options...
SCH_001 Posted June 11, 2019 Author Share Posted June 11, 2019 @JcMagpie Then no good to me at all... I will put a post in the support topic for it Link to comment Share on other sites More sharing options...
♥JcMagpie Posted June 11, 2019 Share Posted June 11, 2019 ? Try this will do all images. Have as many subdir.. as you like , I based on this add-on. Working fine on CE Edge. file attached as allways backup first. http://www.oscommerce.com/forums/index.php?showtopic=347582 categories.php Link to comment Share on other sites More sharing options...
Mikepo Posted June 11, 2019 Share Posted June 11, 2019 @supercheaphobb just checked my categories.php file and the additions/mods are as detailed in the addon. Have you made sure you have directory permissions sets correctly, 775 would do. osC CE live - developing osC Phoenix adding modules with no core changes(awesome and easy!) Link to comment Share on other sites More sharing options...
SCH_001 Posted June 12, 2019 Author Share Posted June 12, 2019 Many thanks @JcMagpie just copied yours and added my small changes back in to the file - all working Link to comment Share on other sites More sharing options...
oscmepwl Posted June 22, 2019 Share Posted June 22, 2019 It's a helpful question and the answer would solve several newbies problems. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.