Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Moving "New Products" center box higher on home page

    I'd also like to know how to do this...

  2. #2
    Join Date
    Dec 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Moving "New Products" center box higher on home page

    I found the answer in a similar thread: https://www.zen-cart.com/forum/showthread.php?t=82643

    What you need to do is:

    * Go to your zencart\includes\templates\custom\templates folder (in my case custom is replaced by cherry_zen, yours may be different.

    * Open the file tpl_index_default.php in your favorite text editor (I personally use Notepad ++).

    * Make sure you make a backup of this file prior to doing any editing (you can do this by copying it into the same folder).

    * Whatever boxes you would like to move, copy and paste to the top of the page, like so:

    Let's say we want to move "New Products" above our main text content.

    Look for something like this:

    Code:
    <?php
    /**
     * Page Template
     *
     * Main index page<br />
     * Displays greetings, welcome text (define-page content), and various centerboxes depending on switch settings in Admin<br />
     * Centerboxes are called as necessary
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 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_index_default.php 3464 2006-04-19 00:07:26Z ajeh $
     */
    ?>
    <div class="centerColumn" id="indexDefault">
    <h1 id="indexDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
    
    <?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
    <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2>
    <?php } ?>
    
    <!-- deprecated - to use uncomment this section
    <?php if (TEXT_MAIN) { ?>
    <div id="" class="content"><?php echo TEXT_MAIN; ?></div>
    <?php } ?>-->
    
    <!-- deprecated - to use uncomment this section
    <?php if (TEXT_INFORMATION) { ?>
    <div id="" class="content"><?php echo TEXT_INFORMATION; ?></div>
    <?php } ?>-->
    
    <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    <?php
    /**
     * get the Define Main Page Text
     */
    ?>
    Right above where it says DEFINE_MAIN_PAGE_STATUS, paste in your boxes you want displayed above your content, in this case the "New Products" box:

    Code:
    <?php
    /**
     * display the New Products Center Box
     */
    ?>
    
    
    <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
    Upload to the correct folder on your server and voila! You now have your boxes above your text content.

 

 

Similar Threads

  1. How to remove ellipses ("...") after "All Products" and "New Products" on home page?
    By jthurman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 May 2010, 03:30 PM
  2. Number of products in "Featured Products" box on home page.
    By SandraSD in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 17 Dec 2009, 04:12 AM
  3. make product details show up in "featured products" center box on main page
    By traypup in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Mar 2009, 01:41 AM
  4. Inside the "Categories" box it says "New Products" and "All Products"...
    By john9 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Feb 2007, 07:55 AM
  5. How to remove center box "New Products for..."
    By trijohnd in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Aug 2006, 11:58 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