Please note that this version only works currently for Smarty v2, enabling smarty v3 will cause an error. I’ll post an update that resolves this issue shortly.
Update: This article has been revised in: 1.4 Plugins Revisited
In a previous article Display Module Output Anywhere I touched on the subject of subverting Prestashop’s internal Module architecture to our own ends. In this article we’ll be looking at creating a new mechanism for injecting module output into themes that doesn’t rely on tedious code changes, and should be able to be employed by (almost) anyone regardless of programming ability.
How about being able to display the home featured products anywhere in your template files just by adding a single line (as below)?
{plugin module='homefeatured' hook='home'}If this looks like something you would find useful, then read on….
(more…)