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