I'm trying and failing to customize the Zencart interface a bit more than the template system seems to allow. I hope I'm just missing something.
I created a CUSTOM folder (not using that exact name) under (my site, ZC 1.5.0)/includes/templates/ and copied tpl_main_page.php there. I edited that tpl_main_page.php copy and added a line:
<h3>hello world</h3>
Here's the bit of code where I added it-first line at "body id" is line 53:
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
<?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>
<h3>hello world</h3>
<?php
}
}
?>
But my text appears nowhere on the main page.
I tried likewise with tpl_header.php; same result.
Why don't I see a change, and how can I get such a change? Once I know how to do "hello world", I hope to add an image just beneath the main banner (actually substituting for it) with a linkable map that I control.


Reply With Quote
