Zen Cart Logo
Forums / Addon Sideboxes / How can I control which sideboxes are displayed on the SSL Checkout Pages?

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

Locked

Views: 3,351

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
31 Jan 2007, 11:58 PM
#1
nresults avatar

nresults

New Zenner

Join Date:
Sep 2006
Posts:
14
Plugin Contributions:
0

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.

10 Feb 2007, 7:13 PM
#2
leeasteadman avatar

leeasteadman

New Zenner

Join Date:
Dec 2006
Posts:
6
Plugin Contributions:
0

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.

10 Feb 2007, 7:26 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

  $box_cnt++;

to include this IF statement:

  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:

  } // file_exists
  $column_left_display->MoveNext();

To read:

  } // 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->

13 Feb 2007, 5:38 PM
#4
nresults avatar

nresults

New Zenner

Join Date:
Sep 2006
Posts:
14
Plugin Contributions:
0

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!

14 Feb 2007, 12:16 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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! :smile: