Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Mar 2009
    Posts
    27
    Plugin Contributions
    0

    Default Need a little help

    hi,
    How do i Move the define_main_page.php text on the main page to the bottom of the site so that products would appear above the text instead of below it??
    I seen it somewhere before on the forums but i cant find it again,
    i know its something simple to move a certain bit of code.
    thanx

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Need a little help

    Quote Originally Posted by Ajaysports View Post
    hi,
    How do i Move the define_main_page.php text on the main page to the bottom of the site so that products would appear above the text instead of below it??
    I seen it somewhere before on the forums but i cant find it again,
    i know its something simple to move a certain bit of code.
    thanx
    Aj,
    I don't know if this helps you out, please read:

    https://www.zen-cart.com/forum/showthread.php?t=56174

  3. #3
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Need a little help

    override your tpl_index_default.php

    then open the override version in text editor .
    starting at line 34 to line 40
    move this codes to the end of file just before closing </div>tag

    <?php
    /**
    * get the Define Main Page Text
    */
    ?>
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
    <?php } ?>

    this will show the main page define at the bottom of the page under any center products that is being displayed .

  4. #4
    Join Date
    Mar 2009
    Posts
    27
    Plugin Contributions
    0

    Default Re: Need a little help

    it doesnt seem to be workin for me,
    on the main page i have featured products in the centre only
    but moving the main_page code to the bottom of the index_default
    doesnt seem to be movin it,
    i know the overides workin because the second time i tried it
    i missed a bit of code and messed up the site
    ty

  5. #5
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Need a little help

    <?php
    $show_display_category->MoveNext();
    } // !EOF
    ?>
    </div>


    make sure the code inserted in between ?> </div> and not above or bellow.

    it should actually work as this only moving a div location ..

  6. #6
    Join Date
    Mar 2009
    Posts
    27
    Plugin Contributions
    0

    Default Re: Need a little help

    i'll try lata as ive gota go,
    i'll let u know how it goes
    thanx

  7. #7
    Join Date
    Mar 2009
    Posts
    27
    Plugin Contributions
    0

    Default Re: Need a little help

    nope,
    i still cant get it to move, i know it should
    because movin that code sounds obvious to me,
    the only thing that i can see is that my code is slightly
    different to yours, its:
    <?php
    /**
    * get the Define Main Page Text
    */
    ?>
    <!--<div id="indexDefaultMainContent" class="content"><?php //require($define_page); ?></div>-->
    <?php //} ?>
    when i cut my code out completely and put yours in at
    the bottom it crashes my front page

  8. #8
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Need a little help

    Quote Originally Posted by Ajaysports View Post
    nope,
    i still cant get it to move, i know it should
    because movin that code sounds obvious to me,
    the only thing that i can see is that my code is slightly
    different to yours, its:
    <?php
    /**
    * get the Define Main Page Text
    */
    ?>
    <!--<div id="indexDefaultMainContent" class="content"><?php //require($define_page); ?></div>-->
    <?php //} ?>
    when i cut my code out completely and put yours in at
    the bottom it crashes my front page
    your know your code is been commented out ???remove

    <!-- and --> and //

    if your page crashes .. then there is something fishy about that page .. has it been altered before ?? what template are you using ? is it Template Monster ???
    Last edited by tony_sar; 8 Apr 2009 at 11:33 PM.

  9. #9
    Join Date
    Mar 2009
    Posts
    27
    Plugin Contributions
    0

    Default Re: Need a little help

    yea,
    when i put the code in uncommented at the bottom,
    i lose the right side boxes, i lose the catogories boxes and i lose
    the main page colour background and the centre moves over
    to the right of the page slightly, and the define page text is still there,
    i got 5 templates with my package, called football 1-5
    and im using football 3.

  10. #10
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Need a little help

    if thats TM , then i don't think anyone will be able to help you but them , or you have to really dig into the code and find what they have done to the files.

    they commented the code that shows main define page . so i guess they have added their own code. so , i guess i have to say , good luck .

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Need a little help
    By goldnuggetsales.com in forum General Questions
    Replies: 11
    Last Post: 8 Mar 2013, 12:27 AM
  2. Need a little Help
    By captonzoom in forum General Questions
    Replies: 6
    Last Post: 18 Jan 2013, 11:13 PM
  3. Need little help
    By river in forum Addon Language Packs
    Replies: 2
    Last Post: 21 Oct 2007, 01:57 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