Zen Cart Logo
Forums / All Other Contributions/Addons / Which tpl_main_page.php ???

Which tpl_main_page.php ???

Locked

Views: 1,590

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
15 Aug 2008, 4:58 PM
#1
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

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?

15 Aug 2008, 5:25 PM
#2
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

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.

15 Aug 2008, 6:07 PM
#3
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: Which tpl_main_page.php ???

I got it working. :clap:

My mistake was that I followed the readme.txt literally... It said:

  1. 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?

15 Aug 2008, 6:28 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Which tpl_main_page.php ???

zcnb:

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.

15 Aug 2008, 7:47 PM
#5
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: Which tpl_main_page.php ???

stevesh:

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.

15 Aug 2008, 8:11 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Which tpl_main_page.php ???

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

15 Aug 2008, 9:57 PM
#7
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: Which tpl_main_page.php ???

stevesh:

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/showpost.php?p=597706&postcount=13