Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2009
    Location
    Highlands Ranch, Colorado
    Posts
    84
    Plugin Contributions
    0

    Default Sorting Featured/Specials/What's New in Category Box

    Hopefully this will be an easy answer for you, I couldn't find info on my searching the forum.

    I want to sort the links to Featured/Specials/What's New in the category sidebox to appear as:

    What's New
    Rosie's Specials (this is actually featured items)
    Beaker's Bargains (this is actually specials)

    Can you tell me how to do this? Can't get it to work from the Admin panel.

    Here's how it looks now:



    http://avianoutfitters.com
    _ _ _ _ _ _ _
    DebiWebi
    http://www.tejadadesign.com

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Sorting Featured/Specials/What's New in Category Box

    You would have to re-order them in the file /includes/templates/template_default/sideboxes/tpl_categories.php
    Look for this
    Code:
    $content .= '<br />' . "\n";
        }
      }
    
      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>';
    ?>
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Aug 2009
    Location
    Highlands Ranch, Colorado
    Posts
    84
    Plugin Contributions
    0

    Default Re: Sorting Featured/Specials/What's New in Category Box

    Whoa, that looks scary. I'll give it a shot. Thank you!!!
    _ _ _ _ _ _ _
    DebiWebi
    http://www.tejadadesign.com

  4. #4
    Join Date
    Aug 2009
    Location
    Highlands Ranch, Colorado
    Posts
    84
    Plugin Contributions
    0

    Default Re: Sorting Featured/Specials/What's New in Category Box

    Yea! It worked and it wasn't hard to do. Thank you!!
    _ _ _ _ _ _ _
    DebiWebi
    http://www.tejadadesign.com

 

 

Similar Threads

  1. v151 How to remove New - Featured - Specials from sub-category pages
    By mrcastle in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Nov 2015, 09:30 PM
  2. Featured/Specials sorting
    By zcadqliv in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Apr 2012, 03:45 PM
  3. Side Box (What's New, Specials, etc) Layout
    By laurenh2201 in forum Basic Configuration
    Replies: 5
    Last Post: 21 Aug 2008, 03:37 PM
  4. Adding quantity box to add to cart button on featured, new, specials displays
    By lankeeyankee in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Sep 2007, 11:50 PM
  5. Having weird featured/specials/new product box problem
    By Dunitun in forum General Questions
    Replies: 6
    Last Post: 14 Jul 2007, 01:34 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