Code snippets for magento