Results 1 to 5 of 5
  1. #1
    Join Date
    May 2006
    Location
    Scotland
    Posts
    198
    Plugin Contributions
    0

    Default Where do I insert this javascript??

    My client has asked me to add a promotional script to his site www.thetobaccoshop.net but I have no idea where I should put it. The script is as follows:

    Code:
    <script type="text/javascript"> 
    <!--
    naa_siteid="1210795xxx";
    naa_sitename="thetobaccoshop.net";
    naa_test="no";
    naa_keywords=""; 
    naa_noads="";
    //-->
    </script>
    <script type="text/javascript" src="http://aa.voice2page.com/naa_1x1.js"></script>
    I understand that it calls some audio adverts. The client site opens with categories rather than the normal zen-cart home page.
    Any pointers on how to do this would be much appreciated.

  2. #2
    Join Date
    Dec 2007
    Posts
    130
    Plugin Contributions
    0

    Default Re: Where do I insert this javascript??

    Quote Originally Posted by high2K View Post
    My client has asked me to add a promotional script to his site www.thetobaccoshop.net but I have no idea where I should put it. The script is as follows:

    Code:
    <script type="text/javascript"> 
    <!--
    naa_siteid="1210795xxx";
    naa_sitename="thetobaccoshop.net";
    naa_test="no";
    naa_keywords=""; 
    naa_noads="";
    //-->
    </script>
    <script type="text/javascript" src="http://aa.voice2page.com/naa_1x1.js"></script>
    I understand that it calls some audio adverts. The client site opens with categories rather than the normal zen-cart home page.
    Any pointers on how to do this would be much appreciated.
    Answer with another question>?

    Where does you customer want this script?
    Main Page?
    in a product?
    is a Thank you message when the customer purchase?

    Don't be afraid and ask you customer where does he/she want it.
    Then you figure which file you need to modify

    Marcelo
    Last edited by marcelo63; 11 Feb 2008 at 02:56 PM.

  3. #3
    Join Date
    May 2006
    Location
    Scotland
    Posts
    198
    Plugin Contributions
    0

    Default Re: Where do I insert this javascript??

    The script needs to be on the home page, but I have no idea which php file I should be inserting the javascript into

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Where do I insert this javascript??

    If you look in the docs folder that comes with the Zen Cart release package, there's a file that explains how javascript files should be named and where they should be placed for Zen Cart to autoload them.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    May 2006
    Location
    Scotland
    Posts
    198
    Plugin Contributions
    0

    Default Re: Where do I insert this javascript??

    Thanks Kuroi. I didn't even know those files were there! Doh!

 

 

Similar Threads

  1. How can I insert "JavaScript" in the Banner Box?
    By ttmb33 in forum Customization from the Admin
    Replies: 1
    Last Post: 12 Oct 2009, 05:45 PM
  2. insert a javascript for a slideshow in header
    By supersnow in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 7 May 2009, 12:02 PM
  3. Where to insert Comodo Trust Javascript and image code?
    By leeasteadman in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 27 Jul 2007, 05:09 PM
  4. Where should I put this javascript?
    By yellow1912 in forum General Questions
    Replies: 1
    Last Post: 14 Jul 2007, 10:39 PM

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