Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jul 2006
    Posts
    60
    Plugin Contributions
    0

    Default where can I add banners to the product pages?

    Hi,
    I wanted to know where can I add banners to the product pages? For example you click on a category and you are taken to the product page where it lists the individual products you have for that category, I want to be able to add a banner on those pages. I hope I make sense.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: where can I add banners to the product pages?

    What exactly do you mean by "banner"?

    There are lots of different meanings of the word "banner" when it comes to websites and designers. A banner could be an ad. It could be a header image. It could be a wide picture. It could be lots of different things, and each would have a very different implementation. Please describe exactly what *you* mean when you use that word.
    .

    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.

  3. #3
    Join Date
    Jul 2006
    Posts
    60
    Plugin Contributions
    0

    Default Re: where can I add banners to the product pages?

    banner ads

  4. #4
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,542
    Plugin Contributions
    19

    Default Re: where can I add banners to the product pages?

    There is no built in feature that would allow you to do that. Zen Cart normally uses banners site-wide and has only a SSL/NONSSL switch.

    Here's what you could do: take any of the existing banner positions and add it to your product page.

    Let's say you'll be using header position 1. This is a step-by-step guide how to do it.

    1. Open your includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php file. Delete the following code:
    Code:
    <?php
      if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
        if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
        }
      }
    ?>
    2. Open your includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php and paste the code from above (the one you deleted) to a position where you want your banner to show up.

    3. go to "Admin -> Configuration -> Layout Settings -> Banner Display Groups - Header Position 1" and set that to ProductPage

    4. go to "Admin -> Banner Manager" and add a new banner. In the Banner Group field, manually type ProductPage

    And that's it, your banner will now show on all product pages. You can add multiple banners to the same group and display a random banner each time.

  5. #5
    Join Date
    Jul 2006
    Posts
    60
    Plugin Contributions
    0

    Default Re: where can I add banners to the product pages?

    I have banner on the homepage that I don't want to remove, but I will look at what you sent thank you!

  6. #6
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,542
    Plugin Contributions
    19

    Default Re: where can I add banners to the product pages?

    The one I mentioned is usually located ABOVE the header, on the very top of the page. So, unless your template was designed differently, you should be safe to use it.

  7. #7
    Join Date
    Jul 2006
    Posts
    60
    Plugin Contributions
    0

    Default Re: where can I add banners to the product pages?

    Yes it is different because I don't have this page tpl_product_info_display.php, but thank you for your help anyway.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: where can I add banners to the product pages?

    Quote Originally Posted by Jen Will View Post
    I don't have this page tpl_product_info_display.php, but thank you for your help anyway.
    Um ... yes, you do.

    Your custom template may not yet have a customized version of the file, but if you copy it from the template_default and store your altered version of it in your own template folder, then you can make adjustments as necessary. That's all part of the template-override system. Details in the Tutorials/FAQs area.
    .

    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.

  9. #9
    Join Date
    Apr 2012
    Posts
    1
    Plugin Contributions
    0

    Default Re: where can I add banners to the product pages?

    Hi,
    I have a jewelry site and I'd like to post random banners on specific jewelry pictures (to say "special" or "sale through...").
    How would I do this?
    Thanks

  10. #10
    Join Date
    Apr 2011
    Posts
    383
    Plugin Contributions
    0

    Default Re: where can I add banners to the product pages?

    Quote Originally Posted by balihr View Post
    There is no built in feature that would allow you to do that. Zen Cart normally uses banners site-wide and has only a SSL/NONSSL switch.

    Here's what you could do: take any of the existing banner positions and add it to your product page.

    Let's say you'll be using header position 1. This is a step-by-step guide how to do it.

    1. Open your includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php file. Delete the following code:
    Code:
    <?php
      if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
        if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
        }
      }
    ?>
    2. Open your includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php and paste the code from above (the one you deleted) to a position where you want your banner to show up.

    3. go to "Admin -> Configuration -> Layout Settings -> Banner Display Groups - Header Position 1" and set that to ProductPage

    4. go to "Admin -> Banner Manager" and add a new banner. In the Banner Group field, manually type ProductPage

    And that's it, your banner will now show on all product pages. You can add multiple banners to the same group and display a random banner each time.
    This is a great how-to but I would like to have the banner on product listing page only and not on the product info page.

    So basically, once you click on a category, the product listing is display which is where I would like the banner to be displayed

    Which file should i insert the code into instead of tpl_product_info_display.php??

    Thank you

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 1 Feb 2015, 03:35 PM
  2. v151 Banners show in all pages, except for product pages. Help!
    By AquaticAddiction in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Mar 2014, 05:56 PM
  3. v139h How can I add space between rows of products on the product listing pages?
    By lina0962 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 May 2013, 03:10 PM
  4. v139h Additional Images Layout on Product Pages - where can this be changed?
    By shags38 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Aug 2012, 09:39 PM
  5. Where can I add/subtract from the TITLE of the box for New Products
    By driven13 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Jun 2010, 04:11 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