Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    97
    Plugin Contributions
    0

    Default Categories side box revamp?

    Hey there.
    Ihave been looking on the forum but can not find it and will continue to look.
    I was wondering if there was a way to move the "specials", "new products" and "featured products" from the bottom of the categories box to the top? I'm sure there is but what file would it be to edit?
    Am affraid of mocing ssomething I shouldn't lol
    Thanks so much.

  2. #2
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    97
    Plugin Contributions
    0

    Default Re: Categories side box revamp?

    Just wanted to bump this up

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

    Default Re: Categories side box revamp?

    This would be a relatively simple case of moving code in /includes/templates/your_template/sideboxes/tpl_categories.php.

    Find this:
    PHP 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_PRODUCTS_ALL == 'true') {
          
    $content .= '<a class="category-links" href="' zen_href_link(FILENAME_PRODUCTS_ALL) . '">' CATEGORIES_BOX_HEADING_PRODUCTS_ALL '</a>' "\n";
        }
      } 
    and move that whole section (leave the
    $content .= '</div>';
    ?>
    at the bottom) to just after the opening div line:
    PHP Code:
      $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent">' "\n"
    You will then want to move the
    PHP Code:
        if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
          
    $content .= '<hr id="catBoxDivider" />' "\n";
        } 
    to the bottom of the links section so it puts the divider between links and categories.

    Just be careful of what you are doing, and watch the opening and closing { } to keep them balanced.

 

 

Similar Threads

  1. Sub categories and categories side box
    By lauraj in forum General Questions
    Replies: 1
    Last Post: 6 Dec 2009, 03:23 AM
  2. Set a limited number of categories to be displayed in categories side box
    By NickPCs in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Nov 2009, 02:50 AM
  3. Replies: 1
    Last Post: 2 Jun 2008, 05:16 PM
  4. Categories side box to always show sub categories
    By vandiermen in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Mar 2008, 07:16 AM
  5. Make categories side box different from other side boxes
    By Jeff G in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 20 Nov 2007, 10:16 PM

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