Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2008
    Location
    newcastle upon tyne (UK)
    Posts
    876
    Plugin Contributions
    2

    Default Banner management

    Hi,

    Is there a way to have banners turn off on certain pages? Like how you can have a sidebox showing or not showing depending on the page?

    For example, I would like to have some banners only show on the index page.


    I have search this site but cannot find the answer

  2. #2
    Join Date
    Dec 2005
    Posts
    1,059
    Plugin Contributions
    2

    Default Re: Banner management

    [FONT=Arial]Country Kitty Crafts[/FONT][FONT=Arial]
    [/FONT] [FONT=Garamond]
    [/FONT]

  3. #3
    Join Date
    Oct 2008
    Location
    newcastle upon tyne (UK)
    Posts
    876
    Plugin Contributions
    2

    Default Re: Banner management

    Hi,

    cheers for the link but its the banners i want to be able to switch on and off for some pages... like you can with sideboxes.

    Its got me stumped... any ideas?

    like Banner Group: header1 to show on main page only
    or Banner Group: header2 on checkout pages only

    the same concept of sideboxes and left or right column on or off on some pages.,,, but i cant work out with the baners

    Quote Originally Posted by TShooters View Post

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

    Default Re: Banner management

    The idea is that there is code doing something somewhere ...

    You want something to happen or not happen on the main home page ...

    Find the chunk of current code ... make sure you know the starting point and ending point of the code ...

    $this_is_home_page

    identifies if you are on the Home Page ...

    Code:
    if ($this_is_home_page) {
      // do something I am on home page
    } else {
      // do something else I am not on home page
    }
    So say you want to control a banner ...

    Find the code that creates the banner process ...

    Find the end of the code that ends the banner process ...

    If you add the:
    Code:
    if ($this_is_home_page) {
    above the banner code ...

    banner code is here
    more banner code is here
    more banner code is here

    and then you close the IF for the $this_is_home_page after the end of the banner code:
    } // end of the $this_is_home_page code
    then the code inside the new IF can only run when on the home page ...
    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!

  5. #5
    Join Date
    May 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: Banner management

    Well, it would be nice if there was a way, when we configure a new banner at banner manager, we could define in which pages this banner would be active or not. For example there could be a field to set up that the banner will be active when the visitor is viewing products in category with id=xxx. That would help the eshop owners (not the administrators, who have the knowledge of programming) to set up the best target-banners.
    I suppose that this will be available in later versions of zen-cart (i hope at 1.4...!)

 

 

Similar Threads

  1. Banner Management & Internal/Relative Linking
    By Centec2b in forum General Questions
    Replies: 6
    Last Post: 6 Mar 2011, 07:45 PM
  2. Banner Management
    By zfelipen in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Oct 2010, 05:38 AM
  3. adsense not show in banner management
    By wowemall in forum Basic Configuration
    Replies: 1
    Last Post: 6 Oct 2010, 05:10 AM
  4. 1 Banner not showing and other banner appearing twice
    By wolf99 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Oct 2006, 05:26 PM
  5. banner management report
    By onakat in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Oct 2006, 12:16 AM

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