Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / any way to define different banners for different pages?

any way to define different banners for different pages?

Locked

Views: 1,667

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
25 Jul 2010, 2:18 PM
#1
mybiz9999 avatar

mybiz9999

Zen Follower

Join Date:
Jul 2010
Posts:
143
Plugin Contributions:
0

any way to define different banners for different pages?

Hi,friends.

I need to define different banners for different pages?

such as 'Camera' banner for Camera category and 'mobilephone' banner for Mobilephone category.

Any method or add-on to achieve it?

Thanks.

25 Jul 2010, 4:23 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: any way to define different banners for different pages?

You can customize the banners in this manner ...

Find the code for the banner that you want ... for example, in the Layout Settings you have:
Banner Display Groups - Side Box banner_box

This uses the:
SHOW_BANNERS_GROUP_SET7

and that is used in:
/includes/modules/sideboxes/banner_box.php

If you look at the code, what it is doing is checking for the Banners that are in the Banner Group(s) set for this ...

What you want to do is control the Banner Group name used based on another criteria, such as the $current_category_id ...

So instead of using the:
SHOW_BANNERS_GROUP_SET7

You want to send it your own Banner Group based on the $current_category_id and, if that is not set, you might then use another Banner Group for Generic Banners or, to randomize it, set a number of Banner Groups in the:
Banner Display Groups - Side Box banner_box

which is the original:
SHOW_BANNERS_GROUP_SET7

and have it used when not in a specific Category ...

If no banners are found ... then the banner would not try to display ...

25 Jul 2010, 5:25 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: any way to define different banners for different pages?

mybiz9999:

I need to define different banners for different pages?

such as 'Camera' banner for Camera category and 'mobilephone' banner for Mobilephone category.
When you say "banner", are you talking about "banner ads"? (in which case Ajeh's answer is what you need).
or are you merely talking about "header graphics"? (in which case I think you're asking the wrong question)

26 Jul 2010, 12:34 AM
#4
mybiz9999 avatar

mybiz9999

Zen Follower

Join Date:
Jul 2010
Posts:
143
Plugin Contributions:
0

Re: any way to define different banners for different pages?

DrByte:

When you say "banner", are you talking about "banner ads"? (in which case Ajeh's answer is what you need).
or are you merely talking about "header graphics"? (in which case I think you're asking the wrong question)

Thank you all for relies.

I meant the 'banner ads'