X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Moving images location (https://forum.x-cart.com/showthread.php?t=33106)

zebu 08-07-2007 02:40 PM

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

zebu 08-08-2007 05:55 PM

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?

balinor 08-08-2007 07:11 PM

Re: Moving images location
 
Do it by CSV, much faster.

Ipock 08-10-2007 06:53 PM

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. :-s If I should do this via CSV, can someone walk me through the steps?

Ipock 08-14-2007 12:05 AM

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?

inebriate 08-14-2007 02:45 AM

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;



All times are GMT -8. The time now is 12:41 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.