Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / remove search sidebox from SSL pages

remove search sidebox from SSL pages

Locked

Views: 1,222

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
15 Aug 2010, 10:21 AM
#1
gorie avatar

gorie

New Zenner

Join Date:
Jan 2008
Posts:
89
Plugin Contributions:
0

remove search sidebox from SSL pages

is there a way to remove the search sidebox from SSL pages only?

15 Aug 2010, 1:33 PM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: remove search sidebox from SSL pages

gorie:

is there a way to remove the search sidebox from SSL pages only?

This post may help (it is for the manufacturers sidebox though):

http://www.zen-cart.com/forum/showpost.php?p=868355&postcount=12

You will need to make your changes accordingly to match the name of the sidebox you want to disable on your SSL pages

15 Aug 2010, 3:11 PM
#3
gorie avatar

gorie

New Zenner

Join Date:
Jan 2008
Posts:
89
Plugin Contributions:
0

Re: remove search sidebox from SSL pages

thanks,

i tried adding this to

/includes/modules/sideboxes/MY_TEMPLATE/search.php

  // show only on non-secure pages

switch ($request_type) {
case ('SSL'):
$show_search = false;
break;
case ('NONSSL'):
$show_search = true;
break;
}

but it doesn't work. not sure what i'm doing wrong.

15 Aug 2010, 9:26 PM
#4
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: remove search sidebox from SSL pages

Try this version

(.... header....)

  // show only on non-secure pages

if ($request_type=='SSL') {
  $show_search = false;
}

(.... rest of the file ....)
17 Aug 2010, 1:55 AM
#5
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: remove search sidebox from SSL pages

I am trying to implement this for the facebook_box mod. However I am unsure of what the name for $show_xxxx should be?