Direct SQL Queries in Magento
In this post we are discussing about the sql queries in magento that we can execute directly in php code Database Connections In Magento By default, Magento will automatically connect to it’s database and provide two separate resources which you …
Get logged in customer details magento

Here we are discussing about how to get logged in customer details.Below code shows how we can achieve that Before using this code make sure to check whether a user is logged in or not by this code As a …
Add to cart url for magento products
Some times when customizing the themes for magento we need to get the add to cart url for magento products.Its not much complicated as its done with the help of one line of code The above codes shows the two …
Filtering data collection magento
In this post we are discussing about how filtering data collection is done on magento The most important method on a database Collection is addFieldToFilter. This adds your WHERE clauses. Consider this bit of code, run against the sample data …