Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: repeat items in both featured items and what's new

    To make this work for the What's New Sidebox in the Right column ...

    Using your templates and overrides for these files ...

    Put back the original code for:
    /includes/templates/templates_default/sideboxes/tpl_whats_new.php

    Customize the code in:
    /includes/modules/new_products.php
    Code:
    // bof: block New Products in sidebox from centerbox
    global $new_product_skip;
    // eof: block New Products in sidebox from centerbox
      while (!$new_products->EOF) {
    Code:
    // bof: block New Products in sidebox from centerbox
        $new_product_skip .= $new_products->fields['products_id'];
        $new_products->MoveNextRandom();
        if (!$new_products->EOF) {
          $new_product_skip .= ', ';
        }
    // eof: block New Products in sidebox from centerbox
    
    Customize the code in:
    /includes/modules/sideboxes/whats_new.php

    Code:
    // $display_limit = zen_get_products_new_timelimit();
      $display_limit = zen_get_new_date_range();
    
    // bof: block New Products in sidebox from centerbox
    global $new_product_skip;
    if ($new_product_skip != '') {
      $new_products_skip_sql = ' and p.products_id not in (' . $new_product_skip . ')';
    } else {
      $new_products_skip_sql = '';
    }
    
      $random_whats_new_sidebox_product_query = "select p.products_id, p.products_image, p.products_tax_class_id, p.products_price, pd.products_name,
                                                  p.master_categories_id
                               from (" . TABLE_PRODUCTS . " p
                               left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id )
                               where p.products_id = pd.products_id
                               and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                               and p.products_status = 1 " . $display_limit .
    $new_products_skip_sql;
    // eof: block New Products in sidebox from centerbox
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #12
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default Re: repeat items in both featured items and what's new

    That did it! What's new centerbox and what's new sidebox are working just how I wanted. Thank you very much!

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: repeat items in both featured items and what's new

    You are most welcome ... glad that this works for you now in either the left or right column ...

    Remember the Zen Cart Team when you are rich and famous ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v151 Remove Featured Items Sidebox from Featured Items Page
    By mutinyzoo in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Nov 2013, 07:20 PM
  2. Featured items or Special Items REFUSE to display on main / home page
    By masmat in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 13 Aug 2010, 06:29 PM
  3. Manufacturers Dropdown Items Linked To Featured Items?
    By macentyre2000 in forum General Questions
    Replies: 3
    Last Post: 8 Oct 2009, 10:39 PM
  4. Replies: 1
    Last Post: 14 Feb 2009, 04:22 AM
  5. This page contains both secure and nonsecure items
    By superprg in forum General Questions
    Replies: 21
    Last Post: 21 Mar 2007, 08:26 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