Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2005
    Posts
    20
    Plugin Contributions
    0

    Default New Products list position on categories box

    Greeting All,

    I turn on New Products Listing on categories box, but I found that default location at bottom line (after products categories list). How to move it to top position (before products categories list) ?
    Thanks

  2. #2
    Join Date
    Dec 2004
    Location
    New York, USA
    Posts
    1,198
    Plugin Contributions
    0

    Default Re: New Products list position on categories box

    copy the following default template file
    includes/templates/template_default/sideboxes/tpl_categories.php

    to your template override folder
    includes/templates/YOUR_TEMPLATE_DIR/sideboxes/

    Then with a text editor (don't use cPanel editor) carefully move the following block of code to where you would like.

    Code:
        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";
          }
        }
    Moving that block of code to the line immediately after the following code should do the trick.
    Code:
      $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";

 

 

Similar Threads

  1. Categories box - moving it and adding 2nd layer categories to the list
    By crexis in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 19 Jul 2013, 02:58 PM
  2. How to make listings within categories to appear as tumbnails(like new products box)?
    By DKunev in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 May 2011, 09:36 PM
  3. Replies: 1
    Last Post: 14 Feb 2009, 04:22 AM
  4. New Products Description Position
    By miles in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Nov 2006, 02:11 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