Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: subcategory image

    I believe the file with the relevant code will be /includes/templates/your_template/templates/tpl_index_product_list.php.

  2. #2
    Join Date
    Jul 2012
    Posts
    58
    Plugin Contributions
    0

    Default Re: subcategory image

    k i will look in there next.

    this is what i am looking to do

    http://shop.kelleymotorsports.com/te...dex&cPath=2_35

    so when you actually go into that section of parts they can refer to the break down at the top.

    follow me?

  3. #3
    Join Date
    Jul 2012
    Posts
    58
    Plugin Contributions
    0

    Default Re: subcategory image

    theres more to the file but i'm assuming it has something to do with this section?

    <?php
    /**
    * Page Template
    *
    * Loaded by main_page=index<br />
    * Displays product-listing when a particular category/subcategory is selected for browsing
    *
    * @package templateSystem
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: tpl_index_product_list.php 6009 2007-03-13 23:56:45Z ajeh $
    */
    ?>
    <div class="centerColumn" id="indexProductList">

    <h1 id="productListHeading"><?php echo $breadcrumb->last(); ?></h1>

    <?php if ( (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS == 'true' && $categories_image = zen_get_categories_image($current_category_id)) || $current_categories_description != '') { ?>

    <div class="tie3 text2 tie-margin1">
    <div class="tie3-indent">
    <strong>Property categories:</strong>

    <div class="wrapper" id="indexProductListCatDescription">

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

    <?php
    // categories_description
    if ($current_categories_description != '') {
    ?>
    <div class="content_desc"> <?php echo $current_categories_description; ?> </div>
    <?php } // categories_description ?>

    </div>

    </div>
    </div>

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: subcategory image

    PHP Code:
    <?php /*
    <div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', CATEGORY_ICON_IMAGE_WIDTH, CATEGORY_ICON_IMAGE_HEIGHT); ?></div>
    */
    ?>
    The /* and */ are commenting out the category image, preventing it from displaying no matter what you set in admin. This is shoddy template design, deciding for the user what they will be allowed to do.
    Remove the <?php /* and */?> and you will see the image.

  5. #5
    Join Date
    Jul 2012
    Posts
    58
    Plugin Contributions
    0

    Default Re: subcategory image

    amazing! thank you soooo much!!!

    now one last question on this... is there any way to remove the sub category image when you are viewing the product details? it stays the same 500x500 like the product listing page. if not thats ok i can deal with it but if there is a way that would be sweet!. or should i keep it for customers to refer to again? thoughts are also appreciated. now if someone could possibly help with my sale items with attributes not showing sale price when added to the cart i would be set!!

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: subcategory image

    Configuration > Product Info > Previous Next - Navigation Includes Category Name and Image Status.

  7. #7
    Join Date
    Jul 2012
    Posts
    58
    Plugin Contributions
    0

    Default Re: subcategory image

    and again, thank you! if you have any input on the tires not showing the sale price in the cart let me know.

 

 

Similar Threads

  1. Repositioning 'Category Icon Image' and ''Top Subcategory Image'
    By ingoito in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 25 Jan 2009, 01:35 PM
  2. Subcategory Image with html image map?
    By j1l2i3p4k5i6n7g8 in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 8 Jan 2009, 01:23 AM
  3. Usa an image with maps as a category image instead of subcategory images
    By ychousa in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 23 May 2008, 07:06 PM
  4. display category image and subcategory image
    By Xaria in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Mar 2008, 11:12 AM
  5. Subcategory image same as category image!
    By Karole in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 9 Apr 2007, 11:00 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