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

No subcategory images after move from root directory

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-28-2007, 02:53 AM
 
achamber achamber is offline
 

Newbie
  
Join Date: Feb 2007
Posts: 3
 

Default 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
Reply With Quote
  #2  
Old 11-28-2007, 04:00 AM
 
balinor balinor is offline
 

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

Default 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
Reply With Quote
  #3  
Old 11-29-2007, 03:35 AM
 
achamber achamber is offline
 

Newbie
  
Join Date: Feb 2007
Posts: 3
 

Default 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
Reply With Quote
  #4  
Old 05-19-2008, 08:09 AM
  swifty's Avatar 
swifty swifty is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 38
 

Default 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
Reply With Quote
  #5  
Old 05-19-2008, 08:12 AM
 
balinor balinor is offline
 

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

Default 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
Reply With Quote
  #6  
Old 05-19-2008, 08:25 AM
  swifty's Avatar 
swifty swifty is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 38
 

Default 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
Reply With Quote
  #7  
Old 05-19-2008, 08:36 AM
 
balinor balinor is offline
 

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

Default 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
Reply With Quote
  #8  
Old 05-19-2008, 09:07 AM
  swifty's Avatar 
swifty swifty is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 38
 

Default 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
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 06:19 PM.

   

 
X-Cart forums © 2001-2020