Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2006
    Location
    Leeds, UK
    Posts
    174
    Plugin Contributions
    1

    bug Displaying products in the header like featured, new products sidebox

    Hi,

    I am trying to display the contents of a sidebox like the featured sidebox automatically in the header. For example where the banner would display.

    This is the code from the /includes/templates/template_default/sideboxes/tpl_featured.php

    file:

    <?php
    /**
    * Side Box Template
    *
    * @package templateSystem
    * @copyright Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: tpl_featured.php 2982 2006-02-07 07:56:41Z birdbrain $
    */
    $content = "";
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
    $content .= '<a href="' . zen_href_link(zen_get_info_page($random_featured_product->fields["products_id"]), 'products_id=' . $random_featured_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_featured_product->fields['products_image'], $random_featured_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_featured_product->fields['products_name'] . '</a><br />' . $featured_box_price;
    $content .= '</div>';
    ?>

    Thanks

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

    Default Re: Displaying products in the header like featured, new products sidebox

    Insert wanted code into a copy of tpl_header.php
    Place into your template common folder
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Displaying 'Add to Cart' button on New Products and Featured Products
    By KenshiroU in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Jun 2013, 05:30 AM
  2. How to Movew Sidebox Manufacterer onto the main page like Featured new products?
    By cageman555 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Mar 2011, 07:22 PM
  3. Displaying more than 2 products in "Featured Products" sidebox
    By tee-dot in forum Basic Configuration
    Replies: 10
    Last Post: 8 Oct 2010, 01:54 AM
  4. Displaying products like the "New Products"
    By still_learning in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Feb 2010, 09:28 PM
  5. Displaying multiple featured products in sidebox
    By k4satin in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 14 Jul 2007, 11:18 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