Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: move Sub Categories Count

    can help me with this php coding?

  2. #12
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: move Sub Categories Count

    Quote Originally Posted by mtechama View Post
    can help me with this php coding?
    No One?!?!

  3. #13
    Join Date
    Nov 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: move Sub Categories Count

    I'd be interested in this as well. Seems like it would only be a simple snipit of code to add but I'm clueless as to what it would be.

  4. #14
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: move Sub Categories Count

    is there anyone going to help or not. I like to get this going......

  5. #15
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: move Sub Categories Count

    is there anyone can help me on this????????

  6. #16
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: move Sub Categories Count

    Can anyone able to help me on this?


    Wade

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

    Default Re: move Sub Categories Count

    I think it's obvious that none of the volunteers who know how are interested in spending time on that problem.
    You might post in Commercial Help Wanted if it is really important to you.

  8. #18
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: move Sub Categories Count

    Look at the module named Simple Category Tree under my sig.
    You may need to add a few lines of code to do exactly what you want.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  9. #19
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: move Sub Categories Count

    Quote Originally Posted by yellow1912 View Post
    Look at the module named Simple Category Tree under my sig.
    You may need to add a few lines of code to do exactly what you want.
    do you a something in action so I can take a look at to see if that is what I want to do?

  10. #20
    Join Date
    Oct 2006
    Posts
    6
    Plugin Contributions
    0

    Default Re: move Sub Categories Count

    this solution doesn't follow the zen cart conventions yet, but it should do.

    go to includes/modules/category_row.php

    find the two lines on the outside of the #############(about line 34)

    paste the code below in place:

    // strip out 0_ from top level cats
    $cPath_new = str_replace('=0_', '=', $cPath_new);

    // ##################################################################
    $myCatID = substr($cPath_new, -3);
    // $categories->fields['products_name'] = zen_get_products_name($categories->fields['products_id']);

    $check_categories = $db->Execute("select products_id from " . TABLE_PRODUCTS . " where
    master_categories_id = '".$myCatID."'");
    if ($check_categories->RecordCount() > 0) {
    // create number here
    $recordCount = $check_categories->RecordCount();
    }

    $countContent = CATEGORIES_COUNT_PREFIX . $recordCount . CATEGORIES_COUNT_SUFFIX;


    $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'].' '.$countContent.'</a>');
    // ##################################################################
    $col ++;

    - beware of how I created $myCatID ->this will only work if your category IDs are 3 digits long. - I'll fix this up in future
    - you can see this in action at http://www.digitechstop.com

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 12 Mar 2011, 07:18 AM
  2. Sub Categories under sub categories, can that be done?
    By pebblecrossing in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Feb 2011, 09:46 PM
  3. Move Product Count to Breadcrumbs Bar
    By creative_mind in forum General Questions
    Replies: 2
    Last Post: 20 Nov 2009, 05:17 AM
  4. sub-categories product count management
    By keneso in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Jul 2009, 09:51 AM
  5. Show sub-sub categories underneath sub-categories on the category page?
    By tomrice in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Jun 2009, 03:05 AM

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