try using the header_php.php file in your page.
try using the header_php.php file in your page.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
When I do that I get a huge number of errors whenever I call the search_return page.
The first error is this:
I guess what I'm trying to do is beyond my limited (non-existent) programming skills.Notice: Undefined variable: this_is_main_page in /home/teagen/public_html/newtest/includes/templates/template_default/common/tpl_main_page.php on line 51
Too bad, because it was almost there when I used the includes/application_top.php file.
What's in the files?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
As far as I can tell, mostly database calls. I'm using a separate database from the ZC dB.What's in the files?
I'm attaching the two files.
What does this file actually do? Does it insert data before the opening html tag?
This is from the docs of the search engine I'm trying to use:
So can I use the header_php.php file for this?First you should see that there are two included files right at
the top of the page: "os2/config.php" and "os2/head.php". These files
set up the environment and handle the search process, so they must be
included in the results page *before* any HTML output. This means
before the <html> tag, and before any other whitespace. Otherwise you
will get many "Headers could not be sent" errors.
Yes.
In this document which explains the program flow of Zen Cart, you'll see that the header_php.php file processes code "before" the "header" is generated. It does all the background processing before anything is sent to the browser (except perhaps a "headers already sent" or other error-related messages), including the <HTML> and <HEAD> tags.
Program-Flow document:
http://www.zen-cart.com/index.php?ma...roducts_id=378
However, with that said, from what you've posted earlier, when you're inserting your "include" statements for those files, you're somehow getting an error message (the variable not found message) which suggests that somehow the normal flow of the Zen Cart page-loading activity has been intercepted and pieces of it skipped. I'm not sure exactly why.
Where exactly in the header_php.php file did you put the includes? Without studying it in great detail thus far, I would start by suggesting putting them at the end, before the closing ?> tag.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
The error messages that were being generated were ZC errors made visible by this line of code in the search engine:
error_reporting(E_ALL);
I commented out that line and all works well.
I'm happy - thanks for your help!