我有一个关于prestashop如何工作的问题。
我的好友让我为他准备一个简单的模块(该模块被称为“srodkipomocnicze”)。
该模块已准备好(具有可用分类的表格......)。
现在我无法应对将此模块连接到“displayHome”挂钩的正确位置。
问题是显示模块但显示在页面的开头。它显示/列在页面后端的正确位置,但不在前端。
我试图改变它的顺序,即在幻灯片之下,在幻灯片等之前,不变。效果可以在这里看到http://dawid.kapka.net.pl/dawid/
安装功能和屏幕截图
public function install() {
if (Shop::isFeatureActive()) {
Shop::setContext(Shop::CONTEXT_ALL);
}
if (!parent::install() || !$this->registerHook('displayHome')) {
return false;
}
$this->installDb();
return true;
}
public function displayFront(){
.....
echo $display;
}
public function hookDisplayHome(){
return $this->displayFront();
}
在目标页面上,模块将位于其中一个子页面上,并且仅在那里。
提前致谢