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.
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.
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 ...
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: v1.5.5]
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!
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks