| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
No subcategory images after move from root directory | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
No subcategory images after move from root directory
Hi All,
I have just moved my site from the root directory to a "/shop" directory. I have updated my config.php file with the below and mostly everything seems to be working fine: $xcart_web_dir ="/shop"; The problem I am having is that my subcategory images will no longer display. Once you select a subcategory the product images all display correctly, and if you select an individual product, this also displays fine. It just seems to be the subcategory images. http://www.livelovewed.com.au/shop/home.php?cat=277 I tried re-uploading a few images from the admin area, but this hasn't worked either. Any suggestions? Many Thanks
__________________
X-Cart Gold Version 4.0.19 |
|||||||
#2
|
|||||||
|
|||||||
Re: No subcategory images after move from root directory
Did you change your images location in the 'Images Location' area of the admin? You'll also need to run an SQL query to change the path in the database, like these:
update xcart_images set image_path = replace(image_path,'old','new') update xcart_icons set image_path = replace(image_path,'old','new') update xcart_thumbnails set image_path = replace(image_path,'old','new')
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Re: No subcategory images after move from root directory
Hello,
I ended up just needing to update my subcategories.tpl to reference "/shop/icon.php" rather than just /icon.php My images are all stored on the database. Now all works a treat. Thanks
__________________
X-Cart Gold Version 4.0.19 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: No subcategory images after move from root directory
I’m having a similar problem, only our shop was moved to another host and none of the product images are showing.
I’m using a file system so I figure it’s a path issue.
__________________
xCart 4.0.17 PHP 5.2.1 MySQL Server 4.0.26 MySQL Client 4.1.22 web Server: Apache/1.3.37 (Unix) mod_psoft_traffic/0.1 Vortech_PHP/0.1.0-p0 FrontPage/5.0.2.2623 mod_ssl/2.8.28 OpenSSL/0.9.7e-p1 |
|||||||||
#5
|
|||||||
|
|||||||
Re: No subcategory images after move from root directory
Yes, see the SQL queries I posted above - you'll need to update your db paths to the images.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||||
|
|||||||||
Re: No subcategory images after move from root directory
Can it be done from the xcart control panel?
__________________
xCart 4.0.17 PHP 5.2.1 MySQL Server 4.0.26 MySQL Client 4.1.22 web Server: Apache/1.3.37 (Unix) mod_psoft_traffic/0.1 Vortech_PHP/0.1.0-p0 FrontPage/5.0.2.2623 mod_ssl/2.8.28 OpenSSL/0.9.7e-p1 |
|||||||||
#7
|
|||||||
|
|||||||
Re: No subcategory images after move from root directory
Yes, from the Patch/Upgrade area under the SQL queries. Be careful though, you can make a real mess of things if you don't put the paths in correctly.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#8
|
|||||||||
|
|||||||||
Re: No subcategory images after move from root directory
Ok, so I need to put the path to the image in the query like so.
update xcart_thumbnails set image_path = replace(image_path,'/hsphere/local/home/aftermar/aftermarketparts.com/xcart/files/thumbnails ','/home/afterma1/public_html/xcart/files/thumbnails/') The old path was already in the box when I switched over the new is the xcart directory minus the files/thumbnails/.
__________________
xCart 4.0.17 PHP 5.2.1 MySQL Server 4.0.26 MySQL Client 4.1.22 web Server: Apache/1.3.37 (Unix) mod_psoft_traffic/0.1 Vortech_PHP/0.1.0-p0 FrontPage/5.0.2.2623 mod_ssl/2.8.28 OpenSSL/0.9.7e-p1 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|