网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站建设 > X-Cart
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   IP: 49.87.142.10
Old 2014-04-11, 06:27 PM
Ubly Ubly is offline
初级会员
 
Join Date: 2005-06-04
Posts: 1
Ubly 现在声名狼藉
Default Changing the path for X-cart Images

So you've made that excellent choice to move your x-cart site away from your crowded old host to Hands-On, but now your product images are broken. Here's why, and how to fix it. Some hosts have so many people on a server that they'll make multiple home directories to help them keep things organized. So instead of your path being something like this:

/home/yourusername/public_html/shop/files/images/ --- your old host had your files in an alternate home directory, such as
/home2/yourusername/public_html/shop/files/images/

Or maybe your old host just had a different directory structure all together. What you know is that the images aren't showing up, that your x-cart update path tool isn't working, and that it would take you forever to fix each entry in the database one by one. Luckily there's an easy fix. One of our admins would be happy to implement this for you if you need help, but for the do-it-yourselfer, here are the steps:

1) Log into cpanel and click on backups. Create a backup of your database just in case.
2) Go back to the main cpanel page and click phpMyAdmin
3) Select your x-cart database
4) Click on SQL and run the following commands, after verifying the old and new paths are correct:

update xcart_thumbnails set image_path = replace(image_path,'home2','home');
update xcart_images set image_path = replace(image_path,'home2',' 'home);
update xcart_icons set image_path = replace(image_path,'home2','home');

This step assumes that your old hosts home directory was called home2 . If it was home3, you'd use home3 in the above commands. If you had some other path, you can tweak the string accordingly, however we are happy to have an admin do this whole procedure for you if you will simply enter a ticket with us requesting it. Once the query is correct, it takes just a few seconds to run and fix whatever path problems you had. Refresh your page and you should now see your images.. and a faster loading store, too. Enjoy!
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Modify Zen Cart to Use External Images 上海公司注册 ZenCart 0 2012-06-21 11:56 AM
Zen Cart: Re-routing 404 errors to your index page topvip ZenCart 0 2012-04-08 07:59 AM
How to Install an Zen Cart Template topvip ZenCart 0 2009-08-23 05:35 PM
x-cart Template Editing Guide for 4.1.x topvip X-Cart 0 2009-04-15 11:42 PM
x-cart Get rid off "Your Company Name" in path location topvip X-Cart 1 2009-03-10 09:20 AM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 11:08 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.