Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 45
  1. #11
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Improved SiteMap Display

    Quote Originally Posted by ShoesBuyOnline View Post
    Hey, Clyde

    Thank you for your instructions. I copied and modified the code( below) from information.php then added them to tpl_site_map_default.php. Now, the site map looks just as I want.

    <?php if (DEFINE_ABOUT_US_STATUS <= 1) {?>
    <li><?php echo '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>'; ?></li>
    <?php } ?>

    Thanks again,
    glad you got it working

  2. #12
    Join Date
    Feb 2009
    Posts
    354
    Plugin Contributions
    0

    Default Re: Improved SiteMap Display

    I haven't downloaded this mod yet but it sounds interesting..

    I first wanted to ask if it can segment categories into columns of their own..

    _thanks

  3. #13
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Improved SiteMap Display

    Quote Originally Posted by g_force View Post
    I haven't downloaded this mod yet but it sounds interesting..

    I first wanted to ask if it can segment categories into columns of their own..

    _thanks
    no

    You can style the page any way you want

  4. #14
    Join Date
    Feb 2009
    Posts
    354
    Plugin Contributions
    0

    Default Re: Improved SiteMap Display

    oh thanks.. I'm just trying to find out how right now..

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

    Default Re: Improved SiteMap Display

    I hope someone can help.. I'm using the Hidden Categories add-on, and my hidden categories and products are showing up on the Improved SiteMap.. I was trying to figure out how to add code from the Hidden Categories add-on code to the "classes/site_map.php" and BOY am I really confused..

    I think this is the code I need to add to the site map.. I just haven't a clue how to integrate it into the site map file. I thought (hoped) that this would be something I could figure out on my own, but alas I'm stuck..

    Code:
    //  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
    So here's my question/plea for help.. I'm hoping that I could get some assistance in how to add the right code to hide the hidden categories from the site. (That would make me a very a happy camper..)

    However, the alternate is finding out how to hide a specific list of categories from the site map. Either one would get me what I want.. (Obviously the first is the better solution because it will work with the Hidden Categories add-on.. but I'll settle for some assistance and a working solution )

    Can anybody offer a helping hand??
    Last edited by DivaVocals; 12 Jul 2009 at 11:49 AM.

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

    Default Re: Improved SiteMap Display

    Found my answer BURIED in the Hidden Categories support thread (1.5 year old post too!).. Thought I'd post it here for anyone using both of these add-ons..

    http://www.zen-cart.com/forum/showpo...2&postcount=94

    So far this solution seems to be working just fine.. I've only done some VERY quick testing. This particular store only has one hidden product, so I still have to test if it works with more than one hidden product (looking at the query in the code it should work just fine with any number of hidden categories) I still suggest anyone doing this should do their own testing..

    Quote Originally Posted by DivaVocals View Post
    I hope someone can help.. I'm using the Hidden Categories add-on, and my hidden categories and products are showing up on the Improved SiteMap.. I was trying to figure out how to add code from the Hidden Categories add-on code to the "classes/site_map.php" and BOY am I really confused..

    I think this is the code I need to add to the site map.. I just haven't a clue how to integrate it into the site map file. I thought (hoped) that this would be something I could figure out on my own, but alas I'm stuck..

    Code:
    //  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
    So here's my question/plea for help.. I'm hoping that I could get some assistance in how to add the right code to hide the hidden categories from the site. (That would make me a very a happy camper..)

    However, the alternate is finding out how to hide a specific list of categories from the site map. Either one would get me what I want.. (Obviously the first is the better solution because it will work with the Hidden Categories add-on.. but I'll settle for some assistance and a working solution )

    Can anybody offer a helping hand??

  7. #17
    Join Date
    Feb 2009
    Posts
    354
    Plugin Contributions
    0

    Default Re: Improved SiteMap Display

    OK - I give up how do I style the sitemap?? - I'm trying to put each category (with sub-categories) into separate columns with three columns on the page (6 categories in all).. I've looked at sitemap.php and category_tree.php and had an extensive play around but I'm still not sure the exact way of doing it...

    Help here would be hugely appreciated!

    _thanks to anyone heading the call!!

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

    Default Re: Improved SiteMap Display

    Another question.. My inactive products are showing up on my sitemap.. Anyone have a clue what I need to do to make sure these don't display??

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

    Default Re: Improved SiteMap Display

    Quote Originally Posted by DivaVocals View Post
    Another question.. My inactive products are showing up on my sitemap.. Anyone have a clue what I need to do to make sure these don't display??
    Okay.. so I know this is the query I need to modify.. I am just not entirely sure how to make the correct edits.. Can anyone help??

    Code:
    $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";

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

    Default Re: Improved SiteMap Display

    So I tried this, and still no dice.. All of my inactive products still show up on the site map.. **sigh** I am stumped..

    Code:
    $categories_query = "select c.categories_id, cd.categories_name, c.parent_id, p.products_status 
        from " . TABLE_CATEGORIES . " c LEFT JOIN "
        . TABLE_HIDE_CATEGORIES . " h ON (c.categories_id = h.categories_id), "
        . TABLE_CATEGORIES_DESCRIPTION . " cd, "
        . TABLE_PRODUCTS . " p
        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'
        and p.products_status != '0'
        order by c.parent_id, c.sort_order, cd.categories_name, p.products_status";

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. v138a Why does my sitemap display disabled products?
    By corseter in forum General Questions
    Replies: 1
    Last Post: 9 Sep 2013, 06:32 PM
  2. SEO Quake - Sitemap:No - Using Google XML Sitemap
    By limelites in forum General Questions
    Replies: 2
    Last Post: 14 Feb 2012, 11:56 AM
  3. v139h XML sitemap (formerly goolge sitemap)
    By mighty midget in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 28 Jan 2012, 04:30 PM
  4. Auspost improved display problem.
    By viss in forum Addon Shipping Modules
    Replies: 3
    Last Post: 21 Feb 2008, 11:09 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