Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Jan 2008
    Location
    Minnesota
    Posts
    93
    Plugin Contributions
    0

    red flag Main Page Define - Product Listing above Main Text?

    In Zencart, I know there has to be a way to move the products above the main page text...but I can't find it in the book, nor on the site, and this is possibly because I am not sure what I am looking for. Lack of terminology.

    Is it possible to do this, or is this something that I would have to modify the actual code to do?

    My site is Knot & Bauble Shoppe and I am running Zen Cart v1.3.8a/v1.3.8.

    Your awesome help would be extremely appreciated.

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

    Default Re: Main Page Define - Product Listing above Main Text?

    Code:
    I know there has to be a way to move the products above the main page tex
    What "products"??
    Your "New Products"??
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2008
    Location
    Minnesota
    Posts
    93
    Plugin Contributions
    0

    Default Re: Main Page Define - Product Listing above Main Text?

    On the main page there is your Main text, below that is your new products, then specials or featured products (if desired). My question is, can you move that text below the new products for the month?

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

    Default Re: Main Page Define - Product Listing above Main Text?

    In a copy of includes/templates/template_default/templates/tpl_index_default.php - to be saved in the same structure in your template folder find this
    Code:
    <?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 } ?>
    Cut and paste it right before:
    Code:
    <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    Save and upload
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jan 2008
    Location
    Minnesota
    Posts
    93
    Plugin Contributions
    0

    Default Re: Main Page Define - Product Listing above Main Text?

    I'm not sure I am clear on that. Did you want me to paste "
    <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    " before this section:
    <?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 } ?>
    Doing that makes the whole center and right nav column disappear.

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

    Default Re: Main Page Define - Product Listing above Main Text?

    The other way around:

    Find > cut and paste before
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Jan 2009
    Posts
    28
    Plugin Contributions
    0

    Default Re: Main Page Define - Product Listing above Main Text?

    Sorry to resurrect an old post.

    Anywho, I've tried what you suggested to move products above text (save for the fact that I'm using the featured products tpl). When I cut it from it's current location and paste it above DEFINE_MAIN_PAGE_STATUS featured disappears completely.

    Paste it back below and everything is happy again. Am I missing something?

    Thanks!
    Matt

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

    Default Re: Main Page Define - Product Listing above Main Text?

    Matt,
    Paste it back below and everything is happy again. Am I missing something?
    This is what you need to cut and where it needs to be pasted - Only highlighted code
    Code:
    <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    <?php
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Mar 2009
    Location
    New Jersey USA
    Posts
    67
    Plugin Contributions
    0

    Default Re: Main Page Define - Product Listing above Main Text?

    Ignore.

    I need to try this before posting to ask if I should try this; right!

  10. #10
    Join Date
    Mar 2009
    Location
    New Jersey USA
    Posts
    67
    Plugin Contributions
    0

    Default Re: Main Page Define - Product Listing above Main Text?

    Okay!

    I tried cutting and pasting code in tpl_index.php to try to find a way to create another block of text between Featured Items and the bottom banner.

    Hasn't worked

    Can anyone suggest an idea of what I need to do?

    Thanks.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v153 URGENT Product category images above text on main page
    By vvomble in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Sep 2014, 12:47 PM
  2. Define Main Page Text shows up on wrong pages
    By belaze in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Nov 2011, 08:37 PM
  3. define main page text repeated in category pages
    By dealbyethan.com in forum General Questions
    Replies: 17
    Last Post: 25 Oct 2010, 02:22 PM
  4. Text above Main Product Image - Help
    By cpardy in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 18 Oct 2010, 11:32 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