Forums / Templates, Stylesheets, Page Layout / Renaming and Moving Images

Renaming and Moving Images

Locked

Started by lloyd_borrett on 2 Nov 2006, 9:32 AM · Views: 1,089

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
2 Nov 2006, 9:32 AM
#1
lloyd_borrett avatar

lloyd_borrett

Zen Follower

Join Date:
Mar 2006
Location:
Rosebud, Victoria, Australia
Posts:
308
Plugin Contributions:
2

Renaming and Moving Images

G'day,

A client has begun the process of adding their products into their new store. I set up a structure for them with separate image directories for each manufacturer in order to keep things orgnised. Image Handler 2 is being used so that they need only one image file to cover all of the image sizes.

I gave them strict guidelines as to how to name images and stressed that they be extra careful to ensure that images are being uploaded into the right directories.

But of course, plenty of images have been loaded with bad filenames and in the wrong directories.

Is there a utility about that would enable someone to step through the images names in the database in a specified order (e.g. by manufacturer), and enable the image to be renamed and moved with the new details being put into the database.

For example, 'Product X' from "Manufacturer 1" has the filename "product x.jpg" and has been uploaded into the images subdirectory. By entering 'manufacturer1/product_x.jpg' as the new image filename for the Zen Cart database, the actual filename is also renamed to 'product_x.jpg' and moved to the 'manufacturer1' directory.

I'm hoping this is enough of a problem that someone has already come up with a workaround. Any ideas or pointers in the right direction would be much appreciated.

Best Regards, Lloyd Borrett.

Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

2 Nov 2006, 9:43 AM
#2
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Renaming and Moving Images

Doesn't matter how slowly you write those instructions for clients, they still get it wrong!! :D

Whilst waiting for a mySql guru, one option would be to use Easy Populate and do all your editing in Excel

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

7 Nov 2006, 6:37 PM
#3
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Re: Renaming and Moving Images

Off topic:

Lloyd...Great Photo! Way to practice self promotion! I was just reading about promoting ones site, and often people will buy because of the person, not necessarily because of the product.

For instance, I sell many of the same products you'll find in the big brick and mortar stores, however it's my of site marketing of articles about backyard birding that attracts people to my site. Obviously by now some of you have realized that I'm pretty wordy in my answers and I do imbued my personality into my writing style. Many readers are touched by my writing style and buy from my eBay store because of it, and of course the fact that I won't sell junk.

Well, at least that's my belief system about self promotion. So keep at it!

John Patrick
A Zen Cart Advocate!