Thread: hideCategories

Page 34 of 49 FirstFirst ... 24323334353644 ... LastLast
Results 331 to 340 of 487
  1. #331
    Join Date
    Dec 2009
    Posts
    206
    Plugin Contributions
    2

    Default Re: hideCategories

    Quote Originally Posted by DivaVocals View Post
    So I finally got some time to test this.. works perfectly in my dev store..
    Thank you kindly!

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

    Default Re: hideCategories

    Quote Originally Posted by kamelion0927 View Post
    Thank you kindly!
    Now to find time to bundle this up and submit it (with you of course properly credited since this is YOUR modification.. unless you'd like to do the honors??)
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #333
    Join Date
    Dec 2009
    Posts
    206
    Plugin Contributions
    2

    Default Re: hideCategories

    Quote Originally Posted by DivaVocals View Post
    Now to find time to bundle this up and submit it (with you of course properly credited since this is YOUR modification.. unless you'd like to do the honors??)
    I'd be happy to! I'll try to have it done by the end of today :)

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

    Default Re: hideCategories

    Quote Originally Posted by kamelion0927 View Post
    I'd be happy to! I'll try to have it done by the end of today :)
    Send me an e-mail address. I have the update fileset with the updated readme (with you all properly credited of course..) if you want.. All you have to do is heat and serve as it were..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #335
    Join Date
    Dec 2009
    Posts
    206
    Plugin Contributions
    2

    Default Re: hideCategories

    Quote Originally Posted by DivaVocals View Post
    Send me an e-mail address. I have the update fileset with the updated readme (with you all properly credited of course..) if you want.. All you have to do is heat and serve as it were..
    Uh, oh. I already submitted the file - but I did remember to update the read me. Hopefully I didn't mess anything up...

  6. #336
    Join Date
    Apr 2011
    Posts
    56
    Plugin Contributions
    0

    Default Re: hideCategories

    When I install this mod it removed my site and leaves only the header. I identified the problem as it is conflicting with the mod Categories with EZ Page Links installed which I also have installed. Both use a different tpl.categories.php. I tried to WinMerge the two files and tried even manually to recreate the files to be combined with no luck.

    the ez page link file is:

    <?php
    /**
    * Side Box Template
    *
    * @package templateSystem
    * @copyright Copyright 2003-2006 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_categories.php 4162 2006-08-17 03:55:02Z ajeh $
    */
    $content = "";

    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
    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 if this is for the document box (==3)
    } else {
    $content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';

    if ($box_categories_array[$i]['current']) {
    if ($box_categories_array[$i]['has_sub_cat']) {
    $content .= '<span class="category-subs-parent">' . $box_categories_array[$i]['name'] . '</span>';
    } else {
    $content .= '<span class="category-subs-selected">' . $box_categories_array[$i]['name'] . '</span>';
    }
    } else {
    $content .= $box_categories_array[$i]['name'];
    }

    if ($box_categories_array[$i]['has_sub_cat']) {
    $content .= CATEGORIES_SEPARATOR;
    }
    $content .= '</a>';

    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 .= '<br />' . "\n";
    }
    }

    // integrate ezpages

    $content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
    for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) {
    $content .= '<li><a href="' . $var_linksList[$i]['link'] . '">' . $var_linksList[$i]['name'] . '</a></li>' . "\n" ;
    } // end FOR loop
    $content .= '</ul>' . "\n";

    //end integrate ezpages
    // integrate ezpges TOC


    the hide cat file is:

    <?php
    /**
    * Side Box Template
    *
    * @package templateSystem
    * @copyright Copyright 2003-2006 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_categories.php 4162 2006-08-17 03:55:02Z ajeh $
    */
    $content = "";

    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
    for ($i=0;$i<sizeof($box_categories_array);$i++) {
    // Begin hideCategories code
    list($nada, $mycpath)= split('=', $box_categories_array[$i]['path']);
    $mycid = split('_', $mycpath);
    $categories_id = array_pop($mycid);
    $hide_status = $db->Execute("select visibility_status
    FROM " . TABLE_HIDE_CATEGORIES . "
    WHERE categories_id = " . $categories_id . "
    LIMIT 1");
    if ($hide_status->fields['visibility_status'] < 1) {
    // End hideCategories code
    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 if this is for the document box (==3)
    } else {
    $content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';

    if ($box_categories_array[$i]['current']) {
    if ($box_categories_array[$i]['has_sub_cat']) {
    $content .= '<span class="category-subs-parent">' . $box_categories_array[$i]['name'] . '</span>';
    } else {
    $content .= '<span class="category-subs-selected">' . $box_categories_array[$i]['name'] . '</span>';
    }
    } else {
    $content .= $box_categories_array[$i]['name'];
    }

    if ($box_categories_array[$i]['has_sub_cat']) {
    $content .= CATEGORIES_SEPARATOR;
    }
    $content .= '</a>';

    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 .= '<br />' . "\n";
    }
    }
    } // hideCategories code
    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 .= '<hr id="catBoxDivider" />' . "\n";
    }
    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 .= '<a class="category-links" href="' . zen_href_link(FILENAME_SPECIALS) . '">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a>' . '<br />' . "\n";
    }
    }
    if (SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
    // display limits
    // $display_limit = zen_get_products_new_timelimit();
    $display_limit = zen_get_new_date_range();

    $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 .= '<a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '">' . CATEGORIES_BOX_HEADING_WHATS_NEW . '</a>' . '<br />' . "\n";
    }
    }
    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 .= '<a class="category-links" href="' . zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">' . CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS . '</a>' . '<br />' . "\n";
    }
    }
    if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
    $content .= '<a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a>' . "\n";
    }
    }
    $content .= '</div>';
    ?>

    Anybody know how to combine these to work together?

  7. #337
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: hideCategories

    Quote Originally Posted by reza View Post
    HI STEVEN
    IT's a great contribution, but there is a problem, when I use css flyout category sidebox or header css flyout, the hidden categories are still showing!!!
    do you now how can I solve this problem?
    thanks
    Hi does anyone know a solution for this issue please? I'm having the same trouble.
    Thanks in advance....

  8. #338
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: hideCategories

    Quote Originally Posted by adowty View Post
    ...so for anyone else who needs to do this.

    I found the correct syntax in the site map file.

    $categories_query = "select c.categories_id, cd.categories_name, c.parent_id
    from " . TABLE_CATEGORIES . " c LEFT JOIN "
    . TABLE_HIDE_CATEGORIES . " h ON (c.categories_id = h.categories_id), "
    . TABLE_CATEGORIES_DESCRIPTION . " cd
    where (h.visibility_status < 2 OR h.visibility_status IS NULL)
    and c.categories_id = cd.categories_id
    and cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
    and c.categories_status != '0'
    order by c.parent_id, c.sort_order, cd.categories_name";


    Yee-Haw
    Hi Adowty
    I think I am having the same issue as you seem to have fixed.
    Coluld you please explain in detail there the above codeing needs to be inserted to get the mod to work with the css flyout.
    Many thanks in advance.

  9. #339
    Join Date
    Apr 2011
    Posts
    56
    Plugin Contributions
    0

    Default Re: hideCategories

    I installed this mod and for some reason I am having a problem with the advance search function. The default on the dropdown menu under the Limit Category is not "All Categories". It defaults to one of my products. Everything else seems to be working fine.

    When I remove this mod the search function works correctly. I really would like to use this mod. Does anybody know how can I change it back to default to "All Categories" after installing this?

  10. #340
    Join Date
    Jul 2011
    Posts
    44
    Plugin Contributions
    0

    Default Merging tpl_categories files

    This is a great add-on if I could just finish merging the two /includes/templates/mytheme/sideboxes/tpl_categories.php files I have. My original version from a template I'd bought, and the new Hidden Category version. Replacing the original file with the Hidden version strips out the formatting of my Category menu, but hides the hidden category. Using the original version gets my styling back but obviously the hidden category is shown. When a fix attempt doesn't work, all that gets shown is the top banner.

    I downloaded the 1.10 version because I built the cart in 1.3.8a with tons of edits I didn't keep track of, so I'm stuck in 1.3.8 for now. I've tried for 4 days cutting and pasting here and there to no avail. Tried going from the new version to the old, and vice versa. Anybody have any guidance? The two php files are zipped. My php capabilities suck and I'm out of ideas. Many thanks!

    The hidden version turns the Categories sidebox formatted text into Times Roman, single line breaks, flush left... no formatting.
    Attached Files Attached Files
    Last edited by getyler2; 25 Oct 2011 at 06:56 AM.

 

 
Page 34 of 49 FirstFirst ... 24323334353644 ... LastLast

Similar Threads

  1. how to get hidecategories an dual pricing to work
    By davidweaver88 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 4 Jun 2012, 03:35 PM
  2. anyone using HideCategories in 1.3.9d??
    By redheads in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 8 Jun 2010, 06:54 AM
  3. HideCategories problem...
    By ShadowAngel in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Nov 2009, 10:17 PM
  4. hideCategories Module
    By marcusimages in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 25 Aug 2009, 06:31 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