Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2008
    Posts
    103
    Plugin Contributions
    0

    Default Add category counts to main pages? Not just side menu?

    Is there an easy way to add category counts to the menus on the main content portion of my site, rather than just the site menus on the left? What's happening is my customers are navigating through the site using the category images, rather than the side menus. Then, they occasionally get to a category that does not currently have any products in it, which if the category counts could show, it would save a click. I don't want to turn the categories off, because I want people to know we carry those products, but that we just don't have any at the moment. That way they can always come back to check to see if we got any in.

    As always, your help is greatly appreciated!

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default Re: Add category counts to main pages? Not just side menu?

    Nothing turns me off more than finding an item in Google and winding up on a site that says "Sorry, your search returned no results." This seems to be giving the same impression to the customer.
    Wouldn't it be a more positive experience if you told them that the Super Widgets will be in soon and subscribe to our newsletter to be one of the first to know?

  3. #3
    Join Date
    Jan 2008
    Posts
    103
    Plugin Contributions
    0

    Default Re: Add category counts to main pages? Not just side menu?

    I understand what you're saying, but the products we stock aren't the same item over and over again, in most cases at least. In these categories, we might get several unique items in over the course of several months, and would not be restocked necessarily. That's why I'd like to keep the category active (so the customer knows we carry this particular type of product), but not disable it entirely. While the newsletter is a nice idea (we encourage this already), it doesn't accomplish 100% of what I'm trying to do.

  4. #4
    Join Date
    Jan 2008
    Posts
    103
    Plugin Contributions
    0

    Default Re: Add category counts to main pages? Not just side menu?

    Anyone else have any ideas on this one? I copied some code from the categories sidebox, and can get the prefix and suffix to appear, but not the counts. If someone could give me some direction I would greatly appreciate it. In the modules/category_row.php file, I edited the code to look like this:

    Code:
        $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
                                               '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) . '<br />' . $categories->fields['categories_name'] . '</a>' . CATEGORIES_COUNT_PREFIX . $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX);
    I know I need to change the middle piece in order to generate a count, or perhaps reference the sidebox file somewhere so it can pull the data, but to be honest I just don't know what the next step is.

    Thanks!

 

 

Similar Threads

  1. Category Counts with CSS Flyout Menu
    By dlwwalton in forum Addon Sideboxes
    Replies: 3
    Last Post: 1 Sep 2012, 01:07 AM
  2. Click category to show subcategory in the side menu but not in the main content box
    By dealbyethan.com in forum Setting Up Categories, Products, Attributes
    Replies: 23
    Last Post: 3 Mar 2011, 03:04 PM
  3. estorenow template: Category Counts Not Show
    By wokaozabuxing in forum Addon Templates
    Replies: 12
    Last Post: 27 Oct 2010, 05:51 AM
  4. Disable Category Counts in Store Main Page
    By pedroalb80 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Jan 2010, 08:12 PM
  5. CSS Flyout Category Menu Show Counts
    By lloyd_borrett in forum Addon Sideboxes
    Replies: 1
    Last Post: 2 Feb 2008, 05:12 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