Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default What's causing the (2) beside my category display?

    I have a #2 in parenthesis at the top left-hand side of my test page beside my categories. Were is this coming from?

    my page: http://www.webfxonline.com/cw

  2. #2
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: What's causing the (2) beside my category display?

    See in your categories table if there is any extra record

  3. #3
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: What's causing the (2) beside my category display?

    No, I didn't see anything unusual there.

  4. #4
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: What's causing the (2) beside my category display?

    Can you post the part of the code where it is getting the categories from the database and printing? I am sure something weird is going on there
    Thanks

  5. #5
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: What's causing the (2) beside my category display?

    Sure, which file should that be in?

  6. #6
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: What's causing the (2) beside my category display?

    I think this is the one (tpl_categories.php):

    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers |
    // | |
    // | http://www.zen-cart.com/index.php |
    // | |
    // | Portions Copyright (c) 2003 osCommerce |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license, |
    // | that is bundled with this package in the file LICENSE, and is |
    // | available through the world-wide-web at the following url: |
    // | http://www.zen-cart.com/license/2_0.txt. |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to |
    // | license AT zen-cart DOT com so we can mail you a copy immediately. |
    // +----------------------------------------------------------------------+
    // $Id: tpl_categories.php 910 2005-01-08 16:44:07Z ajeh $
    //


    $flag = 0;
    $content = '
    <table cellspacing=0 cellpadding=0 width=170 style="text-align: center" align=center>




    ';
    for ($i=0;$i<sizeof($box_categories_array);$i++) {
    switch(true) {
    // to make a specific category stand out define a new class in the stylesheet example: A.category-holiday
    // uncomment the select below and set the cPath=3 to the cPath= your_categories_id
    // many variations of this can be done
    // case ($box_categories_array[$i]['path'] == 'cPath=3'):
    // $new_style = 'category-holiday';
    // break;
    case ($box_categories_array[$i]['top'] == 'true'):
    $new_style = 'category-top';
    break;
    case ($box_categories_array[$i]['has_sub_cat']):
    $new_style = 'category-subs';
    break;
    default:
    $new_style = 'category-products';
    }

    if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == '3' or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
    // skip it this is for the document box
    } else {

    $href = zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']);



    $content .= $flag ? '<tr><td background='.DIR_WS_TEMPLATE.'images/m12.gif height=1></td></tr><tr><td height=3></td></tr>' : '';

    $content .= '<tr><td class=ch4><img src='.DIR_WS_TEMPLATE.'images/m11.gif width=6 height=5 align=absmiddle> &nbsp; <a class=ml2 href="'.$href.'">'.$box_categories_array[$i]['name'].'</a></td></tr><tr><td height=3></td></tr>';
    $flag = 1;


    if (SHOW_COUNTS == 'true') {
    if ((CATEGORIES_COUNT_ZERO == '1' and $box_categories_array[$i]['count'] == 0) or $box_categories_array[$i]['count'] >= 1) {
    $content .= CATEGORIES_COUNT_PREFIX . $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX;
    }
    }

    }
    }
    $content .= '
    <td height=6></td></tr><tr><td background='.DIR_WS_TEMPLATE.'images/m12.gif height=1></td></tr><tr><td height=6></td></tr>

    ';

    if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
    // display a separator between categories and links
    if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
    //$content .= '' . zen_draw_separator('pixel_silver.gif') . '';
    }
    if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
    $show_this = $db->Execute("select s.products_id from " . TABLE_SPECIALS . " s where s.status= '1' limit 1");
    if ($show_this->RecordCount() > 0) {
    $content .= '<tr><td class=ch4><img src='.DIR_WS_TEMPLATE.'images/m11.gif width=6 height=5 align=absmiddle> &nbsp; <a class=ml2 href="' . zen_href_link(FILENAME_SPECIALS) . '">&nbsp; &nbsp;' . CATEGORIES_BOX_HEADING_SPECIALS . '</a></td></tr>' . '<td height=3></td></tr><tr><td background='.DIR_WS_TEMPLATE.'images/m12.gif height=1></td></tr><tr><td height=3></td></tr>';

    }
    }
    if (SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
    switch (true) {
    case (SHOW_NEW_PRODUCTS_LIMIT == '0'):
    $display_limit = '';
    break;
    case (SHOW_NEW_PRODUCTS_LIMIT == '1'):
    $display_limit = " and date_format(p.products_date_added, '%Y%m') >= date_format(now(), '%Y%m')";
    break;
    case (SHOW_NEW_PRODUCTS_LIMIT == '30'):
    $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 30';
    break;
    case (SHOW_NEW_PRODUCTS_LIMIT == '60'):
    $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 60';
    break;
    case (SHOW_NEW_PRODUCTS_LIMIT == '90'):
    $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 90';
    break;
    case (SHOW_NEW_PRODUCTS_LIMIT == '120'):
    $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 120';
    break;
    }

    $show_this = $db->Execute("select p.products_id
    from " . TABLE_PRODUCTS . " p
    where p.products_status = '1' " . $display_limit . " limit 1");
    if ($show_this->RecordCount() > 0) {
    $content .= '<tr><td class=ch4><img src='.DIR_WS_TEMPLATE.'images/m11.gif width=6 height=5 align=absmiddle> &nbsp; <a class=ml2 href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '">&nbsp; &nbsp;' . CATEGORIES_BOX_HEADING_WHATS_NEW . '</a></td></tr>' . '<td height=3></td></tr><tr><td background='.DIR_WS_TEMPLATE.'images/m12.gif height=1></td></tr><tr><td height=3></td></tr>';
    }
    }
    if (SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
    $show_this = $db->Execute("select products_id from " . TABLE_FEATURED . " where status= '1' limit 1");
    if ($show_this->RecordCount() > 0) {
    $content .= '<tr><td class=ch4><img src='.DIR_WS_TEMPLATE.'images/m11.gif width=6 height=5 align=absmiddle> &nbsp; <a class=ml2 href="' . zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">&nbsp; &nbsp;' . CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS . '</a></td></tr>' . '<td height=3></td></tr><tr><td background='.DIR_WS_TEMPLATE.'images/m12.gif height=1></td></tr><tr><td height=3></td></tr>';
    }
    }
    if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
    $content .= '<tr><td class=ch4><img src='.DIR_WS_TEMPLATE.'images/m11.gif width=6 height=5 align=absmiddle> &nbsp; <a class=ml2 href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">&nbsp; &nbsp;' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a></td></tr><td height=3></td></tr><tr><td background='.DIR_WS_TEMPLATE.'images/m12.gif height=1></td></tr><tr><td height=3></td></tr>';

    }
    }

    $content .= '
    <tr><td height=3></td></tr>
    </table>


    ';

    ?>

  7. #7
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: What's causing the (2) beside my category display?

    I figured out what was causing the (2) at the top of my category listings. Apparently, I had moved my only 2 products so far into the 'phones' category and that caused the (2) to display at the top of the list. When I moved them out of that category the (2) went away.

  8. #8
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: What's causing the (2) beside my category display?

    ok, so what is the resolution?

  9. #9
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: What's causing the (2) beside my category display?

    I placed it in my first post: When I moved them out of that category the (2) went away.

  10. #10
    Join Date
    Jun 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: What's causing the (2) beside my category display?

    I placed it in my first post:
    Quote Originally Posted by webfx
    When I moved them out of that category the (2) went away.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 17 Nov 2013, 12:11 AM
  2. Replies: 2
    Last Post: 6 Mar 2013, 10:49 PM
  3. what is causing the lag?
    By shadowcast in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 27 Jul 2010, 06:40 PM
  4. How can I display the category descriptiong text on the product display info page?
    By HellMind in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 18 Sep 2009, 06:43 AM
  5. Quickie: what file template controls the category display?
    By gaekwad in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Apr 2009, 07:49 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