Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    May 2006
    Location
    Queensland, Australia
    Posts
    248
    Plugin Contributions
    0

    Default Adding Code for Define Main Page back to my purchased template?

    Greetings;

    I brought the template for my Gothic / New Age shop, however it seems that they have removed the coding for define_main_page.php to be displayed on the main page, (god knows why when you can just disable it in admin). Anyway i wanted to add this coding back again.

    Anyone know what file to edit and what coding to add again ?

    Thanks

    Site: http://www.theesotericemporium.com/

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding Code for Define Main Page back to my purchased template?

    /includes/templates/template_default/templates/tpl_index_default.php has the original code; copy it into
    /includes/templates/your_template/templates/tpl_index_default.php.
    PHP Code:
    <?php if (DEFINE_MAIN_PAGE_STATUS >= and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    <?php
    /**
     * get the Define Main Page Text
     */
    ?>
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
    <?php ?>
    Look at the context if necessary to see where to put it in your custom copy.

    It is possible that they just commented out the code, and you can uncomment it. Investigate before editing.

  3. #3
    Join Date
    May 2006
    Location
    Queensland, Australia
    Posts
    248
    Plugin Contributions
    0

    Default Re: Adding Code for Define Main Page back to my purchased template?

    okay this is weird, the coding is there, and it isnt commented out, why wouldnt it be showing then ?

    Anyone have any ideas.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding Code for Define Main Page back to my purchased template?

    Is this in the custom copy of the file? (/includes/templates/your_template/templates/tpl_index_default.php)

  5. #5
    Join Date
    May 2006
    Location
    Queensland, Australia
    Posts
    248
    Plugin Contributions
    0

    Default Re: Adding Code for Define Main Page back to my purchased template?

    Yep....

    Code:
    <?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

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding Code for Define Main Page back to my purchased template?

    This Algozone template is extremely heavily customized in its basic coding, and uses nested tables galore for sideboxes at least. There's no telling what else they have changed about the way it works. The stylesheet indicates that the template is intended to work on both osCommerce and Zen Cart.


    It may be that that file is not being called here. Look at tpl_index_categories.php in the same folders.
    The home page is getting a body id #indexBody instead of what Zen Cart should have since about v1.3.7, #indexHomeBody.
    Last edited by gjh42; 1 Sep 2010 at 07:52 PM.

  7. #7
    Join Date
    May 2006
    Location
    Queensland, Australia
    Posts
    248
    Plugin Contributions
    0

    Default Re: Adding Code for Define Main Page back to my purchased template?

    Quote Originally Posted by gjh42 View Post
    This Algozone template is extremely heavily customized in its basic coding, and uses nested tables galore for sideboxes at least. There's no telling what else they have changed about the way it works. The stylesheet indicates that the template is intended to work on both osCommerce and Zen Cart.


    It may be that that file is not being called here. Look at tpl_index_categories.php in the same folders.
    The home page is getting a body id #indexBody instead of what Zen Cart should have since about v1.3.7, #indexHomeBody.
    Is it possible and likely that they have made it deliberaty had to located and edit so that people would have to pay $50 for the template to be edited and not be able to do it them selves ?

 

 

Similar Threads

  1. v151 template monster define main page no longer active
    By Derek Bryant in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 30 Dec 2013, 11:08 PM
  2. Adding Street Address and Postal Code to Main 'Admin' Page
    By jacque427 in forum Managing Customers and Orders
    Replies: 0
    Last Post: 17 Apr 2009, 07:10 PM
  3. Define Main Page (missing from my template)
    By tiffosi99 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Oct 2007, 01:57 AM
  4. This is the main define statement for the page for english when no template defined f
    By ginginca in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Nov 2006, 08:15 PM

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