Jun 15, 2011
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
Jun 8, 2011
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
Jun 5, 2011
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
May 27, 2011
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
May 20, 2011
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
May 12, 2011
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
May 7, 2011
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
Apr 26, 2011
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
