Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Dec 2006
    Posts
    6
    Plugin Contributions
    0

    Default Where to insert Comodo Trust Javascript and image code?

    Hi,
    I've got a query in regards to how best insert some code global / globally across my shopping cart but also not effect core files so these code insertions are not overwritten by an update to the Zen Cart. I've changed some elements of the code to generic information.

    I've been given instructions to insert the following code before the </head> tag of all my shopping cart pages:

    <script language="javascript" type="text/javascript">
    //<![CDATA[
    var cot_loc0=(window.location.protocol == "https:")? "https://secure.ssl-supplier.net/EXAM...ascript/cot.js" :
    "http://www.ssl-supplier.com/EXAMPLEF...ascript/cot.js";
    document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');
    //]]>
    </script>
    And insert the below code just before </body> tag across all the shopping cart pages:

    <script language="JavaScript" type="text/javascript">
    COT("http://www.myshoppingcart.co.uk/HTML...ecure_site.gif", "SC2", "none");
    </script>
    Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Where to insert Comodo Trust Javascript and image code?

    head in tpl_header.php
    body in tpl_main_page.php

    Use override system
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Where to insert Comodo Trust Javascript and image code?

    actually its in the html_header.php just above the </head>
    and then the tpl_main_page.php just above the </body>
    Zen cart PCI compliant Hosting

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Where to insert Comodo Trust Javascript and image code?

    Thanks Merlin for the correction
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Where to insert Comodo Trust Javascript and image code?

    << isntalls 20 a week,
    I got it down to an art
    Zen cart PCI compliant Hosting

  6. #6
    Join Date
    Dec 2006
    Posts
    6
    Plugin Contributions
    0

    Default Re: Where to insert Comodo Trust Javascript and image code?

    Thanks people, that did the trick.

  7. #7
    Join Date
    Mar 2007
    Posts
    40
    Plugin Contributions
    0

    Default Re: Where to insert Comodo Trust Javascript and image code?

    Is it possible to limit logo display only to certain pages? Can it be placed in a sidebox? I saw an old post with an archived contribution by juxizoza (that I could not find), I am assuming this is not going to applicable to the new Comodo logo?

  8. #8
    Join Date
    Aug 2006
    Posts
    166
    Plugin Contributions
    2

    help question Re: Where to insert Comodo Trust Javascript and image code?

    hi guys
    I have already posted in this link something about the implementing a javascript combobox in zen product page. as I see your suggestions here with comparing to that post's suggestions, I am asking how to use these codes in your product page, as for every product the code may be different and so adding the codes in these files means general application of the code.

    actually I would like to add some forms in some of my products page (better than attributes "because of time saving and possibility to make better layout of the form) and by this, the client may choose or even fill some fields before uploading his file and going to add to cart. this product is used to sell advertentions that the client may want to put in our site.
    any idea how can I do it? because even very simple html -form code doesn't work; you may try it in a product page:

    ----------
    <form id="form1" name="form1" method="post" action="MAILTO:qrmmr##########################">
    <label for="textfield">
    <div align="right">car type </div>
    </label>
    <div align="right">
    <label for="label"></label>
    <p>
    <input type="text" name="textfield2" id="label" />
    </p>
    <p>
    <label for="label2">id number </label>
    </p>
    <p>
    <input type="text" name="textfield" id="textfield" />
    </p>
    <p>
    <label for="select">fuel<br />
    </label>
    <select name="select" id="select">
    <option>benzin</option>
    <option>gasoil</option>
    <option>gas</option>
    <option>mixed</option>
    </select>
    </p>
    <p>
    <label for="textarea">comments<br />
    </label>
    <textarea name="textarea" cols="60" rows="6" id="textarea"></textarea>
    </p>
    <p>
    <label for="label2">external color <br />
    </label>
    <input type="text" name="textfield3" id="label2" />
    </p>
    <p>
    --------

  9. #9
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Where to insert Comodo Trust Javascript and image code?

    Quote Originally Posted by Merlinpa1969 View Post
    << isntalls 20 a week,
    I got it down to an art
    Merlin,

    If I have a javascript that I only need to add to the checkout_success page in <head> </head> what would be the best approach to implement that. The javascript is for tracking Yahoo Search Marketing conversion.

    Thanks!

  10. #10
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Where to insert Comodo Trust Javascript and image code?

    You would make a folder named checkout_success in your
    includes/templates/Custom template/

    inside this new folder put a copy of html_header.php

    put your code inside this just above </head>

    not this header file will trigger only durring checkout_success
    Zen cart PCI compliant Hosting

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Comodo corner of trust seal code insertion help please
    By allen2 in forum Basic Configuration
    Replies: 22
    Last Post: 6 Jul 2010, 06:48 AM
  2. get rid of comodo trust logo on "View larger image popup"
    By Zeroca in forum General Questions
    Replies: 9
    Last Post: 5 Mar 2008, 09:02 AM
  3. Where do I insert this javascript??
    By high2K in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Feb 2008, 10:14 AM
  4. Comodo Trust Logo
    By Fuzion in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 May 2007, 02:37 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