coding Tip's on Magento, Web Development & Other Stuff

MAGENTO: CANNOT COMPLETE THIS OPERATION FROM NON-ADMIN AREA

If you are trying an external script in Magento but are unable to complete the task and are getting the above error. Tasks such as deleting a customer will throw this error. The solution is this: Use the below code after including the file “app/Mage.php” Mage::register(‘isSecureArea’, true);    /* set secure admin area*/ Mage::getModel(‘review/review’)->load($review)->delete();  …

Read More

How to call block in phtml file in magento

It is sometime really needed to show the custom block or any static block in the PHML file. Generally on the magento websites home page or any other pages uses one column layout and it is needed to show the left of right sidebar blocks like compare products, poll, cart block which are there in…

Read More