search
top

Filters in Query in Magento

Hello All, When we are filtering data in Magento, time occurs when we want to fetch result after filters like Not equal, greater than, less than, etc. The addFieldToFilter method’s second...
read more

Product Collection in Magento

Hello All, I am writing here the script to get product collection of the store. <?php $collection = Mage::getResourceModel('catalog/product_collection'); $collection->addAttributeToFilter('status',1);...
read more

Specific Category Products Magento

Hello All, I am writing here the script to get product collection of a required category. For the below mentioned script we must have the category id for which the product collection is needed. <?php $catagory_model...
read more

Get cart products in Magento

Hello All, I am writing here a script for getting all the product’s id added into cart <?php $product_ids = Mage::getModel('checkout/cart')->getProductIds(); //get cart product...
read more

Get customer loggedin status in Magento

Hello All, I am writing here a simple but important script for checking whether any customer is logged in or not in Magento site’s frontend <?php $customer_status = Mage::getSingleton('customer/session')->isLoggedIn();...
read more

Get Products categories in Magento

Hello All, I am writing here the script to get category ids , for the given product. <?php $product_model = Mage::getModel('catalog/product'); //get product model $all_cats =...
read more

Get child categories in Magento

Hello All, I am writing here a script for getting all the child categories of the required category id <?php $category_model = Mage::getModel('catalog/category'); //get category model $_category...
read more

Custom Footer Links Magento

Hello All, When we install Magento, we can see that we have two rows in footer links (theme – default). We can edit the links in the top row from CMS block with title ‘Footer Links’. The...
read more

« Previous Entries Next Entries »

top