Direct SQL Queries in Magento

Posted by on Oct 22, 2013 in Magento, Php | 1 Comment

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

Posted by on Sep 26, 2013 in Magento | No comments yet
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

Posted by on Sep 20, 2013 in Magento | No comments yet

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

Posted by on Sep 20, 2013 in Magento | No comments yet

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 …

Load More