I found this post because I was having the same problem with the quick order page and I know what is happening. Look below for my solution.

Originally Posted by
econcepts
The error you are getting means you are missing a file (or have placed it in the wrong location). That is what the "no such file or directory" part means.
As far as your exact error:
Check the two parts I have listed in red.
1) You have a double slash in the include portion. You should only have one slash
2) If you are not using the classic template for your web store, then that would explain why it says "no such file or directory". The link in red points to the classic folder.
If you use a custom folder, you'll want to make sure you installed the analytics include there.
Once you get the include portion into the correct "tpl_main_page.php", it should solve the rest of your errors. They all stem from the same thing.
My advice would be to go back and make sure you uploaded the files to the correct locations.

Originally Posted by
mbheald
I am creating an order form (using Quick Order Module) for Firehouse Subs Restaurants to order all of their hot sauces on our approved list. however, I have already used this module to create an quick order form for all of our customers to use. I modified the filenames, extra datafiles, language files, template files, and header.php from "quick_order" to "fhs_quick_order" and QUICK_ORDER to "FHS_QUICK_ORDER" in their respective places and the module will work and add items to the cart. however I am receiving some errors at the bottom of the page that I cannot figure out.
Warning: main(includes/templates/classic/fhs_quick_order//google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/hotshots/public_html/includes/templates/classic/common/tpl_main_page.php on line 180
Warning: main(includes/templates/classic/fhs_quick_order//google_analytics.php) [function.main]: failed to open stream: No such file or directory in /home/hotshots/public_html/includes/templates/classic/common/tpl_main_page.php on line 180
Fatal error: main() [function.require]: Failed opening required 'includes/templates/classic/fhs_quick_order//google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hotshots/public_html/includes/templates/classic/common/tpl_main_page.php on line 180
The file is not placed in the wrong area. It is in template_default/google_analytics/ folder, and with the override system of ZC it doesn't need to be copied to any other template unless you want to make changes to the code in the file.
The problem is with the installation instructions where it states to put in this line in the tpl_main_page.php page
Code:
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
the problem is in the use of just ".php" it needs to be changed to 'google_analytics.php' to work properly on the quick order form. I figured this out by searching for the get_template_dir function and found other places where it was used and did use (always used) the full name of the file needed.
the way that the get_template_dir works is that it looks to see if the file exists in this order
1)current_template/currentpage/ folder
2)template_default/currentpage/ folder
3)current_template/$template_dir(google_analytics)/ folder
4)if nothing else matches then return template_default/$template_dir(google_analytics)
with the instructions the way they currently are in the analytics contributions, the get_template_dir will return true at number 2 and returns template_default/quick_order/ because file_exists says that the folder is valid since an improper filename was given and just checks the directory, which then falls back to the tpl_main_page and gets concat'd with "google_analytics.php" which isn't found.
So change ".php" to 'google_analytics.php' for it to work properly all the time.
Hope this helps.
Bookmarks