Results 1 to 10 of 2161

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I've got the script setup exactly as in the install instructions, however the checkout_success page now refuses to show.

    The error message from the debugger is
    [08-Feb-2011 19:54:50] PHP Warning: require(includes/templates/orange/checkout_success//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 132
    [08-Feb-2011 19:54:50] PHP Warning: require(includes/templates/orange/checkout_success//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 132
    [08-Feb-2011 19:54:50] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/orange/checkout_success//google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 132
    essentially it is looking for the google analytics file here...

    includes/templates/orange/checkout_success//google_analytics.php

    instead of here

    includes/templates/orange/checkout_success/google_analytics/google_analytics.php

    however I'm unsure how to sort this problem. If i try to edit the directory in the html_header page the problem is still there except it will try to look eg. includes/templates/orange/checkout_success/google_analytics//google_analytics.php

    It is a really daft problem involving / and .. in php paths but I've tried adding and removing / and .. and all sorts of things and it keeps looking everywhere but the right place

  2. #2
    Join Date
    Jan 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I've managed to sort the problem however not in a way I'd have liked.

    Inside the checkout_success was a tpl_footer.php file as soon as I deleted this everything worked fine. It seems that as soon as any page is places into the checkout_success folder it causes this line...

    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    to fail as the $base_page changes to be looking /checkout_success and I've tried concatenating ../ and allsorts to this and can't get it up to parent directory.

    The issue now though is that the footer.php file was there for a reason, it contained custom Jrox code in it. So now how can I ensure that the Jrox code appears only on the checkout_success page BUT I'm not allowed to create any overrides?

    Alternatively, is there any way to include ../ or similar to force this line

    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
    to look here /includes/templates/orange/google_analytics/google_analytics.php ?

    The sites URL is Stylish Bean Bags . co . uk if you want to take a look, at the minute though its working as I've still got the footer deleted. Its probably easier to put the Jrox code onto the checkout_success some other way, hopefully?

  3. #3
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by stylishbb View Post
    I've managed to sort the problem however not in a way I'd have liked.

    Inside the checkout_success was a tpl_footer.php file as soon as I deleted this everything worked fine. It seems that as soon as any page is places into the checkout_success folder it causes this line...



    to fail as the $base_page changes to be looking /checkout_success and I've tried concatenating ../ and allsorts to this and can't get it up to parent directory.

    The issue now though is that the footer.php file was there for a reason, it contained custom Jrox code in it. So now how can I ensure that the Jrox code appears only on the checkout_success page BUT I'm not allowed to create any overrides?

    Alternatively, is there any way to include ../ or similar to force this line



    to look here /includes/templates/orange/google_analytics/google_analytics.php ?

    The sites URL is Stylish Bean Bags . co . uk if you want to take a look, at the minute though its working as I've still got the footer deleted. Its probably easier to put the Jrox code onto the checkout_success some other way, hopefully?
    Yes, that will cause issues (the added footer file in the 'checkout_success' directory.)

    I've written a number of posts that answer the JROX issue so that can be corrected as well.

    Here is your answer:

    http://www.zencartoptimization.com/2...-the-workbook/

    Scroll down to the comment I wrote on July 22, 2009. The details on how to make the two work together are there.

    Let me know if that helps.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  4. #4
    Join Date
    Feb 2011
    Posts
    2
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Thank you for sharing great information here. It is really helpful.

 

 

Similar Threads

  1. v150 Simple Google Analytics .sql error !
    By Miff in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Feb 2012, 11:33 PM
  2. Simple Google Analytics-not working
    By RobertG in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Nov 2010, 06:07 PM
  3. Simple (From Google) Analytics Install
    By DagLindt in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 May 2009, 10:46 PM
  4. Simple google analytics- help
    By Pet Herbal Remedies in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 1 Oct 2008, 10:37 PM
  5. Simple Google Analytics not working
    By jvanree in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 May 2008, 03:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg