X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   No subcategory images after move from root directory (https://forum.x-cart.com/showthread.php?t=35762)

achamber 11-28-2007 02:53 AM

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

balinor 11-28-2007 04:00 AM

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')

achamber 11-29-2007 03:35 AM

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

swifty 05-19-2008 08:09 AM

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.

balinor 05-19-2008 08:12 AM

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.

swifty 05-19-2008 08:25 AM

Re: No subcategory images after move from root directory
 
Can it be done from the xcart control panel?

balinor 05-19-2008 08:36 AM

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.

swifty 05-19-2008 09:07 AM

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/.


All times are GMT -8. The time now is 03:14 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.