Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    May 2006
    Location
    Scotland
    Posts
    198
    Plugin Contributions
    0

    Default Re: Category Images Not Displaying

    Quote Originally Posted by Ajeh View Post
    If you do a search in the Tools ... Developers Tool Kit ... in the bottom input box and search the Catalog for:
    categoryImgListing

    What files come up?
    templates/iC_AcadameV1.2/templates/tpl_index_product_list.php
    templates/template_default/templates/tpl_index_categories.php
    templates/template_default/templates/tpl_index_product_list.php

  2. #12
    Join Date
    May 2006
    Location
    Scotland
    Posts
    198
    Plugin Contributions
    0

    Default Re: Category Images Not Displaying

    Quote Originally Posted by Ajeh View Post
    Also check the files:
    /includes/templates/template_default/templates/tpl_index_categories.php
    /includes/templates/your_template_dir/templates/tpl_index_categories.php

    has something changed to not call the right image? Or is something forcing the pixel image to be used?
    Neither of these files have been touched since install and the images were displaying just fine until recently

  3. #13
    Join Date
    Jun 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Category Images Not Displaying

    Hi,

    We're also experiencing the exact same problem. Top level category images are not displaying on sub category / product index pages. We have checked the settings listed earlier in this post.

    Andy

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Category Images Not Displaying

    Have you an URL where we can peek at this?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #15
    Join Date
    Jul 2006
    Posts
    42
    Plugin Contributions
    0

    Default Re: Category Images Not Displaying

    add the following code after LINE 43 at the file -\includes\templates\YOUR TEMPLATE\sideboxes\tpl_categories.php


    // categories_image
    $categorySelect = str_replace('cPath=','',$box_categories_array[$i]['path']);
    $categories_image = zen_get_categories_image($categorySelect);
    $myCategoryImage = zen_image(DIR_WS_IMAGES . $categories_image, 'Click for details', '275', '275');
    //


    $content .= $myCategoryImage;
    $content .= '<br /> <br />' . "\n";
    // end adding image code



    i hope this is the right solution, i do the same thing. can refer to the site

    http://www.tom2u.com

    see if this is the categories image you want.

    hope it help...thank you

  6. #16
    Join Date
    Jun 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Category Images Not Displaying

    Hi, solved the problem, might not be the most elegant solution but here we go:

    comment out the original if{ statement on line 22 in tpl_index_product_list.php (IN YOUR TEMPLATE FOLDER) then paste the following below it:

    PHP Code:
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // REDPAINT MODIFICATION TO SHOW TOP CATEGORY IMAGE
    define(TOP_CATEGORY_ID,substr($cPath0strpos($cPath'_')));
    $top_image_exists zen_get_categories_image(TOP_CATEGORY_ID);
    if(!empty(
    $top_image_exists)) {
    $categories_image zen_get_categories_image(TOP_CATEGORY_ID);
    // END MODIFICATION
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    That's it. Although you may need some CSS styling to get it to look how you want it. Hope this helps others.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Sub category images not displaying
    By bddots in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 May 2011, 07:42 PM
  2. Displaying Category Images instead of product images
    By Jongle in forum Customization from the Admin
    Replies: 6
    Last Post: 27 Aug 2008, 12:19 PM
  3. Category Images Not Displaying
    By high2K in forum General Questions
    Replies: 2
    Last Post: 30 Jul 2007, 08:54 AM
  4. Category/SubCategory images not displaying
    By Daveage in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 24 May 2006, 03:27 PM

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