hitman0042 Posted September 11, 2010 Posted September 11, 2010 How do you add new pages on Oscommerce and then also have a link to it on the link bar?
Guest Posted September 11, 2010 Posted September 11, 2010 Mason, This is the easiest way I have found to add pages: http://addons.oscommerce.com/info/1026 Chris
hitman0042 Posted September 12, 2010 Author Posted September 12, 2010 hmmm very complicated. I just want 1 extra page so i can put Live support on it. I wanna be bale to put my MSN on it. ANd i need a page for that??
Guest Posted September 12, 2010 Posted September 12, 2010 This site has some good tutorials including how to add a new page: http://oscommerce-template-easy.com/oscommerce-tutorials-center.html
forummaker Posted September 12, 2010 Posted September 12, 2010 anyone know???? Try this... Works for me every time. Link: http://www.oscommerce.com/forums/topic/40982-how-to-add-a-new-pages-to-osc/ That "Can" you're about to open... has worms! Don't say I didn't worn ya. n. pl. cans of worms Informal - A source of unforeseen and troublesome complexity.
hitman0042 Posted September 12, 2010 Author Posted September 12, 2010 Yer that is a simple one but the ptoblem is the tutorial is on an older oscommernce hence i cnt find thos piece of coding: define('FILENAME_NEW_PAGE', 'new_page.php');
forummaker Posted September 13, 2010 Posted September 13, 2010 Yer that is a simple one but the ptoblem is the tutorial is on an older oscommernce hence i cnt find thos piece of coding: define('FILENAME_NEW_PAGE', 'new_page.php'); I'm running 2.2 rc2a , and it works for me. What version are you running? I will give clearer instructions, if you would like. That "Can" you're about to open... has worms! Don't say I didn't worn ya. n. pl. cans of worms Informal - A source of unforeseen and troublesome complexity.
hitman0042 Posted September 13, 2010 Author Posted September 13, 2010 i am running the same version as you. I would like clear instructions please. This is very hard. Otherwise, i can pay you $10-15 USD to join my PC via Teamviewer and install 2 new pages and install a discount coupon to my website. I really need someone to do this for me, everytime i attempt it, my website corrupts. Let me know if you wanan do it for $10-15 USD or something. Would be great!
forummaker Posted September 13, 2010 Posted September 13, 2010 I'll give you some instructions... Don't worry about paying. STEP 1: Access your files via FTP. Goto: /conditions.php Download that file. Open the file in whatever editing software you use. Locate in that file: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONDITIONS)); Change to: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WHATEVER_YOUR_NEW_PAGE_NAME_IS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_WHATEVER_YOUR_NEW_PAGE_NAME_IS)); Now change the name of the file when you save it: - what_ever_your_new_page_name_is.php (filename does not have to be capitalized) Upload that to your server via ftp. Place it in the root folder: / STEP 2: Using your ftp program... locate and download filenames.php. That can be found here: /admin/filenames.php Make a backup of this file. Just in case you make a mistake. Open the file using your editing software. You'll see a list of the following: define('FILENAME_SHOPPING_CART', 'shopping_cart.php'); define('FILENAME_SPECIALS', 'specials.php'); define('FILENAME_SSL_CHECK', 'ssl_check.php'); define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php'); Now add this anywhere in that: define('FILENAME_WHATEVER_YOUR_NEW_PAGE_NAME_IS', 'what_ever_your_new_page_name_is.php'); Save the file and upload back to the proper directory: /admin/filenames.php STEP 3: Again, using your ftp program, locate and download the following file shipping.php. That is found here: /admin/languages/english/shipping.php You don't need to edit anything in the file. You'll be able to do that from the admin section in OSC: Tools/Define Languages You will need to simply change the name of the file to: what_ever_your_new_page_name_is.php Don't get the two new files confused, because they are the same name. They are located in different parts of the server. Again, the one you are currently working on is from the language file. /admin/languages/english/what_ever_your_new_page_name_is.php That is where you will upload the file back to once you change the name. STEP 4: Go to your new page on the web: http:// blahblahbla.com/what_ever_your_new_page_name_is.php If everything looks correct. Now, log into your OSC account and go to: Tools/Define Languages Locate your file name: what_ever_your_new_page_name_is.php Now simply edit the text as you like. One thing to remember when editing your text in the "Define Languages". When adding words with an apostrophe ' you must add this before it \ Example: What's Should be: What\'s Hope that helps. Good luck.... and happy selling. That "Can" you're about to open... has worms! Don't say I didn't worn ya. n. pl. cans of worms Informal - A source of unforeseen and troublesome complexity.
hitman0042 Posted September 13, 2010 Author Posted September 13, 2010 ah thnk a lot for this! Very clear! I actually found somone that will help me out with the site. I paid him for his effort.
forummaker Posted September 18, 2010 Posted September 18, 2010 Please note the corrections in bold: STEP 1: Access your files via FTP. Goto: /conditions.php Download that file. Open the file in whatever editing software you use. Locate in that file: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONDITIONS)); Change to: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WHATEVER_YOUR_NEW_PAGE_NAME_IS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_WHATEVER_YOUR_NEW_PAGE_NAME_IS)); Now change the name of the file when you save it: - what_ever_your_new_page_name_is.php (filename does not have to be capitalized) Upload that to your server via ftp. Place it in the root folder: / STEP 2: Using your ftp program... locate and download filenames.php. That can be found here: /includes/filenames.php Make a backup of this file. Just in case you make a mistake. Open the file using your editing software. You'll see a list of the following: define('FILENAME_SHOPPING_CART', 'shopping_cart.php'); define('FILENAME_SPECIALS', 'specials.php'); define('FILENAME_SSL_CHECK', 'ssl_check.php'); define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php'); Now add this anywhere in that: define('FILENAME_WHATEVER_YOUR_NEW_PAGE_NAME_IS', 'what_ever_your_new_page_name_is.php'); Save the file and upload back to the proper directory: /includes/filenames.php STEP 3: Again, using your ftp program, locate and download the following file shipping.php. That is found here: /includes/languages/english/shipping.php You don't need to edit anything in the file. You'll be able to do that from the admin section in OSC: Tools/Define Languages You will need to simply change the name of the file to: what_ever_your_new_page_name_is.php Don't get the two new files confused, because they are the same name. They are located in different parts of the server. Again, the one you are currently working on is from the language file. /includes/languages/english/what_ever_your_new_page_name_is.php That is where you will upload the file back to once you change the name. STEP 4: Go to your new page on the web: http:// blahblahbla.com/what_ever_your_new_page_name_is.php If everything looks correct. Now, log into your OSC account and go to: Tools/Define Languages Locate your file name: what_ever_your_new_page_name_is.php Now simply edit the text as you like. That "Can" you're about to open... has worms! Don't say I didn't worn ya. n. pl. cans of worms Informal - A source of unforeseen and troublesome complexity.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.