As always
**BACKUP FIRST**
Follow these instruction to add an about us page,
to add any other page change "aboutus" to "yourpagename"
------------------------------------------------------------------------------------
Copy catalog\shipping.php
Rename to aboutus.php
Change all instances of “shipping” to “aboutus”
------------------------------------------------------------------------------------
Copy catalog\admin\define_shipping.php
Rename to define_aboutus.php
Change all instances of “shipping” to “aboutus”
------------------------------------------------------------------------------------
Copy catalog\includes\languages\english\shipping.php
Rename to aboutus.php
Change all instances of “shipping” to “aboutus”
------------------------------------------------------------------------------------
Copy catalog\includes\languages\english\shipping_conten t.php
Rename to aboutus_content.php
------------------------------------------------------------------------------------
Copy catalog/templates/fallback/content/shipping.tpl.php
Rename to aboutus.tpl.php
Change all instances of “shipping” to “aboutus”
------------------------------------------------------------------------------------
in catalog/includes/boxes/information.php
Find around line 52
'<a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '</a><br>' .
Add
'<a href="' . tep_href_link(FILENAME_ABOUTUS) . '"> ' . BOX_INFORMATION_ABOUTUS . '</a><br>' .
Above or below it depending on where you want about us to display
------------------------------------------------------------------------------------
in catalog/includes/languages/english.php
Find
define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');
add below it
define('BOX_INFORMATION_ABOUTUS', 'About Us');
------------------------------------------------------------------------------------
In catalog/includes/filenames.php
Find
define('CONTENT_SHIPPING', 'shipping');
define('CONTENT_SHIPPING_CONTENT', 'shipping_content');
add Below
define('CONTENT_ABOUTUS', 'aboutus');
define('CONTENT_ABOUTUS_CONTENT', 'aboutus_content');
Find
define('FILENAME_SHIPPING', CONTENT_SHIPPING . '.php');
define('FILENAME_SHIPPING_CONTENT', CONTENT_ SHIPPING _CONTENT . '.php');
add Below
define('FILENAME_ABOUTUS', CONTENT_ABOUTUS . '.php');
define('FILENAME_ABOUTUS_CONTENT', CONTENT_ABOUTUS_CONTENT . '.php');
------------------------------------------------------------------------------------
in
catalog/includes/configure_bts.php
Find
define('TEMPLATENAME_SHIPPING', 'shipping.tpl.php');
add below
define('TEMPLATENAME_ABOUTUS', 'aboutus.tpl.php');
------------------------------------------------------------------------------------
in
catalog/admin/index.php
find
array('title' => BOX_CATALOG_DEFINE_SHIPPING, 'link' => tep_href_link(FILENAME_DEFINE_SHIPPING, 'selected_box=catalog')),
add below
array('title' => BOX_CATALOG_DEFINE_ABOUTUS, 'link' => tep_href_link(FILENAME_DEFINE_ABOUTUS, 'selected_box=catalog')),
------------------------------------------------------------------------------------
in
catalog/admin/includes/filename.php
find
define('FILENAME_DEFINE_SHIPPING', 'define_shipping.php');
add below
define('FILENAME_DEFINE_ABOUTUS', 'define_aboutus.php');
------------------------------------------------------------------------------------
in
catalog/admin/includes/languages/english.php
find
define('BOX_CATALOG_DEFINE_SHIPPING', 'Shipping Page');
add after it
define('BOX_CATALOG_DEFINE_ABOUTUS', 'About Us Page');
------------------------------------------------------------------------------------
in
catalog/admin/includes/boxes/catalog.php
find
tep_admin_files_boxes(FILENAME_DEFINE_PRIVACY, BOX_CATALOG_DEFINE_PRIVACY) .
Add immediately below
tep_admin_files_boxes(FILENAME_DEFINE_ABOUTUS, BOX_CATALOG_DEFINE_ABOUTUS) .
-------------------------------------------------------------------------
add permissions as per
forbidden access error on new pages in admin
------------------------------------------------------------------------------------
Enjoy!





LinkBack URL
About LinkBacks







Bookmarks