Forums / Addon Sideboxes / Disable Specials Sidebox On Contact Us Page

Disable Specials Sidebox On Contact Us Page

Locked

Started by wdd49 on 10 Oct 2010, 1:49 PM · Views: 1,938

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
10 Oct 2010, 1:49 PM
#1
wdd49 avatar

wdd49

New Zenner

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

Disable Specials Sidebox On Contact Us Page

Hi Guys,

Have added the following to my specials sidebox file:
if ($this_is_home_page) {
$show_specials = false;
}

Which disables the box on the homepage. Im now also wanting to disable the box on:
Contact Page
And Category Listing Page IE Subcategory icon page....

I tried adding:

if ($this_is_contact_us_page) {
$show_specials = false;
}

But that dosn't seam to work...

Thanks guys...

10 Oct 2010, 4:17 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Disable Specials Sidebox On Contact Us Page

wdd49:

Hi Guys,

Have added the following to my specials sidebox file:
if ($this_is_home_page) {
$show_specials = false;
}

Which disables the box on the homepage. Im now also wanting to disable the box on:
Contact Page
And Category Listing Page IE Subcategory icon page....

I tried adding:

if ($this_is_contact_us_page) {
$show_specials = false;
}

But that dosn't seam to work...

Thanks guys...

try using the following:

if ($current_page_base == 'contact_us') {
$show_specials = false;
}

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

10 Oct 2010, 4:37 PM
#3
wdd49 avatar

wdd49

New Zenner

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

Re: Disable Specials Sidebox On Contact Us Page

clydejones:

try using the following:

if ($current_page_base == 'contact_us') {
$show_specials = false;
}

Works a treat thanks!

Any know know what statement i need to use for the category pages?

Pages like this one:
http://yorkshiregardencentre.co.uk/christmasshop/index.php?main_page=index&cPath=24

Greg

10 Oct 2010, 6:19 PM
#4
wdd49 avatar

wdd49

New Zenner

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

Re: Disable Specials Sidebox On Contact Us Page

Ok i worked out if i add:
if (isset($_GET['cPath'])) {

$show_specials= false;

}

It disables the sidebox on the category and sub category menu but it also disables it on product listing page.

Any advice? How to get this working to just disable on the category and sub category menu and not product listing page?