Let's create new product attribute with options and assign default value from options to attribute to all products by programming.
To download any file in Magento usually we used simple flow of Magento with controller method, but we get confuse while we need to download multiple files at same time. To download multiple files at same in download request we should use ZIP method, which will include all the files which allows to download.
Some times we need to get further detail for child product of Composite/Parent product which are used in parent product. To get detail of child products we can use type-instance of parent product.
Some time developer gets stuck with how to pass variable value from PHP to JavaScript (server side to client side). We can found a solution with cookie. Because cookie is the feature which is available at both side (PHP & JavaScript / Server side & Client side).
Finally after such a long time working with magento our skilled developer also have prove his self as Magento certified developer.
Most of the Magento developer preferred to use module model object or model resource object for Magento query, but even though some time need to use core query. To use core query method use below code.
To resize image in magento use below code and pass image url as parameter in Varien_Image object.
Magento provides indexer process by browser base as well command prompt. To run indexer process from browser base go to admin side system configuration menu "System -> Configuration -> Index Management".
To get a generated SQL query in Magento we need to get collection object and using the collection we can get SQL Query by using bellow code.
Most of the Magento developer preferred to use module model object or model resource object for Magento query, but even though some time need to use core query. To use core query method use below code.
To resize image in magento use below code and pass image url as parameter in Varien_Image object.
Finally I found the solution for custom Layered navigation for custom product collection. Here are the changes what I have did to sort-out this issue