Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2005
    Posts
    30
    Plugin Contributions
    0

    Adding Category Image to Main Category Items Page

    Hopefully my post title helps to describe the problem. Unfortunately I'm on a test server and have no actual website for anyone to look at. I did try searching but either I'm not hitting upon the correct keyword/keywords or this hasn't been addressed yet for 1.3.0.2

    What I'm trying to do is get the category image to appear on the category item listing page where the address bar would have index.php?main_page=index&cPath=1 which lists all the items for category 1.

    I've got the category images showing on the main and product pages, but can't seem to track down the right template for the category listing page. I'm wanting to have it either to the left of the category title or over to the far right of the page up near the top above the category description.

    If someone could point me to the correct template to edit, I would really appreciate it.

    Thank you in advance.

  2. #2
    Join Date
    Dec 2005
    Posts
    30
    Plugin Contributions
    0

    Default Re: Adding Category Image to Main Category Items Page

    I'm sorry, don't mean to bump my own thread here, but I have discovered the correct page to edit to get the icon code up on the index.php?main_page=index&cPath=1 page. It happens to be the tpl_index_product_list.php template. Why the word "list" in there didn't slap me while I was looking is anyone's guess.

    However I've run into another problem along the way. When I insert the code copied directly from the tpl_product_info_display.php page, I get the "Missing Image" gif instead of the graphic I uploaded when creating the category, which should be a basket of fruit. This displays correctly on both the main index and the product page when the appropriate switches are set, however, no luck on my new and certainly not yet improved product listing page.

    Here is my current code for product_list...
    Code:
    <div class="centerColumn" id="indexProductList">
    
    <h1 id="productListHeading"><?php echo $breadcrumb->last(); ?></h1>
    <!-- MODIFIED FOR TEMPLATE - charlow -->
    <?php
    /**
     * display the category icons
     */
    require($template->get_template_dir('/tpl_modules_category_icon_display.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_icon_display.php'); ?>
    <?php } ?>
    <!-- END MODIFICATION FOR TEMPLATE - charlow -->
    
    <?php
      if ($do_filter_list) {
      $form = zen_draw_form('filter', zen_href_link(FILENAME_DEFAULT), 'get') . '<label class="inputLabel">' .TEXT_SHOW . '</label>';
    ?>
    If the entire page code is needed, please let me know and I'll post it. Thanks again.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Adding Category Image to Main Category Items Page

    When you "edit" the category ... by clicking the green E ... you can change the category's name ... but you can also see the filename of its image .... what is that set to ?
    Does that match the name of the file you uploaded?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    May 2004
    Posts
    118
    Plugin Contributions
    0

    Default Re: Adding Category Image to Main Category Items Page

    Quote Originally Posted by DrByte
    When you "edit" the category ... by clicking the green E ... you can change the category's name ... but you can also see the filename of its image .... what is that set to ?
    Does that match the name of the file you uploaded?
    Dr. Byte,

    I'm having a similar problem in a store I just upgraded, subcategory images show but not category images...

    the url is http://www.jacksbargainbin.com/
    Please look at the candles category.

    Thanks in advance,

    Michael

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

    Default Re: Adding Category Image to Main Category Items Page

    If you mean show the Categories Image above the products_listing ... they are not coded to show ...

    I have several threads that explain how to show the categories_image that you might search for ... based on:

    categories_image

    It should bring up quite a selection to help you on 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: v1.5.5]
    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!

  6. #6
    Join Date
    May 2004
    Posts
    118
    Plugin Contributions
    0

    Default Re: Adding Category Image to Main Category Items Page

    thanks ajeh, I already did a workaround by adding the image to the category description.

    when you click on a product it displays the category image....but not just clicking on the main category.

    My guess is that this is a big issue in that subcategories have images but not categories.... just does not make a lot of sense that you have to have a subcategory to show an image..... I guess everyone has their own preferences as to how their stores look.

    Thanks again

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

    Default Re: Adding Category Image to Main Category Items Page

    The category image can be displayed on the product _info pages with a switch ...

    The products_listing does not show the categories_image unless you customize the code for it ... only a Category with SubCategories shows the images by default on the products_listing ...
    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: v1.5.5]
    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!

  8. #8
    Join Date
    Jul 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: Adding Category Image to Main Category Items Page

    I'm a newbie. Ive added a category and its image on a local server for the purpose of practice without any problem. I now want to do the same on a remote server. I add the category name and browse to the image that I want to use. When I click save, that image appears at the bottom of the page as it should but when I go to the online catelogue, the category name appears, but no image. Can anyone please help?

 

 

Similar Threads

  1. Removing main category image within sub category listing
    By robbin21973 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Jan 2013, 11:06 PM
  2. Category Image on Main - Remove Category Title
    By mountash in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 16 May 2010, 12:08 AM
  3. Featured Items on Main Page and category pages
    By KRW Knitwear in forum General Questions
    Replies: 10
    Last Post: 19 Nov 2008, 03:28 PM
  4. Category on Main Page Image Size
    By DigitalGuard in forum General Questions
    Replies: 3
    Last Post: 22 Jul 2008, 09:45 PM

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