Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Nov 2006
    Location
    Brighton, CO
    Posts
    90
    Plugin Contributions
    0

    Default Re: How to NOT display sub sub category images?

    All good tips for getting rid of SUB-category or Category images...

    Maybe I'm missing something, here...help me out.

    Unless I personally delete any value from:

    Subcategory Image Width
    Subcategory Image Height

    in Admin > Configuration > Images

    I personally get what appears to be double rows of sub-categories while viewing the site in FIREFOX. This is not actually two rows of sub-categories, but the ALT tag in a missing image above the sub-category itself.

    The ONLY solution I have found is to delete any value from the above mentioned.

    Try it out on a site with sub-categories and view the site in FIREFOX.

    I have over 60 stores and adding more - if there is a quicker, more efficient way of eliminating sub-category images from showing up in ANY browser, I'm all for it.

    Thanks!
    Last edited by Convergence; 7 Dec 2008 at 05:58 PM.

  2. #12
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: How to NOT display sub sub category images?

    Quote Originally Posted by Convergence View Post
    All good tips for getting rid of SUB-category or Category images...

    Maybe I'm missing something, here...help me out.

    Unless I personally delete any value from:

    Subcategory Image Width
    Subcategory Image Height

    in Admin > Configuration > Images

    I personally get what appears to be double rows of sub-categories while viewing the site in FIREFOX. This is not actually two rows of sub-categories, but the ALT tag in a missing image above the sub-category itself.

    The ONLY solution I have found is to delete any value from the above mentioned.

    Try it out on a site with sub-categories and view the site in FIREFOX.

    I have over 60 stores and adding more - if there is a quicker, more efficient way of eliminating sub-category images from showing up in ANY browser, I'm all for it.

    Thanks!
    You should post a link to the page this appears on..

    My post answers the OPs original question and deals with removing the category and subcategory icons from the product information and product category listing pages.. (which is what the OP was asking about..)

    My primary browser is Firefox, so my results ARE based on viewing it in Firefox.. (I always test in Firefox first and IE second. Since IE is NOT a standards compliant browser, I make sure a site works in Firefox FIRST) It works perfectly as expected in Firefox, and it works with categories and SUB categories.. Here's another example (this site has sub-categories).

    Product Information Page:
    http://clients.overthehillweb.com/my...roducts_id=209

    Sub-Category Listing Page:
    http://clients.overthehillweb.com/my...ex&cPath=16_82

    It sounds to me like you've got something else going on with your site, and the only way to know is to see a link to the offending page..

  3. #13
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: How to NOT display sub sub category images?

    One more thing to add.. If using CSS or the available admin functions DO NOT turn off your category icons on the product information page or the category listing page, then you've likely got something else interfering with your normal cart functions..

    The links I posted above (The My Beauty Addiction site) used to be controlled via the stylesheet as follows:
    Code:
    .categoryIcon {
         display: none;
         }
    While the CSS fix did the trick just fine, I just switched it a few minutes ago to show you that the admin fix I posted does work with sub categories.

    The CSS fix removes the category icons from both the product information page AND the category listing page.. The admin function allows you to turn the category icons off on one page while leaving them available on the other. (ie: turn off on the category listing page, but leave on on the product information page)

    Quote Originally Posted by Convergence View Post
    I personally get what appears to be double rows of sub-categories while viewing the site in FIREFOX. This is not actually two rows of sub-categories, but the ALT tag in a missing image above the sub-category itself.
    It has just occurred to me as I type this that you are indeed not talking about the same thing the OP was inquiring about.

    It occurred to me that you might be talking about the category page which would shows links to all of the sub-categories if they are used (which is NOT the same thing as the category listing page -- the subject of the OPs post). If we use my clients site as an example, it sounds like you are referring to this page: http://clients.overthehillweb.com/my...index&cPath=16

    If that's the case, then it sounds like you had subcategory images at one time, and then tried to remove the sub-category images, and Zen still shows a reference to a non existing image. (if this is what happened, it's a common error.. and I am guessing that this is what happened since you have not posted a link to the offending page) ZenCart is kind funky, and if you did not correctly remove the sub-category images, you will get the empty images and the ALT tags showing in Firefox.

    This is why Firefox is the better browser to test in.. IE does not correctly display the page giving one the impression that it works in IE but not in Firefox.. The truth is Firefox is displaying what is REALLY happening with your page while IE is covering it up..

    In any case, to fix this you need to remove the sub-catgory images by editing the actual sub-categories. When you edit the sub-category you need to go to
    "Delete Image? NOTE: Removes Image from Product, Image is NOT removed from server:"
    Select YES and save your sub category. The empty ALT tag should disappear.
    Last edited by DivaVocals; 7 Dec 2008 at 07:45 PM.

  4. #14
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: How to NOT display sub sub category images?

    One last thought.. There's another reason why your solution is not necessarily the best solution..

    Category icons appear in a few primary locations:

    • To display the top level categories on the main page (if the appropriate settings are used in the admin)
    • To display the sub-categories on the category display (if sub categories are used)
    • Product Information Page
    • Category Product Listing Page

    Your solution will remove the category icons from EVERYWHERE they appear in ZenCart. At the risk of stating the obvious, honestly, the EASIEST way to have no category icons appear anywhere in ZenCart is to simply NOT add an image to the category (or sub-catgory) at all when you create it.

    While what you suggest as a solution appears to solve YOUR immediate problem, I suspect it does so because your categories still have a reference to an old category image that was not cleared completely. (Again since you have not posted a link.. I am GUESSING, but I believe if you do clean up your categories, that you will find your issue will be resolved) If you want to control where the category icons appear, there are much better ways to do this than what you suggest.

    The options I posted can be used to control the appearance of the category icons on the Product Information Page & Category Product Listing Page. The top level categories appearing on the main page are controlled by the admin, and sub-categories icons appearing on the category pages can be controlled by simply not adding an image to your sub-categories when you create them.

    That said the only thing I CANNOT find is an admin or CSS solution for NOT displaying the category or sub-category icon images on the category displays while still alllowing category icons to be displayed on the Product Information & Category Product Listing pages.

    It appears that the display of category icons on the category displays (top level or sub-categories) is an all or none option unless you edit the tpl_main_page.php file so that only the category name but not the category image appears on the category & sub-category displays.

    Quote Originally Posted by Convergence View Post
    All good tips for getting rid of SUB-category or Category images...

    Maybe I'm missing something, here...help me out.

    Unless I personally delete any value from:

    Subcategory Image Width
    Subcategory Image Height

    in Admin > Configuration > Images


    I personally get what appears to be double rows of sub-categories while viewing the site in FIREFOX. This is not actually two rows of sub-categories, but the ALT tag in a missing image above the sub-category itself.

    The ONLY solution I have found is to delete any value from the above mentioned.

    Try it out on a site with sub-categories and view the site in FIREFOX.

    I have over 60 stores and adding more - if there is a quicker, more efficient way of eliminating sub-category images from showing up in ANY browser, I'm all for it.

    Thanks!

  5. #15
    Join Date
    Oct 2006
    Location
    Scotland
    Posts
    55
    Plugin Contributions
    0

    Default Re: How to NOT display sub sub category images?

    In response to the earlier post in which the person wanted to remove the image link which appears above the sub-category name (when selecting a top category from the sidebox)...

    You can edit includes/modules/{your_template}/category_row.php.

    Replace
    Code:
     
    'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES .  $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT, 'class="categoryImg"') . ' <br />' . $categories->fields['categories_name'] . '</a>');
    with
    Code:
     
     'text' =>  $categories->fields['categories_name'] );
    If you do everything in Admin to switch off sub-category images this is the only way I have found to completely remove the image not found link.

  6. #16
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: How to NOT display sub sub category images?

    Quote Originally Posted by sparklefish View Post
    In response to the earlier post in which the person wanted to remove the image link which appears above the sub-category name (when selecting a top category from the sidebox)...

    You can edit includes/modules/{your_template}/category_row.php.

    Replace
    Code:
     
    'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES .  $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT, 'class="categoryImg"') . ' <br />' . $categories->fields['categories_name'] . '</a>');
    with
    Code:
     
     'text' =>  $categories->fields['categories_name'] );
    If you do everything in Admin to switch off sub-category images this is the only way I have found to completely remove the image not found link.
    If have you turned off everything in the admin and are still getting the image not found link, then it is likely that you have a "phantom" image reference still in your category setup... Look at your category page.. If you see a reference to an image (see my attachment to see what I mean), then you need to clear the image reference, and the problem will disappear.. You can do that by setting "Delete Image?" to "Yes" and then saving the category..

    Either fix that or simply use your style sheet to suppress the display of the images.. These are both much better solution than hacking at the core code to do this..
    Attached Images Attached Images  

  7. #17
    Join Date
    Nov 2006
    Location
    Brighton, CO
    Posts
    90
    Plugin Contributions
    0

    Default Re: How to NOT display sub sub category images?

    Quote Originally Posted by DivaVocals View Post
    One last thought.. There's another reason why your solution is not necessarily the best solution..

    Category icons appear in a few primary locations:

    • To display the top level categories on the main page (if the appropriate settings are used in the admin)
    • To display the sub-categories on the category display (if sub categories are used)
    • Product Information Page
    • Category Product Listing Page

    Your solution will remove the category icons from EVERYWHERE they appear in ZenCart. At the risk of stating the obvious, honestly, the EASIEST way to have no category icons appear anywhere in ZenCart is to simply NOT add an image to the category (or sub-catgory) at all when you create it.

    While what you suggest as a solution appears to solve YOUR immediate problem, I suspect it does so because your categories still have a reference to an old category image that was not cleared completely. (Again since you have not posted a link.. I am GUESSING, but I believe if you do clean up your categories, that you will find your issue will be resolved) If you want to control where the category icons appear, there are much better ways to do this than what you suggest.

    The options I posted can be used to control the appearance of the category icons on the Product Information Page & Category Product Listing Page. The top level categories appearing on the main page are controlled by the admin, and sub-categories icons appearing on the category pages can be controlled by simply not adding an image to your sub-categories when you create them.

    That said the only thing I CANNOT find is an admin or CSS solution for NOT displaying the category or sub-category icon images on the category displays while still alllowing category icons to be displayed on the Product Information & Category Product Listing pages.

    It appears that the display of category icons on the category displays (top level or sub-categories) is an all or none option unless you edit the tpl_main_page.php file so that only the category name but not the category image appears on the category & sub-category displays.
    Sorry for not replying sooner - as I've been on other projects.

    One of the things I forget to mention, and don't know if it makes a difference, is we use the stores as catalogs only, ie: Showcase Mode -

    Also, these stores were previously on a server running php4 - when we upgraded to a new server running php5 - OUR solution no longer worked as we needed to select "Image Required" in order for product images to show up on the product info pages - seems what we did worked with php4 but NOT with php5.

    Now WE are having problems, LOL, with the alto text showing where there is no image. While there is NO image uploaded for sub-categories in Categories/Products the image being displayed is pixel_trans.gif -

    Anyone want to revisit this?

    Thanks!

  8. #18
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: How to NOT display sub sub category images?

    Quote Originally Posted by Convergence View Post

    Now WE are having problems, LOL, with the alto text showing where there is no image. While there is NO image uploaded for sub-categories in Categories/Products the image being displayed is pixel_trans.gif -

    Anyone want to revisit this?

    Thanks!
    The post right above yours might be the answer.. Basically you need to delete the reference to the non-existent image from your category..

  9. #19
    Join Date
    Nov 2006
    Location
    Brighton, CO
    Posts
    90
    Plugin Contributions
    0

    Default Re: How to NOT display sub sub category images?

    Quote Originally Posted by DivaVocals View Post
    The post right above yours might be the answer.. Basically you need to delete the reference to the non-existent image from your category..
    :) Trust me - there are no images in the categories. Never have been. This is very strange stuff.

  10. #20
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: How to NOT display sub sub category images?

    Quote Originally Posted by Convergence View Post
    :) Trust me - there are no images in the categories. Never have been. This is very strange stuff.
    Well one of the best places to start troubleshooting is to see if the issue persists when switching back to the classic template.. The other thing is to check your categories tables.. make sure the image reference isn't there..

 

 
Page 2 of 2 FirstFirst 12

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. v150 How to display Top Cat & Sub Cat but not Sub Sub Cats??
    By spiggles87 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Mar 2013, 06:37 PM
  4. Display sub cat names as text not images on category page
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Jun 2010, 05:00 PM
  5. How do I display sub category images?
    By marinochka13 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Feb 2008, 07:49 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