คำถามติดแท็ก layer

3
Magento 1.9.2 เพิ่มการนำทางเลเยอร์เพื่อค้นหาล่วงหน้า
ฉันได้ปฏิบัติตาม 3 ขั้นตอนสำหรับการนำทางเลเยอร์การค้นหาขั้นสูง แต่มันไม่ทำงาน ความคิด / ข้อเสนอแนะหรือวิธีการนำเลเยอร์การนำทางไปใช้ในการค้นหาขั้นสูง 1) ใน local.xml ของเราใต้แคตตาล็อก search_advanced_result เพิ่ม <reference name="left"> <block type="catalogsearch/layer" name="catalogsearch.leftnav" after="currency" template="catalog/layer/view.phtml"/> </reference> 2) แทนที่ฟังก์ชัน prepareProductCollection ของ catalogsearch / model / Layer.php ด้วย public function prepareProductCollection($collection){ if(Mage::helper('catalogsearch')->getQuery()->getQueryText())//for normal search we get the value from query string q=searchtext return parent::prepareProductCollection($collection); else{ $collection->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes()); /** …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.