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)
-   -   Change Image locations back and forth many times (https://forum.x-cart.com/showthread.php?t=20980)

jc2002 04-06-2006 11:47 AM

Change Image locations back and forth many times
 
I changed the Image Location from database to file system successfully. But I need to change them back to database. Is this a problem?

What if I want to change them back from database to file system again afterwards? Is there any issue with that?

Thanks

balinor 04-06-2006 12:02 PM

Why would you want the images in the DB?

jc2002 04-06-2006 12:11 PM

I am moving the shop from /shop to the root directory. Based on earlier suggestions, the steps are to move images to DB first, then move all files, then move images back to file system. That is what I am doing, but I am not sure if there is any issue with this.

balinor 04-06-2006 12:14 PM

Ahh. I don't usually recommend that method as it renames all of the files (which will hurt your SEO image names), but if that is the way you want to do it you can switch them back and forth as many times as you wan t.

jc2002 04-06-2006 12:17 PM

What do you recommend to move the store to root?

jc2002 04-06-2006 12:18 PM

I don't like this method either.

balinor 04-06-2006 12:23 PM

Because the root directory is much more search engine friendly and visually appealing.

jc2002 04-06-2006 12:24 PM

Yes, that is why I am moving the store.
But is there a better way to do this?

balinor 04-06-2006 12:28 PM

I just move the files to the root, update config.php and run an SQL query to update the image path in the database, similar to this:

update xcart_thumbnails
set image_path = replace(image_path,'/store/','/')

jc2002 04-06-2006 12:32 PM

thanks!
do I run the sql for icon and detailed image as well?


All times are GMT -8. The time now is 09:29 PM.

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