我想用分層導航塊創建一個製造商(品牌在我的情況)過濾器,並把這下我的默認PS 1.5排序分層導航塊 - 發生在產品種類的地方的Prestashop 1.6
我這樣做通過我的category.tpl插入碼
{include file="./modules/blocklayered/blocklayered.tpl"}
所以現在我的問題是,當我在做的Prestashop 1.6這一步我ecounter這個錯誤
Notice: Undefined index: nbr_filterBlocks in /home/vhost/dextertonstore2/cache/smarty/compile/2a/3d/27/2a3d274f79f30dbcf6a26fed74f871da2fb62e0e.file.blocklayered.tpl.php on line 44 Notice: Trying to get property of non-object in /home/vhost/dextertonstore2/cache/smarty/compile/2a/3d/27/2a3d274f79f30dbcf6a26fed74f871da2fb62e0e.file.blocklayered.tpl.php on line 44
Notice: Undefined index: nbr_filterBlocks in /home/vhost/dextertonstore2/cache/smarty/compile/2a/3d/27/2a3d274f79f30dbcf6a26fed74f871da2fb62e0e.file.blocklayered.tpl.php on line 436 Notice: Trying to get property of non-object in /home/vhost/dextertonstore2/cache/smarty/compile/2a/3d/27/2a3d274f79f30dbcf6a26fed74f871da2fb62e0e.file.blocklayered.tpl.php on line 436
我試着清除緩存並重新編譯我的模板,我甚至在\ cache \ smarty \ cache和\ cache \ smarty \ compile中手動刪除了我的緩存,但仍然得到這個錯誤。
不,我用默認的分層導航在1.6而在1.5我使用舊版本.. IM不tryng來修改我的分層導航的外觀,因爲我知道如何在tpl中修改它..我想將分層塊放在category.tpl中可以找到的默認排序旁邊,現在我的問題是包含分層navs.tpl以硬編碼的方式..因爲我們的默認排序的地方是不可鉤的..唯一的辦法,我認爲我可以插入分層的導航除了默認排序是包括tpl ..這工作在PS 1.5 –
但似乎你包含的tpl文件包含一個變量,不是由當前頁面控制器發送。你是否同意我的觀點?如果在任何地方提及'nbr_filterBlocks'並向我們反饋,請檢查您的tpl文件。 –
是的我同意,我試圖刪除nbr_filterBlocks,這是我得到的錯誤 –