Results 1 to 10 of 2161

Threaded View

  1. #11
    Join Date
    Mar 2009
    Posts
    414
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    juneloveelyn,

    If you installed a "template" to replace the default Zen Cart, the "my_template" should be replaced with that template's name, i.e., includes/templates/apple_zen/common/tpl_main_page.php.

    When you installed the Simple Google Analytics module, there was a "my_template" that was to be renamed with the template you are using. If you are using the default and have not installed a template, I believe there is a routine to follow where you duplicate all of the template_default directories in your cart and name them "classic" so you can use the overrides system. I'm sure this is explained somewhere--in a tutorial, possibly. Of course, then you would go to Admin>Configuration>templates (I think) and choose the classic template (which is a duplicate of the default template, of course).

    If you are using the default "classic" Zen Cart template, then place the code in includes/templates/template_default/common/tpl_main_page.php.

    You are witnessing the overrides system in action (or inaction). When you install a template, usually the index page is governed by the tpl_main_page.php. That file is derived from the template_default/tpl_main_page.php, and then saved in the new template directory. You then have a copy of the default Zen Cart template for later use, plus a copy of the modified "override" template, which is the one Zen Cart will use.

    It will work if you just save it under the template_default, but if you use the method above to use a "classic" duplicate of the default, then you will have an override system. Then, in includes/templates/classic/common/tpl_main_page.php, copy the modified file tpl_main_page.php into that file, and that would be the override. That would preserve changes as overrides, thereby making future upgrades easier because you could identify your changed files more easily and upgrade any of those changed files that might be involved in the upgrade, if any.

    Sorry to be so wordy. It's just a great opportunity to consider the override system in a non-abstract way.
    Last edited by notageek; 19 Nov 2010 at 09:05 PM.

 

 

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR