gary1106 Posted January 25, 2003 Posted January 25, 2003 I am trying to add a page in my default html folder below the catalog directory which includes the header include script. I get this error message. Fatal error: Failed opening required 'includes/application_top.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site18/fst/var/www/html/aboutus.php on line 13 Is there a way of amending os commerce so i can add pages below the catalog any ideas?
♥Loaded Commerce Posted January 25, 2003 Posted January 25, 2003 Take an existing page liek the shipping.php or privacy.php, make a copy and alter them to be your custom page. You could gut the content by replacing the php statement that displays the text and contunie button with your own html. To kleep the multi langauge or localized logic in tact do the following: 1. Add define statement to the Application_top for the file name 2. create copyied of the corresponding langauge files, do this for each language folder. 3 edit the php line near the top of the page to requst the new page name defined in app top 4. edit your languagee file with new text or add new definitions. HTH Best Regards, Salvatore Iozzia Loaded Commerce - Oscommerce - All Loaded Up.
gary1106 Posted January 26, 2003 Author Posted January 26, 2003 That works if the file is in the catalog directory, but when I move the file below the catalog directory i get his error, Fatal error: Failed opening required 'includes/application_top.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site18/fst/var/www/html/test1.php on line 13 How is it that it can find the the application_top script, but has the incorrect path to the configure.php script (the call on line 13)? Can you set the paths in apache or php.ini files?
♥Loaded Commerce Posted January 26, 2003 Posted January 26, 2003 I may not be understanding what you mean by below the catalog folder, I take below to mean right inside the folder. Is this not the case. I see in your code your file is not located in the catalog folder so I gues you want to outside the catalog folder. I did that once. once. i would not recommend trying it. There are ALOT of include references in thee box, the funcitons, the everything elses in osc that reying o get them to work outside the a common set of folders is not worth it. I would put your test page in the catalog. or have your non catalog page that are outside the catalog folder share only their superficial elements. Make two headers one for files outside teh catalog folder, you can make them look similar. You can use the same css file, just point to it. With all that said, does it matter what FOLDER you put your files? will your site visitors care what the path is to a give file? why put the file outside of hte catalog folder? Best Regards, Salvatore Iozzia Loaded Commerce - Oscommerce - All Loaded Up.
gary1106 Posted January 26, 2003 Author Posted January 26, 2003 Sounds like sensible advice, thanks for your help. Gary
Recommended Posts
Archived
This topic is now archived and is closed to further replies.