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

Moving images location

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-07-2007, 02:40 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Moving images location

Just upgraded to 4.1.8 from 4.0.19. The move was done by xcart. Before the move my images were in ..../files/images.

After the move they were back in the database, so I chose the file system option and they were moved automatically to ...../images/D & /T how can I get them all to point to the original filesystem location?

Cheers
__________________
Version 4.7.7
Reply With Quote
  #2  
Old 08-08-2007, 05:55 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Re: Moving images location

As a follow up Xcart have advised that the images location cant be changed to point to another file location.

Would that mean I can only rectify by deleting all the images in "Detailed Images" and manually adding them back by browsing to the original image folder location?
__________________
Version 4.7.7
Reply With Quote
  #3  
Old 08-08-2007, 07:11 PM
 
balinor balinor is offline
 

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

Default Re: Moving images location

Do it by CSV, much faster.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 08-10-2007, 06:53 PM
  Ipock's Avatar 
Ipock Ipock is offline
 

Newbie
  
Join Date: Apr 2007
Posts: 2
 

Default Re: Moving images location

Quote:
Originally Posted by balinor
Do it by CSV, much faster.

Our images are in a folder located in the root, and our cart is located in a separate folder in the root. We have about 5000-6000 images. Is there a way to load them all to the file location?

My understanding is that we can change the location of the images to file or to database, but our images are in neither location (at this point). I would really rather not load one image at a time, as that process will outlive my lifetime. If I should do this via CSV, can someone walk me through the steps?
__________________
Amanda Ipock
US Web Management

http://ipockartandmusic.com
(site with cart version 4.1.6)
http://ipockdesigns.com
http://uswebmanagement.com
Reply With Quote
  #5  
Old 08-14-2007, 12:05 AM
  Ipock's Avatar 
Ipock Ipock is offline
 

Newbie
  
Join Date: Apr 2007
Posts: 2
 

Default Re: Moving images location

Nevermind. I used an FTP product to do move the images. Now the cart can not find them when I import. Our CSV file names are correct, and our image location in the cart administration are set to the location of the images, but we still have not been able to get the cart to recognize our images. Any ideas?
__________________
Amanda Ipock
US Web Management

http://ipockartandmusic.com
(site with cart version 4.1.6)
http://ipockdesigns.com
http://uswebmanagement.com
Reply With Quote
  #6  
Old 08-14-2007, 02:45 AM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Moving images location

not sure if this works but try the following:


leave the folder names as C,D,T instead of categories, detailed, thumbnails....if not just do a simple rename of the folders

move folders to the files directory, but do not move the images folder

now go to include/func/func.image.php and back it up before continuing...once backed up, edit the file and find the following in function func_image_dir($type)

Code:
$dir = $xcart_dir."/images/".$type;
change to
Code:
#if the files directory variable doesnt work, try to hardcode it in as "/files" $dir = $xcart_dir.$files_dir."/".$type;
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
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 02:54 PM.

   

 
X-Cart forums © 2001-2020