我一直在研究maga菜單。我在收集PHTML,如:Magento - 如何過濾phtml中的類別
<?php $_helper = Mage::helper('catalog/category') ?> <?php $_categories = $_helper->getStoreCategories() ?> <?php $currentCategory = Mage::registry('current_category') ?>
現在我必須添加過濾器來顯示特定類別。就像我有一個數組(1,2,3,4)我想要顯示的類別。所以我怎麼能過濾器應用到這個助手。
任何人有任何建議,請回答。
謝謝。
是磨砂你是對的。它減少了數據庫查詢之旅。 thans :) –