Month: March 2013

Magento-custom list.phtml for any category

Magento-custom list.phtml for any category

access your Magento admin panel and navigate to Catalog > Manage Categories. Select the theme you wish to have a custom list.phtml and go to the Custom Design tab. Now, in the field labeled “Custom Layout Update,” enter this code: <reference name=”product_list”> <action method=”setTemplate”> <template>catalog/product/list-custom.phtml</template> </action> </reference>

Magento: Set Random Order in Collection using Zend RAND()

Magento: Set Random Order in Collection using Zend RAND()

Magento-Set category Is Anchor =”Yes”

Magento-Set category Is Anchor =”Yes”

First identify the attribute id of the is_anchor attribute: SELECT * FROM eav_attribute where attribute_code = ‘is_anchor’; Get the attribute id (for me is 43). Now run the following query UPDATE catalog_category_entity_int set value = 1 where attribute_id = 43; replace 43 with your own attribute id. After this, just rebuild these indexes: category flat …

+ Read More