Tag: category

Magento-Add Datepicker in admin category tab

Magento-Add Datepicker in admin category tab

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>

Load category by id

Load category by id

Load category by id

Magento-Load product collection with all attributes by given category id

Magento-Load product collection with all attributes by given category id

I find that if we simply load category by id ,and try to get product collection ,result array does not contains all attributes . For this we can use “addAttributeToSelect(‘*’);” which return collection with all attributes .:)

Magento-Load product and category by name,sku and id

Magento-Load product and category by name,sku and id