kgb2f Posted December 20, 2002 Posted December 20, 2002 When new images are uploaded for products and/or categories osC appears to ALWAYS put them into /images. Is there any way to modify this behaviour? IOW, so category images are stored in /images/categories etc? In fact we will probably create the categories at the remote site and then bulk upload the image files into the appropriate places, but there appears to then be no way to tell osC where the image now resides (for any category or product). I can modify the database using external tools etc, but that's not ideal. Am I missing something here? Is there some way in osCadmin to specify a location of the image file when it's already been uploaded? What about if you move the file, I cannot see how you can use osCadmin to edit the location in the database. Do I need to write my own module to do this?
Jan0815 Posted December 20, 2002 Posted December 20, 2002 Do I need to write my own module to do this? Short answer: Yes. The functionality you are looking for is currently not included in osCommerce. But if you program a contribution that does it things might change ;-) You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.
kgb2f Posted December 20, 2002 Author Posted December 20, 2002 Thanks. Now I know, I'll stop looking for it:-) If/when I get around to coding this I'll let everyone know.
toolcrazy Posted December 20, 2002 Posted December 20, 2002 This would be cool, It does get confusing with a 100 images in one dir. I'm going to watch for it. Steve Steve -------------------------
Archon Posted December 22, 2002 Posted December 22, 2002 I could be wrong here, as I haven't tested it yet. But when you export your msql "products" table in excel/csv format, some of the images files are listed as dvd/movie1.gif (for example). I take it that this means /catalog/images/dvd/movie1.gif The other images are /catalog/images/otherimage.gif So, if you manually added the path (dvd/movie1.gif) in the table and import it into your mysql database, and make sure your actual images are in the dvd directory/folder, it should work. What do the more experienced people think? Is this right or am I just wishfully thinking? Evolve to Darkness
Recommended Posts
Archived
This topic is now archived and is closed to further replies.