Magento: Popup search box on right sidebar

1-Copy the form.mini.phtml from (app/design/frontend/your_Namespace/your_theme/template/catalogsearch/form.mini.phtml) make some changes and create a new file form.mini_popup.phtml inside the same directory as follow: 2-write down following code in catalogsearch.xml app/design/frontend/nextlevel/default/layout/catalogsearch.xml 3-call it on header.phtml as follow An Example of It Looks:

Magento: Difference between Mage::getSingleton() and Mage::getModel()

Mage::getSingleton() Mage::getSingleton() will first check the same class instance is exits or not in memory. If the instance is created then it will return the same object from memory. So Mage::getSingleton() faster then Mage::getModel(). $product1 and $product2 both will share same memory of OS and return only one instance each time. Mage::getgetModel() Mage::getModel() will create Read more…