Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: move specials above main page editor

    i'm still scratching my head over this issue anyone have any new idea of what could of happened here?
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  2. #12
    Join Date
    Mar 2007
    Posts
    251
    Plugin Contributions
    6

    Default Re: move specials above main page editor

    To display the main page defines text below all the specials and featured products find the line in the tpl_index_defines.php:

    Code:
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
    Then cut it and move it right down to the bottom of the file and reinsert it before the last </div> on the file, so the last two lines look like

    Code:
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
    </div>

  3. #13
    Join Date
    Mar 2007
    Posts
    251
    Plugin Contributions
    6

    Default Re: move specials above main page editor

    or why not just make your main page defines text blank...so you can add images etc later if you want to above the featured/specials, and just pick a blank defines page (i.e i've used number 4 in this example) then add the following before the last </div> in the same file

    Code:
    <?php $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_PAGE_4, 'false'); 
    ?>
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>

  4. #14
    Join Date
    Mar 2007
    Posts
    251
    Plugin Contributions
    6

    Default Re: move specials above main page editor

    sorry, file is tpl_index_default, NOT tpl_index_defines as i wrote before!

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

    Default Re: move specials above main page editor

    what ever i do to the templates/mytemplate/templates/tpl_index_default.php does nothing i deleted my main custom greeting and the main text stuff in changes nothing on my main page?


    then i deleted other random parts of the file still no change on my main page makes me assume this file isn't working for some reason or at least isn't being used
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

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

    Default Re: move specials above main page editor

    now i'm playing with the /templates/template_default/templates/tpl_index_default.php file and moved the main text content to the bottom of the page with no changes to the frontpage of the site. then i started cutting out everything up to the this peice of code
    Code:
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?>
    <?php

    nothing changed on the site and i cleared my cache and everything what is this file for and where is there another file that i might of missed
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  7. #17
    Join Date
    Jan 2007
    Location
    Mount Maunganui, New Zealand
    Posts
    419
    Plugin Contributions
    0

    Default Re: move specials above main page editor

    Quote Originally Posted by MB1 View Post
    nothing changed on the site and i cleared my cache and everything what is this file for and where is there another file that i might of missed
    Same for me. Did you find a solution or reason?

  8. #18
    Join Date
    Nov 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: move specials above main page editor

    I am by no means a PHP developer but so far I have got this to work by looking for the following 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 } ?>

    Cutting it from its present position and pasteing it immediately prior to the last </div>

    So far I have only made this change in my localhost test store but it appears to be working fine.

    I would appreciate feedback if this is not good coding or may cause problems later.


    Cheers
    Brett
    www.1-daydeals.com

  9. #19
    Join Date
    Jun 2011
    Posts
    3
    Plugin Contributions
    0

    help question Re: move specials above main page editor

    I am not sure this is the correct place to post this but I am going to give it a shot.....I used an older version via godaddy app. I messed up a file trying to redirect url in a php file (everything was DONE) go daddy advised to uninstall and reinstall ugh! did that now it's a different version v1.3.9h and I am so lost! none of my notes are any good. none of the files are where they used to be. I am a self taught user. All I need at this point is to remove "Congratulations! You have successfully installed your Zencart" and "Sales Message Goes here" I am sick Please help!!! Thank you in advance.

  10. #20
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: move specials above main page editor

    Start your own thread
    Quote Originally Posted by april3508
    All I need at this point is to remove "Congratulations! You have successfully installed your Zencart" and "Sales Message Goes here"
    The tutorials are a reference for these basic and often asked questions
    These are in the same place for years

    I searched for Congratulations
    https://www.zen-cart.com/tutorials/i...hp?article=129

    I searched for Sales Message
    https://www.zen-cart.com/tutorials/i...hp?article=127

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Specials on main page above greeting
    By netgirlz in forum Setting Up Specials and SaleMaker
    Replies: 2
    Last Post: 6 Jan 2010, 04:01 AM
  2. Move Header Above the Main Wrapper
    By acreativepage in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Oct 2009, 08:51 AM
  3. Main Page Define - Product Listing above Main Text?
    By SaMortensen in forum Basic Configuration
    Replies: 22
    Last Post: 31 Jul 2009, 05:12 AM
  4. move specials up on main page
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Sep 2008, 05:11 PM
  5. New products/specials above my main index page - how can I fix this?
    By stormysar in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 May 2007, 02:46 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