Forums / General Questions / Product Images not showing

Product Images not showing

Views: 805

Results 1 to 5 of 5
9 Aug 2013, 4:20 PM
#1
newebirl avatar

newebirl

New Zenner

Join Date:
Aug 2009
Posts:
16
Plugin Contributions:
0

Product Images not showing

I have spent the day searching the web for a solution to this problem but I can't find anything that works.

Everything in the cart is working fine but when I try to add an image to a product it won't display.
I also noticed that one or two other images are not showing, for example the English icon next to the comments box on each product.

I can't seem to find a solution to get the product images to display.

Can anyone help with this please.

Alan

9 Aug 2013, 6:03 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Product Images not showing

Please provide a link to the site in this format: yoursite(DOT)com.

10 Aug 2013, 12:34 PM
#3
newebirl avatar

newebirl

New Zenner

Join Date:
Aug 2009
Posts:
16
Plugin Contributions:
0

Re: Product Images not showing

The address to the site is
http://thevickerys.eu/zen

I have managed to get the images loading on the product page but they are not showing on the product edit/create page.

I changed the confugure.php file items below as follows

FROM

define('DIR_WS_IMAGES', 'images/');

TO

define('DIR_WS_IMAGES', 'zen/images/');

When I did this the products showed up as expected but they are not showing in the product edit page.
How do I get them to work on all pages.

I tried adding the zen/ path to each line of code such as

  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'zen/languages/');

But this had no effect.

11 Aug 2013, 4:42 AM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,854
Plugin Contributions:
18

Re: Product Images not showing

You might want to consider moving the cart from zen to the root directory. If your cart is not in the /Zen directory of your site, we have a different problem.

But, based on the assumption that somehow your site got in the /zen directory through other than normal steps, you are confusing the site by putting zen in too many places.

IF YOUR CART IS IN THE /ZEN DIRECTORY:

In the cart's configure file (includes/configure.php) you need to change around lines 26 and 27> define('DIR_WS_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');would become> define('DIR_WS_CATALOG', 'zen/');
define('DIR_WS_HTTPS_CATALOG', 'zen/');None of the other "WS" defines would need zen so remove it from any where it exists. IOW, your> define('DIR_WS_IMAGES', 'zen/images/');would need to go back to> define('DIR_WS_IMAGES', 'images/');That takes care of the Web Server (WS) directories for the cart.

Next, you need to take care of the File System Directories (FS). Around line 42, you'll find the define for DIR_FS_CATALOG. That should be changed to add zen/ AFTER the end of the link (generally ends in public_html/) so that it would be ......./public_html/zen/

Lastly, for the cart's configure file, around line 65 you'll find the define for the DIR_FS_SQL_CACHE. Here you will need to add zen/ **BETWEEN **.../public_html/ and cache. The result should look like ....public_html/zen/cache.

Hopefully you didn't go adding a bunch of extra Zen in the Admin's configure file.

In the configure file for YOUR_ADMIN directory (YOUR_ADMIN/includes/configure.php) there are two defines for the Web Server (WS) catalog -- DIR_WS_CATALOG and DIR_WS_HTTPS_CATALOG. Both of those should be set to zen/ versus just /.

Also, you will need to change the DIR_FS_CATALOG to add zen/ AFTER the .../public_html/

Lastly for the configure file in YOUR_ADMIN, you'll need to do the same thing for DIR_FS_SQL_CACHE that you did for the cart's configure file.

PLEASE NOTE: None of this should have happened in an installation or an upgrade if the instructions were followed correctly. Regardless of which directory the original installation/upgrade used, the system would recognize the location and automatically set the WS and FS settings correctly in BOTH configure.php files.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

11 Aug 2013, 6:42 AM
#5
newebirl avatar

newebirl

New Zenner

Join Date:
Aug 2009
Posts:
16
Plugin Contributions:
0

Re: Product Images not showing

Thank you for your detailed reply.

I have the cart in sub directory as a Wordpress site is running on the root. This will be a cart that is added to the existing site.
I have implemented your changes and it's working fine now.

Thanks again.