Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Posts
    17
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Product Images not showing

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

  3. #3
    Join Date
    Aug 2009
    Posts
    17
    Plugin Contributions
    0

    Default 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
    Code:
    define('DIR_WS_IMAGES', 'images/');
    TO
    Code:
    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
    Code:
      define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'zen/languages/');
    But this had no effect.

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,700
    Plugin Contributions
    11

    Default 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.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Aug 2009
    Posts
    17
    Plugin Contributions
    0

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

 

 

Similar Threads

  1. Images in product not showing
    By piush in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 2 Nov 2011, 08:24 PM
  2. Product Images not showing
    By mggerardo in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 22 Jul 2011, 06:15 PM
  3. Product Images Not Showing Up
    By stuffonmycat in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 18 May 2009, 09:17 PM
  4. Product Images not showing up.
    By kinget in forum Setting Up Categories, Products, Attributes
    Replies: 19
    Last Post: 17 Aug 2007, 11:28 PM
  5. Product images not showing in IE on OS X
    By marke in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 May 2006, 01:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg