Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2008
    Posts
    328
    Plugin Contributions
    0

    help question Which tpl_main_page.php ???

    The instructions for installation the Super Globals Plus say:
    Open the tpl_main_page.php file and, just before the ending </body> tag, add:
    The problem is... there are 9 such files in Zen Cart:
    ./includes/templates/template_default/common/tpl_main_page.php
    ./includes/templates/template_default/info_shopping_cart/tpl_main_page.php
    ./includes/templates/template_default/popup_attributes_qty_prices/tpl_main_page.php
    ./includes/templates/template_default/popup_coupon_help/tpl_main_page.php
    ./includes/templates/template_default/popup_cvv_help/tpl_main_page.php
    ./includes/templates/template_default/popup_image/tpl_main_page.php
    ./includes/templates/template_default/popup_image_additional/tpl_main_page.php
    ./includes/templates/template_default/popup_search_help/tpl_main_page.php
    ./includes/templates/template_default/popup_shipping_estimator/tpl_main_page.php
    How do I know which one of them was meant to be modified?

  2. #2
    Join Date
    Jun 2008
    Posts
    328
    Plugin Contributions
    0

    Default Re: Which tpl_main_page.php ???

    Ah! there is another readme, buried in superglobals-plus_v1.24/extras/. It says to just copy the tpl_main_page.php in that directory to includes/templates/YOUR_TEMPLATE/common/

    I tried it, but it seems that something wrong in following the instructions. The SuperGloabal Plus still doesn't work for me.

  3. #3
    Join Date
    Jun 2008
    Posts
    328
    Plugin Contributions
    0

    Idea or Suggestion Re: Which tpl_main_page.php ???

    I got it working.

    My mistake was that I followed the readme.txt literally... It said:
    3) Copy the catalog/ files into the root of your shop's directory (currently it's just one extra_functions file)
    And I indeed copied it to the root of my shop's directory: htodcs/store.

    When in fact I should have copied it to htdocs/store/includes.

    So, whenever a Zenner says "root of your shop's directory" it actually means the includes subdirectory?

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Which tpl_main_page.php ???

    Quote Originally Posted by zcnb View Post

    So, whenever a Zenner says "root of your shop's directory" it actually means the includes subdirectory?

    Nope. The readme is wrong. The root is exactly what you thought it was.

  5. #5
    Join Date
    Jun 2008
    Posts
    328
    Plugin Contributions
    0

    Default Re: Which tpl_main_page.php ???

    Quote Originally Posted by stevesh View Post
    Nope. The readme is wrong. The root is exactly what you thought it was.
    Thank you. How do I contact the author of this tool to offer correction of the readme?

    I can actually provide an even clearer documentation based on my experience with the installation of this tool as a newbie, so perhaps this could help others. I am thinking of even combining the two readme.txt files into one, to alleviate any potential ambiguity or confusion.

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Which tpl_main_page.php ???

    Not sure. There may be a thread dedicated to that mod in the forums.

  7. #7
    Join Date
    Jun 2008
    Posts
    328
    Plugin Contributions
    0

    Idea or Suggestion Re: Which tpl_main_page.php ???

    Quote Originally Posted by stevesh View Post
    Not sure. There may be a thread dedicated to that mod in the forums.
    I found it - and posted there my readme.txt version (for the catalog only):

    http://www.zen-cart.com/forum/showpo...6&postcount=13

 

 

Similar Threads

  1. need html_header.php & tpl_main_page.php files
    By marvin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Nov 2011, 06:32 PM
  2. change tpl_main_page.php
    By mikehr in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Sep 2009, 09:31 PM
  3. PHP help with broken tpl_main_page.php
    By HeresySnowboarding in forum General Questions
    Replies: 4
    Last Post: 18 Sep 2008, 07:48 PM
  4. Multiple tpl_main_page.php
    By jsico in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Jul 2007, 06:08 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