Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2010
    Posts
    143
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: anyway 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 ...
    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!

  3. #3
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

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

    Quote Originally Posted by mybiz9999 View Post
    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)
    .

    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.

  4. #4
    Join Date
    Jul 2010
    Posts
    143
    Plugin Contributions
    0

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

    Quote Originally Posted by DrByte View Post
    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'

 

 

Similar Threads

  1. v138a Different sidebox banners for different languages
    By dinix in forum Basic Configuration
    Replies: 3
    Last Post: 4 Dec 2012, 01:35 AM
  2. v150 different product info pages for different categories
    By twistedmilas89 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Jul 2012, 09:10 PM
  3. Different header banners for different categories?
    By crichw in forum General Questions
    Replies: 3
    Last Post: 11 Sep 2010, 01:38 PM
  4. Different CSS for Different Pages, and Products
    By markpr9 in forum Templates, Stylesheets, Page Layout
    Replies: 19
    Last Post: 17 Jun 2010, 11:31 PM
  5. how to get different header for different pages? - Without CSS
    By markpr9 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 15 Apr 2009, 04:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR