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

Change Image locations back and forth many times

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-06-2006, 11:47 AM
 
jc2002 jc2002 is offline
 

Member
  
Join Date: Aug 2005
Posts: 28
 

Default 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
Reply With Quote
  #2  
Old 04-06-2006, 12:02 PM
 
balinor balinor is offline
 

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

Default

Why would you want the images in the DB?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-06-2006, 12:11 PM
 
jc2002 jc2002 is offline
 

Member
  
Join Date: Aug 2005
Posts: 28
 

Default

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
Reply With Quote
  #4  
Old 04-06-2006, 12:14 PM
 
balinor balinor is offline
 

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

Default

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
Reply With Quote
  #5  
Old 04-06-2006, 12:17 PM
 
jc2002 jc2002 is offline
 

Member
  
Join Date: Aug 2005
Posts: 28
 

Default

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
Reply With Quote
  #6  
Old 04-06-2006, 12:18 PM
 
jc2002 jc2002 is offline
 

Member
  
Join Date: Aug 2005
Posts: 28
 

Default

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
Reply With Quote
  #7  
Old 04-06-2006, 12:23 PM
 
balinor balinor is offline
 

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

Default

Because the root directory is much more search engine friendly and visually appealing.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 04-06-2006, 12:24 PM
 
jc2002 jc2002 is offline
 

Member
  
Join Date: Aug 2005
Posts: 28
 

Default

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
Reply With Quote
  #9  
Old 04-06-2006, 12:28 PM
 
balinor balinor is offline
 

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

Default

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
Reply With Quote
  #10  
Old 04-06-2006, 12:32 PM
 
jc2002 jc2002 is offline
 

Member
  
Join Date: Aug 2005
Posts: 28
 

Default

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
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 11:43 AM.

   

 
X-Cart forums © 2001-2020