Results 1 to 4 of 4
  1. #1
    Join Date
    May 2009
    Posts
    222
    Plugin Contributions
    1

    Default I want some footer code not to show up on the https pages

    I am using some retargetting codes from google and adroll

    I dont want them to show up on the https pages of the website.

    Currently they are in includes/templates/mytemplate/common/tpl_main_page.php but its still coming up on the https pages.

    Any ideas? thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: I want some footer code not to show up on the https pages

    PHP Code:
    <?php 
    if ($request_type != 'SSL') { 
    ?>
      // put non-ssl-only HTML code, including <script> tags, here
    <?php
    }
    ?>
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2009
    Posts
    222
    Plugin Contributions
    1

    Default Re: I want some footer code not to show up on the https pages

    Thanks

    Its going in the footer before the </body>


    It looks like this so do i do

    <php>
    if ($request_type != 'SSL') {



    <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = xxxxxxxxxx;
    var google_conversion_language = "en";
    var google_conversion_format = "3";
    var google_conversion_color = "ffffff";
    var google_conversion_label = "xxxxxxxxxx";
    var google_conversion_value = 0;
    /* ]]> */
    </script>

    }

    </php>


    Sorry im not familair with putting in php tag

  4. #4
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,536
    Plugin Contributions
    19

    Default Re: I want some footer code not to show up on the https pages

    Not exactly like that. You'll need to close php tags before adding other scripts. This is how it should look like:

    Code:
    <?php
    if ($request_type != 'SSL') {
    ?>
    
    <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = xxxxxxxxxx;
    var google_conversion_language = "en";
    var google_conversion_format = "3";
    var google_conversion_color = "ffffff";
    var google_conversion_label = "xxxxxxxxxx";
    var google_conversion_value = 0;
    /* ]]> */
    </script>
    
    <?php
    }
    ?>
    I tried to point out what you were missing in red.

 

 

Similar Threads

  1. Some pages do not show up...
    By yellowaircraft in forum Customization from the Admin
    Replies: 2
    Last Post: 26 Sep 2012, 09:41 PM
  2. v138a Some category pages do not show products
    By riky in forum General Questions
    Replies: 12
    Last Post: 26 Apr 2012, 02:58 PM
  3. Dont want to show IP Address status in the footer...
    By Kruna in forum General Questions
    Replies: 1
    Last Post: 11 Aug 2007, 10:33 PM
  4. moving site - want the WHOLE thing https not http
    By humbll in forum General Questions
    Replies: 5
    Last Post: 2 Jun 2007, 01:01 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