I recently installed this contribution as follows and it works perfectly.
After following the installation instructions, I put the following (some surrounding code shown for positioning) into catalog\controller\home.php
Code: Select all
$template->set('content', $view->fetch('content/home.tpl'));
$template->set($module->fetch());
$template->set('show_latest', true);
$template->set('show_specials', true);
$template->set('show_featured', true);
$response->set($template->fetch('layout.tpl'));
and modified catalog\template\default\layout.tpl as follows
Code: Select all
<div id="content">
<?php
if (isset($content)) echo $content;
if (isset($latest) & isset($show_latest)) echo $latest;
if (isset($featured) & isset($show_featured)) echo $featured;
if (isset($specials) & isset($show_specials)) echo $specials;
?>
</div>
So for example, $latest is set if the module is enabled and you only have to set $show_latest in the template of the controller(s) where you want to display the latest products.
Please note
- the code snippet as shown, would display them all on in the home page.
- the isset check on $content that was around the content div is moved inside the content div
- putting everything including $content inside the content div maintains a continuous line on the left side for the default template