Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Disable Sideboxes in search results

Disable Sideboxes in search results

Locked

Views: 1,398

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
15 Aug 2007, 5:42 PM
#1
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Disable Sideboxes in search results

I've tired a few things, but I can't seem to get the right side sideboxes to disable on advanced search product listing.

I've tired this, but doens't seem to be working. ( TPL_main_page.php)

if (in_array($current_page_base,explode(",",'advanced_search_result,advanced_search_result&search_in_description')) ) {
$flag_disable_right = true;
}

Thanks to whoever can help.

16 Aug 2007, 5:23 AM
#2
lastpirate007 avatar

lastpirate007

Zen Follower

Join Date:
Jul 2007
Posts:
137
Plugin Contributions:
0

Re: Disable Sideboxes in search results

shackle:

I've tired a few things, but I can't seem to get the right side sideboxes to disable on advanced search product listing.

I've tired this, but doens't seem to be working. ( TPL_main_page.php)

if (in_array($current_page_base,explode(",",'advanced_search_result,advanced_search_result&search_in_description')) ) {
$flag_disable_right = true;
}

Thanks to whoever can help.

hi

if u want 2 disable side box permanently then go to admin> tool>layout box controller .

u can disable side box as per choice.

16 Aug 2007, 9:14 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Disable Sideboxes in search results

shackle:

( TPL_main_page.php)This should do it:```
if (in_array($current_page_base,explode(",",'advanced_search_result')) ) {
$flag_disable_right = true;
}

16 Aug 2007, 7:21 PM
#4
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Re: Disable Sideboxes in search results

Thanks, but that didn't seem to work for me.

I double checked everything too.

Let me know if you have anyother ideas.

DrByte:

This should do it:```
if (in_array($current_page_base,explode(",",'advanced_search_result')) ) {
$flag_disable_right = true;
}

16 Aug 2007, 7:25 PM
#5
shackle avatar

shackle

Zen Follower

Join Date:
Apr 2006
Posts:
228
Plugin Contributions:
0

Re: Disable Sideboxes in search results

Ah nevermind there was a error in my the TPL file.

Got it working now.

Thanks!