Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2006
    Posts
    14
    Plugin Contributions
    0

    Default How can I control which sideboxes are displayed on the SSL Checkout Pages?

    I have a sidbox that uses some custom programming that links to a server outside my domain. The problem is that when a customer logs in or checks out this custom sidebox causes the SSL warning message to appear, warning of unsecure content.

    How can I hide, or control which side boxes appear on the secure pages within my site?

    Any help would be appreciated.

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

    Default Re: How can I control which sideboxes are displayed on the SSL Checkout Pages?

    Hi all,
    I too also have a closely related query to this thread. Upon carrying out a user testing session, two of the candidates gave strong indication that when they were performing the task of signing-up or checking out, they did not want sideboxes complicating / making these pages 'busy' with content that did not directly relate to the task at hand.

    Is it possible to disable sideboxes from sign-up and check-out pages?

    Can it be achieved without affecting core files?

    How can this be achieved?

    Cheers my dears.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How can I control which sideboxes are displayed on the SSL Checkout Pages?

    You can customize the modules for column_left and column_right ...

    Copy the file:
    /inclues/modules/column_left.php

    To your templates & overrides directory:
    /includes/modules/your_template_dir/colum_left.php

    Now add in a bit of code to this by changing the code:
    PHP Code:
      $box_cnt++; 
    to include this IF statement:
    PHP Code:
      if ($request_type == 'SSL' && in_array($column_left_display->fields['layout_box_name'],explode(",",'search_header.php,categories.php,manufacturers.php,whats_new.php,featured.php,specials.php,currencies.php')) ) {
        
    // example:   if (in_array($current_page_base,explode(",",'login,checkout_shipping,checkout_payment,checkout_confirmation')) && in_array($column_left_display->fields['layout_box_name'],explode(",",'search_header.php,categories.php,manufacturers.php,whats_new.php,featured.php,specials.php,currencies.php')) ) {
        // don't show anything
        //echo 'base ' . $current_page_base . ' vs ' . $column_left_display->fields['layout_box_name'] . '<br>';
      
    } else {
      
    $box_cnt++; 
    and at the bottom by the MoveNext change the code from:
    PHP Code:
      // file_exists
      
    $column_left_display->MoveNext(); 
    To read:
    PHP Code:
      // file_exists
    // not on secure
      
    $column_left_display->MoveNext(); 
    Notice in the array that you are listing the sideboxes names separated by commas but without spaces ...

    I threw in a few sideboxes to turn off when on secure pages so you could test this ...

    Now, for column_right.php ... do the same thing but change the:
    $column_left_display->

    To read:
    $column_right_display->
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Sep 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: How can I control which sideboxes are displayed on the SSL Checkout Pages?

    Thanks Ajeh,

    You're a lifesaver. No more warning messages regarding unsecure content :)

    I'm so happy I think I'll buy the Zen Cart Team a cup of coffee!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How can I control which sideboxes are displayed on the SSL Checkout Pages?

    You are most welcome and glad that this was able to work for you ...

    Thanks for the support we really appreciate it greatly!
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Determining the order in which multiple products are displayed
    By Question in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Oct 2009, 07:34 AM
  2. The order in which reviews are displayed
    By confused_aswell in forum General Questions
    Replies: 2
    Last Post: 8 Nov 2008, 07:27 AM
  3. how to control which items are listed in the Information Box
    By karma-lab in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 2 Jun 2008, 05:50 AM
  4. Replies: 2
    Last Post: 27 Dec 2007, 05:30 PM
  5. Replies: 2
    Last Post: 6 Feb 2007, 04: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