luvnbubbles Posted July 26, 2006 Share Posted July 26, 2006 OK i am really learnign this oscommerce really fast but noticed i missed a few things to ask the other day on my site www.splishsplashbb.com/index.php on the left side under the title Information i would like to replace the Privacy Notice and Conditions of Use since i wont use these i would rather make those 2 pages something else i know where to go at and change the name of the page but not sure where i go to change it under the information box. I would rather one be for About Us and one for Fragrances plus i need to add a few pages to the information section i need to make a page for rep locator, FAQ, most popular fragrances but have no idea where to do this at can someone tell me where i do these at thank you maggie Link to comment Share on other sites More sharing options...
♥Skittles Posted July 26, 2006 Share Posted July 26, 2006 OK i am really learnign this oscommerce really fast but noticed i missed a few things to ask the other day on my site www.splishsplashbb.com/index.php on the left side under the title Information i would like to replace the Privacy Notice and Conditions of Use since i wont use these i would rather make those 2 pages something else i know where to go at and change the name of the page but not sure where i go to change it under the information box. I would rather one be for About Us and one for Fragrances plus i need to add a few pages to the information section i need to make a page for rep locator, FAQ, most popular fragrances but have no idea where to do this at can someone tell me where i do these at thank youmaggie Maggie, First, let me say I highly recommend you have a privacy statement. If you want people to trust you with their private information, you need to reassure them that you aren't going to turn around and sell it. That said, you should be able to make those changes by doing the following: 1) in "includes/filenames.php", enter the new name of the files for About Us and Frangrances. around line 34 define('FILENAME_CONDITIONS', 'conditions.php'); around line 47 define('FILENAME_PRIVACY', 'privacy.php'); example: define('FILENAME_CONDITIONS', 'frangrances.php'); 2) in "includes/languages/english.php", enter the new title of the pages: Look for // information box text in includes/boxes/information.php define('BOX_HEADING_INFORMATION', 'Information'); define('BOX_INFORMATION_PRIVACY', 'Privacy Notice'); define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use'); define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns'); define('BOX_INFORMATION_CONTACT', 'Contact Us'); and change the definition for the corresponding file. example: define('BOX_INFORMATION_CONDITIONS', 'Frangrances'); Alternatively, and the course of action I recommend, you can define new filenames in "includes/filenames.php": define('FILENAME_FRANGRANCES', 'frangrances.php'); define('FILENAME_ABOUT', 'aboutus.php'); and define new page titles in includes/languages/english.php define('BOX_INFORMATION_FRANGRANCES', 'Frangrances'); define('BOX_INFORMATION_ABOUT_US', 'About Us'); then modify includes/boxes/information.php to accommodate your changes: For example: Look for (around line 23) $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); and change it to $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_FRANGRANCES) . '">' . BOX_INFORMATION_FRANGRANCES . '</a><br>' . '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); Of course, you can list the array elements in whichever order suits you. Just make sure that each element is separated by the " . " (dot) and the last element is followed by ");" (right parenthesis and semi-colon). As always when making changes, back up the files first so if it doesn't work you can copy the backups back onto the server. Good luck. -Skittles Link to comment Share on other sites More sharing options...
pjeigh Posted July 31, 2006 Share Posted July 31, 2006 Thanks - that was one of the most helpful posts for making a name.html page I have seen. Do you know how to keep the session ID on that page so CART elements are not lost when ppl. go to one of these pages? Link to comment Share on other sites More sharing options...
pjeigh Posted July 31, 2006 Share Posted July 31, 2006 Do you know how to keep the session ID on that page so CART elements are not lost when ppl. go to one of these pages? I found my own answer if using STS... Add ?$sid to the end of any URL. If you link to your home page ending in .com (or .net, etc.), make certain you trail it with .com/ (a backslash) and then ?$sid such as: http://yoururl.com/?$sid or http://yoururl.com/index.php?$sid . Now I need to get the product_info.php.html template to work in STS (latest version). Anyone have any suggestions for that? Here are my CURRENT settings: Use template for product info pagetrue Enable STS3 compatibility mode false Files for normal template sts_user_code.php Files for content template sts_user_code.php;product_info.php I've tried it with the USE TEMPLATE true and false and ENABLE STS3 true and false. My file name is product_info.php.html and I have saved it in both: - /includes/sts_templates/test - /shopping/includes/sts_templates/full Link to comment Share on other sites More sharing options...
♥Skittles Posted September 24, 2006 Share Posted September 24, 2006 pjeigh, Sorry I didn't get back to you sooner. I'm glad you figured out your issue with the session IDs. (Thanks for the nod. Once upon a time, in a land far, far away, I was occasionally called upon to "translate" engineer-speak to English for product manuals...) Not everyone is using STS, I know I'm not, so your solution won't help us. But the solution is actually quite simple. Just use the tep_href_link function to link from one .php page to another. Using the examples from my previous post, (where I repeated misspelled 'fragrances', :blush: ) one would call the new page from inside the php code something like this: <?php echo '<a href="' . tep_href_link(FILENAME_FRAGRANCES) . '">'; ?> Or from within the html of the php file, the page can be called like this: <a href="<?php echo tep_href_link(FILENAME_FRAGRANCES); ?>"> Caveat: The above examples are very simplistic for illustration purposes. For your reference, the tep_href_link function is located in [catalog]/includes/html_output.php. It accepts several arguments besides the filename, but for a simple page such as "fragrances.php" just the filename should be sufficient. -Skittles Link to comment Share on other sites More sharing options...
NicScraps Posted September 26, 2006 Share Posted September 26, 2006 I wanted to echo that THANK YOU in a big way. I've been searching the support forum for just this information, and really appreciated your clear and helpful answer. Like others here seeking help, I have plenty of computer experience, and some programming experience, but I am totally new to osCommerce, PHP, HTML, web design in general...so basically feeling "dumber than a box of rocks" as I've muddled through all this the last few weeks. It's so nice to see a thorough and friendly answer that does not contribute to my new inferiority complex. :thumbsup: Nicole Link to comment Share on other sites More sharing options...
Grimmyfrombar Posted September 27, 2006 Share Posted September 27, 2006 Hello, Ive been looking for this also, I was so glad to find it. But ive followed the instructions above and cant get this to work. Can somebody please help? I cant seem to find out where i went wrong, i also need to add a links page so i really need to get this right for future work.. Thanks fellow users, hopefully someone can help me out. grimmy Link to comment Share on other sites More sharing options...
Grimmyfrombar Posted September 27, 2006 Share Posted September 27, 2006 Hello,Ive been looking for this also, I was so glad to find it. But ive followed the instructions above and cant get this to work. Can somebody please help? I cant seem to find out where i went wrong, i also need to add a links page so i really need to get this right for future work.. Thanks fellow users, hopefully someone can help me out. grimmy Hello OK i still can not get this to work. Ive followed the instructions from here http://www.oscommerce.info/kb/Catalog_Guid...g_Area/Boxes/49 to a tee and still its not working. Could someone please take alook and let me know what you think is wrong? Or sugest so line of action? I really need help with this and appreciate any help i can get. Thanks. Link to comment Share on other sites More sharing options...
queendiva Posted September 27, 2006 Share Posted September 27, 2006 My installation seemed to go successful but when I click on the Administration Tool button, I get a blank window. What am I doing wrong? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.