Forums / Templates, Stylesheets, Page Layout / Remove Banner on Product Detail Page only?

Remove Banner on Product Detail Page only?

Views: 1,102

Results 1 to 7 of 7
17 Jun 2011, 10:40 AM
#1
carol2848 avatar

carol2848

New Zenner

Join Date:
Nov 2007
Posts:
78
Plugin Contributions:
0

Remove Banner on Product Detail Page only?

Is there a way to remove the header banner (I use Position 3) on only the Product Detail Page?

17 Jun 2011, 1:52 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Remove Banner on Product Detail Page only?

Using your templates and overrides, you could customize the code in the:
/includes/templates/your_templates_dir/common/tpl_main_page.php

  if (!isset($_GET['products_id']) && SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Jun 2011, 3:18 PM
#3
carol2848 avatar

carol2848

New Zenner

Join Date:
Nov 2007
Posts:
78
Plugin Contributions:
0

Re: Remove Banner on Product Detail Page only?

Thanks for the reply! I want to keep it on the main page, tho...just take it off the Product Detail Page. Is this the right file? And what would I do to that line of code?

17 Jun 2011, 3:43 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Remove Banner on Product Detail Page only?

That code that I posted should allow the Banner to show, except when there is a products_id in the URL ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Jun 2011, 5:34 PM
#5
carol2848 avatar

carol2848

New Zenner

Join Date:
Nov 2007
Posts:
78
Plugin Contributions:
0

Re: Remove Banner on Product Detail Page only?

Thank You!!

7 Oct 2011, 11:29 AM
#6
blackriver avatar

blackriver

New Zenner

Join Date:
Mar 2011
Posts:
18
Plugin Contributions:
0

Re: Remove Banner on Product Detail Page only?

Hi I am also trying to disable the banner purely for the product page but I use position 2 - tried changing the code to read SHOW_BANNERS_GROUP_SET2 but just not working any ideas?:blink:

Also not sure if I putting it in the right place in the file!

Thanks

7 Oct 2011, 11:52 AM
#7
blackriver avatar

blackriver

New Zenner

Join Date:
Mar 2011
Posts:
18
Plugin Contributions:
0

Re: Remove Banner on Product Detail Page only?

Sorry - answered myown question - I had moved Banner Set 2 to my tpl_header! Doh!
The code now works but breaks something else - Never mind!:lamo: