Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

image extension is case sensitive- what to do?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-06-2006, 08:57 AM
 
dgreen dgreen is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 85
 

Default image extension is case sensitive- what to do?

Is there something I can do to get the image extension not to be case sensitive?
Most of my products have images with .jpg extension but I have a few with .JPG and those are not showing up. I can't go through each one because I have over 30,000 products.

By the way, I am using the Telafirma mod for the images.
Thanks
__________________
X-Cart version 4.1.10
upgraded from 4.0.13 myself slowly and with help from xcart forums. Thanks all!

http://www.discountseforim.com
Hebrew Seforim and Jewish Books
Reply With Quote
  #2  
Old 07-06-2006, 09:40 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Unix is case sensitive. You can run an sql query on the database to replace the extension on everything in one swoop.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-06-2006, 04:33 PM
 
dgreen dgreen is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 85
 

Default image extension - case sensitive

Thanks for responding.
Is there a way to go through the images and replace the .JPG ones with .jpg?
Changing it in the database only helps if I know which ones have the uppercase and which ones have the lowercase.
In the database, they are all lowercase. In my image folder, most are lowercase and a few are uppercase - I just do not know which ones are which (unless I go through one by one).
Thanks again
__________________
X-Cart version 4.1.10
upgraded from 4.0.13 myself slowly and with help from xcart forums. Thanks all!

http://www.discountseforim.com
Hebrew Seforim and Jewish Books
Reply With Quote
  #4  
Old 07-06-2006, 04:35 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Uggg...that is a headache
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-07-2006, 03:27 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default

I have a program that will batch rename files called renamer4mac, it's for mac computers you know anyway I could download all of the files, rename them all and then reupload them,

??hth
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #6  
Old 07-16-2006, 07:27 PM
 
dgreen dgreen is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 85
 

Default solution

I ended up running a php script that went through the directory and wrote to a file each image ending in uppercase letters.
I then took the list and imported it into a database and through a few queries, generated product codes from the image names (image 123.JPG has a product code of CR00123).
I used the import products from the admin site (using the fields productcode and thumbnail) to stick the new image names into the database.
I am not sure if I am too clear, but it worked and was not that complicated.
Thank you for your help
__________________
X-Cart version 4.1.10
upgraded from 4.0.13 myself slowly and with help from xcart forums. Thanks all!

http://www.discountseforim.com
Hebrew Seforim and Jewish Books
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:56 PM.

   

 
X-Cart forums © 2001-2020