Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default adding new centerboxes?

    has any one done this? i'd like to add a new center box that has content from an ezpage etc. that will be located on the main page front end i seen this mod in the add on section.

    http://www.zen-cart.com/index.php?ma...oducts_id=1562

    but i don't want a column layout i just want to add a new center box to my existing layout and by able to move it up or down through my tpl_main page file
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  2. #2
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: adding new centerboxes?

    OK i think i have to tackle my tpl_index_default.php file

    and i assume ths is the area of code to have the define_main_page.php text on the main page

    PHP Code:
    <?php
    /**
     * get the Define Main Page Text
     */
    ?>
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
    <?php ?>
    now what would i need to change to have define_page_2.php on the main page as well i'm sure i'm on the right track but i could be wrong

    nope i was wrong i removed that bit of code and my front page still had the define_main_page.php content on it
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  3. #3
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: adding new centerboxes?

    ok now i found the code that seams to control the define_main_page.php text on the main page
    PHP Code:
    <div id="indexCategoriesMainContent" class="content"><?php
    /**
     * require the html_define for the index/categories page
     */
      
    include($define_page);
    ?></div>
    now i need to clone/create a peice of code that will let me have define_page_2.php on the main page

    anyone have any ideas as i have no clue what i'm doing here
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  4. #4
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: adding new centerboxes?

    or do i need to play with this piece of code here aswell

    PHP Code:
    <?php if (DEFINE_MAIN_PAGE_STATUS >= and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    that is on both files

    MYSTORE/includes/templates/MYTEMPLATE/templates/tpl_index_categories.php
    MYSTORE/includes/templates/MYTEMPLATE/templates/tpl_index_default.php
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  5. #5
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: adding new centerboxes?

    ok i changed the above code to the code below on both files but there was no change to the main page weird

    PHP Code:
    <?php if (DEFINE_PAGE_2_STATUS >= and DEFINE_PAGE_2_STATUS <= 2) { ?>
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  6. #6
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: adding new centerboxes?

    anyone have an idea
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

 

 

Similar Threads

  1. v151 Flexibe NSF (New, Specials & Featured) Centerboxes for 1.5.x
    By rbarbour in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 14 Jan 2015, 08:28 PM
  2. Replies: 12
    Last Post: 31 Mar 2013, 04:18 PM
  3. Centerboxes
    By ideasgirl in forum General Questions
    Replies: 35
    Last Post: 4 Apr 2011, 02:35 PM
  4. Centerboxes Formatting
    By WellCool in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Apr 2009, 08:21 AM
  5. Adding Descriptions to Centerboxes
    By Globie in forum General Questions
    Replies: 11
    Last Post: 5 Nov 2008, 11:00 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