This is a discussion on Add Definable About US, or any Page within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; As always **BACKUP FIRST** Follow these instruction to add an about us page, to add any other page change "aboutus" ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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! |
| The Following User Says Thank You to khennessy For This Useful Post: | ||
michael_s (02-29-2008) | ||
|
#2
| |||
| |||
| I have just added an "about us" page. It all seems to work good, but now I get this error at the top of the new "about us" page. F Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/flutter/public_html/catalog1/whoarewe.php:1) in /home/flutter/public_html/catalog1/includes/functions/sessions.php on line 98 Can someone help me out. |
|
#3
| |||
| |||
| Guys, have you tried my about us page contrib I added here last year? About Us Page Creator 1.0.0 - osCMax - osCommerce Maximized Just upload the files to freshly installed oscmax 2.0 installation. It should work. If not, post any issues here. |
|
#4
| |||
| |||
| Problem Fixed... I had accidently added the letter F before the <?php start code at the top of the catalog/mynewpage.php. Thats all it was folks... Terry. |
|
#5
| |||
| |||
| Hi Terry, I didnt get a chance to check it for you, glad you got it sorted, Regards, Kieran |
| The Following User Says Thank You to khennessy For This Useful Post: | ||
flutterby (03-11-2008) | ||
|
#6
| |||
| |||
| I followed the instructions and all I would get upon trying to view the new page was a completely blank page. I used the contrib by allwebnow mentioned above and it worked like a dream. Thank Thank Thank You |
|
#7
| |||
| |||
| I was wondering when someone was going to use it. hehe. |
|
#8
| |||
| |||
| Thanks, your a life saver. i spent days going over and over and over adding new pages. I currently have 2 shopping carts I am developing for clients and both need lots of additional page that they can edit themselves. So glad I found OSMax, sure beats plain OS and adding all the contribs yourself hehe |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Add About Us Page | michael_s | New osCommerce Contributions | 0 | 12-09-2007 09:02 AM |
| Add new page probs | ozstar | osCMax v2 Customization/Mods | 5 | 05-04-2007 07:25 PM |
| How to add a new(extra) page to oscmax1.7? | amilo | osCMax v1.7 Discussion | 1 | 09-19-2005 09:52 PM |
| add a field to contact us page | stevensdesign | osCMax v1.7 General Mods Discussion | 1 | 08-01-2005 03:37 AM |
| What to add Contrib for contact us page | Kristine | osCMax v1.7 Discussion | 2 | 04-08-2004 01:31 PM |