In our previous tutorial, we have published Code Snippets for PHP Developers. In this post, we have published useful code snippets for Magento Developers. When developing with Magento, I have maintain a library of most used code snippets. These code snippets are very useful when developing theme or custom module since they save your precious […]
magento
Display Related products on product details page in Magento
If you want to display related product on product details page in Magento. It’s very easy to show related product by using few easy steps. First we will have to add products to a particular product as related product.
Magento – Models, resource models, and collections
Here we will explain to work with database collection in Magento. As we know that Magento is enrich with MVC (Model – View – Controller). So we will basically starts with some main concepts of models, resource models, and collections.
Creating Custom Magento URL Rewrites
We can create modules in Magento and can create fancy URL for our module without using .htaccess rewrites. It’s very easy, Magento has very easy way for URL rewrite using config.xml.
Generate CSV file in Magento
Magento provides a functionality to directly export the content from the grids in admin section like Sales, Products etc in the form of CSV or XML. But sometimes you need to generate a CSV with the custom data. Magento has already a nice class for it, it can be found at lib/Varien/File file name Csv.php. This class […]