Zen Cart Logo
Forums / Basic Configuration / remove sidebox on just two pages

remove sidebox on just two pages

Locked

Views: 2,261

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
20 Aug 2006, 12:05 PM
#1
raimond avatar

raimond

Zen Follower

Join Date:
Jul 2004
Location:
The Netherlands, Wierden
Posts:
423
Plugin Contributions:
0

remove sidebox on just two pages

I have the sidebox whats_new on every pages. But i want to disable this sidebox at the pages "checkout_payment","checkout_confirmation"

I added ..includes/modules/sideboxes/my_template/whats_new.php

  $show_whats_new= false;

 if ($_GET['main_page'] == 'checkout_payment') {
  $show_whats_new= false;
 } else {
  $show_whats_new= true;
 }

or ```
if ($_GET['main_page'] == 'checkout_payment'){
$whats_new = false;
}


but bot codes wont work to disable the sidebox in the checkout_payment. What did I wrong?
20 Aug 2006, 12:08 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: remove sidebox on just two pages

  if ($random_whats_new_sidebox_product->RecordCount() > 0 ) {
```needs to be changed to:```
  if ($random_whats_new_sidebox_product->RecordCount() > 0 && $show_whats_new != false) {
20 Aug 2006, 12:17 PM
#3
raimond avatar

raimond

Zen Follower

Join Date:
Jul 2004
Location:
The Netherlands, Wierden
Posts:
423
Plugin Contributions:
0

Re: remove sidebox on just two pages

thnx, but if i do that the sidebox dissapear on every pages not on the pages "checkout_payment","checkout_confirmation"

20 Aug 2006, 1:10 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: remove sidebox on just two pages

include your suggested code too:

  $show_whats_new= false;

 if ($_GET['main_page'] == 'checkout_payment' || $_GET['main_page'] == 'checkout_confirmation') {
  $show_whats_new= false;
 } else {
  $show_whats_new= true;
 }
20 Aug 2006, 1:19 PM
#5
raimond avatar

raimond

Zen Follower

Join Date:
Jul 2004
Location:
The Netherlands, Wierden
Posts:
423
Plugin Contributions:
0

Re: remove sidebox on just two pages

:clap: wonderful great :clap:

25 Feb 2010, 12:06 PM
#6
alex804188 avatar

alex804188

New Zenner

Join Date:
Feb 2010
Posts:
6
Plugin Contributions:
0

Re: remove sidebox on just two pages

hi there
please advice how to remove a box on top of sidebox of information. :(
website: https://www.ocfashionlover.com

thanks a lot