Actually coming back to this since there was a slight problem.
While Twitchtoo's solution was helpful and actually worked, the code to display the define_main_page on tpl_index_product_list allowed for define_main_page to be displayed on all product listing pages. Category pages were not affected. So I decided to try to look for another possible solution and found this thread: https://www.zen-cart.com/showthread.php?138175-Banners-only-on-main-page
Thank you Ajeh for the guidance and code. Below is the detail of my process for those looking to do the same.
In order to get the results I wanted without the define_main_page showing up on my product listing pages, I had to move my define_main_page content into a banner and set that banner to show up at the position I wanted (in this case, top position 3)
I copied the tpl_main_page file from the default template files into my shop's template files and fixed this code:
Code:
<?php
if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
Into this:
Code:
<?php
if ($this_is_home_page && (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3))) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
This changes this specific banner position and makes it so that it's only visible on the home page of your website and no where else. I can imagine this being useful in other functions as well.
Bookmarks