我需要在產品頁面上的prestashop上創建一個模塊,im prestashop idk中的新模塊如何做到這一點。 這個模塊應該在頁面底部,它包含產品的技術說明 有人可以告訴我該怎麼做 Ps:我對prestashop掛鉤一無所知.... 在此先感謝!在prestashop上創建模塊
0
A
回答
0
有一個鉤子可能適合你。
displayProductFooter
首先,你必須添加鉤子註冊您的模塊中安裝功能
public function install()
{
...
$this->registerHook('displayProductFooter');
}
然後創建一個函數來顯示在鉤
保存的內容要顯示的內容,並使用返回來發送一個字符串,其中包含要在產品頁腳中打印的所有HTML。
在參數中,您還會發現一些有用的變量,如產品ID。
public function hookDisplayProductFooter($params)
{
// Your content here
return $output;
}
相同的程序應與任何其它鉤工作(只要它是一個顯示鉤)
+0
非常感謝@PolRué – ellatifhamza
+0
不客氣! –
相關問題
- 1. 創建prestashop模塊試圖在PrestaShop模塊上顯示錯誤
- 2. Prestashop模塊表單創建
- 3. Prestashop 1.7創建管理模塊
- 4. 在Prestashop API上創建訂單:模塊名稱出錯
- 5. 模塊prestashop
- 6. Prestashop模塊API
- 7. 我們可以使用模塊化方法在prestashop 1.6中創建模塊嗎?
- 8. 在我的模塊上篩選Prestashop 1.6
- 9. 在prestashop中創建一個模塊:error'class Module can not be found'
- 10. Prestashop 1.6 - 在自定義模塊中創建前端頁面
- 11. 在prestashop中添加從模塊創建的產品的圖像
- 12. Git的Prestashop模塊
- 13. Prestashop傳真模塊
- 14. Prestashop支付模塊
- 15. Prestashop 1.6創建模塊以顯示載體過濾器
- 16. Prestashop 1.5.4使用自定義鉤子創建自定義模塊
- 17. 從一個模塊中創建的Prestashop產品
- 18. 創建模塊prestashop 1.7啓動後客戶端驗證訂單
- 19. Prestashop - 從insode模塊實用地創建backoffice選項卡
- 20. malalert上的第三方模塊prestashop
- 21. 在vTiger 5.2.0上創建模塊
- 22. 創建模塊
- 23. 在Prestashop上安裝模塊時覆蓋模板
- 24. 添加multilangage到模塊PrestaShop
- 25. 的Prestashop模塊調試
- 26. Prestashop時事通訊模塊
- 27. 的Prestashop模塊關閉
- 28. Prestashop - 添加模塊掛鉤
- 29. 增值稅模塊prestashop
- 30. Prestashop聯邦快遞模塊
最好的方式是開始閱讀[創造的Prestashop一個模塊](HTTP文檔: //doc.prestashop.com/display/PS17/Creating+a+PrestaShop+1.7+Module) – CIRCLE