Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2007
    Posts
    16
    Plugin Contributions
    0

    Default Javascript killing Secure Pages

    I am using sitemeter on my site. I put it in my main page template so that it tracks every page. The problem is that it kills the SSL on the checkout pages.

    Is there a bit of code I can put around the javascript that will not show it on any page that requires SSL?

    I've searched around the forums, but have been unsucessful in finding anything.

    Thanks for any help.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Javascript killing Secure Pages

    Code:
    if ($request_type == 'SSL') {
    // put your SSL code here
    } else { 
    // put your non-SSL code here
    }
    .

    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
    Feb 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: Javascript killing Secure Pages

    Thanks Doc!

 

 

Similar Threads

  1. Secure catalog pages not secure 1.3.9h
    By crichw in forum General Questions
    Replies: 1
    Last Post: 5 Apr 2012, 05:01 PM
  2. 2 favicons on one site [one on secure pages and a different one on non-secure pages]
    By dharma in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 15 Feb 2007, 03:00 AM
  3. prevent javascript on secure page
    By jonnybignote in forum General Questions
    Replies: 4
    Last Post: 30 Sep 2006, 07:23 AM
  4. Killing 'Add To Cart' for info pages
    By DougBittinger in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 May 2006, 06:34 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