Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2005
    Posts
    38
    Plugin Contributions
    0

    Default Sub-Category images

    I’ve had my template for several years and have never used category images. I now have one sub-category where I want the images to show up on the category page. After searching thru the forums I changed:

    Admin/Configuration/Product Listing to:
    Include Product Listing Sub Categories Image true
    Include Product Listing Top Categories Image true

    I have uploaded images to the categories, but they still aren’t showing up. I’m guessing it must be something in my template, but I can’t find it. Any idea what it could be?

    Here is a link to a page https://www.scrappinstuff.com/store/...-center-c-210/

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Sub-Category images

    Use your admin's Tools->Developers Tool Kit to search all catalog/storefront files for PRODUCT_LIST_CATEGORIES_IMAGE_STATUS and PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP, respectively. That will identify where in the various templates those database-constant definitions are used.

  3. #3
    Join Date
    Sep 2005
    Posts
    38
    Plugin Contributions
    0

    Default Re: Sub-Category images

    I searched for those and found it in my templates/tpl_index_categories.php file

    It says

    if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS == 'true') {
    // categories_image
    if ($categories_image = zen_get_categories_image($current_category_id)) {
    ?>
    <div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', CATEGORY_ICON_IMAGE_WIDTH, CATEGORY_ICON_IMAGE_HEIGHT); ?></div>

    Isn't that saying that the images should be showing up?

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Sub-Category images

    That's saying that if the image exists, display it. When I do a "View Source" (Ctrl+U) on that page, I find no elements with id="categoryImgListing", which says to me that the image wasn't found.

  5. #5
    Join Date
    Sep 2005
    Posts
    38
    Plugin Contributions
    0

    Default Re: Sub-Category images

    That's weird because they are showing up on the admin side. And if I just put the image name in the browser it shows up.

    https://www.scrappinstuff.com/store/...100-Cowboy.jpg
    Attached Images Attached Images  

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Sub-Category images

    Hmm, if I click on 100% Cowboy Layout on the link you posted initially, that image does display.

  7. #7
    Join Date
    Sep 2005
    Posts
    38
    Plugin Contributions
    0

    Default Re: Sub-Category images

    Quote Originally Posted by lat9 View Post
    Hmm, if I click on 100% Cowboy Layout on the link you posted initially, that image does display.
    Are you talking about the little image under the name? Or the larger image. The larger one is hard coded in the description.

    What I want is the category image to show above the category name on the https://www.scrappinstuff.com/store/...-center-c-210/ page.
    Attached Images Attached Images  

  8. #8
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,239
    Plugin Contributions
    1

    Default Re: Sub-Category images

    Quote Originally Posted by KathyG View Post
    What I want is the category image to show above the category name on the https://www.scrappinstuff.com/store/...-center-c-210/ page.
    The code for the display of these images is in includes/modules/YOUR_TEMPLATE/category_row.php. You can see that the call to the image is inside a "categoryListBoxContents" div.

    That's where I would begin to look. Does the image appear if you switch to Zen Cart classic template? If it does then there's probably something awry in your template's copy of category_row.php
    Simon

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Sub-Category images

    Quote Originally Posted by simon1066 View Post
    The code for the display of these images is in includes/modules/YOUR_TEMPLATE/category_row.php. You can see that the call to the image is inside a "categoryListBoxContents" div.

    That's where I would begin to look. Does the image appear if you switch to Zen Cart classic template? If it does then there's probably something awry in your template's copy of category_row.php
    Spot-on, @simon1066!

  10. #10
    Join Date
    Sep 2005
    Posts
    38
    Plugin Contributions
    0

    Default Re: Sub-Category images

    Thank you so much to the both of you for the help. I've got it mostly fixed now. The includes/modules/YOUR_TEMPLATE/category_row.php file was didn't have the image in it.

 

 

Similar Threads

  1. v151 Display images of Sub-Sub category in Main page while navigating.
    By Javier Romero in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 May 2013, 10:02 AM
  2. Replies: 1
    Last Post: 1 May 2013, 10:20 PM
  3. Remove category, sub category, big links silly stock images....
    By joyjoy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Sep 2010, 10:31 AM
  4. How to NOT display sub sub category images?
    By magneteye in forum General Questions
    Replies: 19
    Last Post: 11 Apr 2009, 05:09 AM
  5. Getting sub category images to show up on the main category page
    By VigilantWine in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 16 Feb 2009, 09:45 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR