| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Change Image locations back and forth many times | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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
__________________
__________________ x-cart: 4.1.8 X-cart Affiliate X-cart configurator X-cart AOS X-cart image magnifier |
|||||||
#2
|
|||||||
|
|||||||
Why would you want the images in the DB?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
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.
__________________
__________________ x-cart: 4.1.8 X-cart Affiliate X-cart configurator X-cart AOS X-cart image magnifier |
|||||||
#4
|
|||||||
|
|||||||
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.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
What do you recommend to move the store to root?
__________________
__________________ x-cart: 4.1.8 X-cart Affiliate X-cart configurator X-cart AOS X-cart image magnifier |
|||||||
#6
|
|||||||
|
|||||||
I don't like this method either.
__________________
__________________ x-cart: 4.1.8 X-cart Affiliate X-cart configurator X-cart AOS X-cart image magnifier |
|||||||
#7
|
|||||||
|
|||||||
Because the root directory is much more search engine friendly and visually appealing.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#8
|
|||||||
|
|||||||
Yes, that is why I am moving the store.
But is there a better way to do this?
__________________
__________________ x-cart: 4.1.8 X-cart Affiliate X-cart configurator X-cart AOS X-cart image magnifier |
|||||||
#9
|
|||||||
|
|||||||
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/','/')
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#10
|
|||||||
|
|||||||
thanks!
do I run the sql for icon and detailed image as well?
__________________
__________________ x-cart: 4.1.8 X-cart Affiliate X-cart configurator X-cart AOS X-cart image magnifier |
|||||||
|
|||
X-Cart forums © 2001-2020
|