Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    62
    Plugin Contributions
    0

    Default can I Move new products to top on home page?

    Is it possible to move the New products image links to the top just under the top navigation, in my case it is now New Backing Tracks if you look at my home page http://www.rockbackingtracks.co.uk I would like to have the new backing tracks at the top then the text area and then featured products at the bottom, I would be grateful for some help as I cant find where to do it if its possible. Thanks

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

    Default Re: can I Move new products to top on home page?

    In a copy for your template of tpl_index_default.php
    Re order the sequence of display
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    62
    Plugin Contributions
    0

    Default Re: can I Move new products to top on home page?

    Thanks for letting me know where it is, although i am still not sure what to do with the code, a bit worried i will damage my site, is there any specifics i need to know? Thanks

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,531
    Plugin Contributions
    88

    Default Re: can I Move new products to top on home page?

    Instead of moving the "New Products" above the main content (in define_main_page.php), you could move the main content to after the new products. If you don't already have the file tpl_index_default.php in the directory /includes/templates/classic/templates, then copy the file from /includes/templates/template_default/templates and then edit as described below.

    P.S. You should really have your own, custom template instead of using the 'classic'. Keeping the classic template pure allows you to switch between templates see if issues you're having are template-specific or site-wide.
    Code:
    <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    <?php
    /**
     * get the Define Main Page Text
     */
    /*
    ?>
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
    <?php */ } ?>
    
    <?php
      $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN);
      while (!$show_display_category->EOF) {
    ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?>
    <?php
    /**
     * display the Featured Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php } ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
    <?php
    /**
     * display the Special Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
    <?php } ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?>
    <?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'); ?>
    <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    <?php
    /**
     * get the Define Main Page Text
     */
    ?>
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
    <?php } ?>
    <?php } ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?>
    <?php

  5. #5
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    62
    Plugin Contributions
    0

    Default Re: can I Move new products to top on home page?

    Hi Thanks for that, I tried it but my main page content disapeared, and left me with just new products and featured products?

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,531
    Plugin Contributions
    88

    Default Re: can I Move new products to top on home page?

    Did you see that there are two bits highlighted in red? You need to comment out the top bit and add the code further down in the file. I tried this on my test store and it does what you want.

  7. #7
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    62
    Plugin Contributions
    0

    Default Re: can I Move new products to top on home page?

    Hi i did put the 2 red bits in at the top of the code and moved the code as in the example but all i get is the new products and featured products my main text dissapears, could it be a cache problem?

  8. #8
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    62
    Plugin Contributions
    0

    Default Re: can I Move new products to top on home page?

    Hi tried it again and this time it has worked great i don't know what i did wrong before but you are a legend many thanks for your help your the best Thanks

 

 

Similar Threads

  1. How can I move featured products up the home page?
    By k_pricey in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Aug 2011, 09:50 AM
  2. Move Featured Products to Top of Category Page
    By kconklin in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 May 2010, 04:59 PM
  3. I can't figure out how to move products from the top level category
    By pmarble in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 9 Dec 2009, 09:36 AM
  4. Move top page ''home'' and ''log in'' to categories tabs
    By J.P. in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Oct 2008, 10:20 PM
  5. Home Page New Products - Can I choose them??
    By brighteyedbambam in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Oct 2008, 09:26 AM

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