Nested CSS

We sometimes need to give the same class different visual. Also sometimes a certain element can have different style depending on its placement. These can be achieved by using nested CSS. Lets clear it with a few example – .abc{ float:left; } .xyz .abc{ float:none;} In the above example class abc will have float:left. But… Continue reading Nested CSS

Zen Cart Blank Page Error Before Or After Installation

The problem – 1. After uploading the files and pointing the browser to the Zen Cart folder blank page is shown. 2. After installation is complete by going to the zc_install folder manually, the store front end is blank 3. Following error is shown – Warning: include(includes/configure.php) [function.include]: failed to open stream: No such file… Continue reading Zen Cart Blank Page Error Before Or After Installation

Magento – Fetch All The Products Under A Certain Category

If you want to fetch all the products under a certain category in Magento, use the below code – $catObj = Mage::getModel(‘catalog/category’)->load($catId);$prodObj = $catObj->getProductCollection()->getData(); Here $catId is the id of the category whose product you want to fetch. And $prodObj will return the array of products, each of whose values will be an array like… Continue reading Magento – Fetch All The Products Under A Certain Category

Magento – How To Get All the Products

To fetch all the products in Magento you can use the below code – $prodobj = Mage::getResourceModel(‘catalog/product_collection’)->getData(); $prodobj is an array which will contain all the products, each as an array. The values returned for the products are – Array( [entity_id] => 1 [entity_type_id] => 4 [attribute_set_id] => 4 [type_id] => simple [sku] => product-a… Continue reading Magento – How To Get All the Products

Magento Problem In Creating New Product

In the last few Magento releases (I have personally faced the issue in versions 1.4.1.1 and 1.4.2.0) when trying to create a new product in the back end Magento returns an error and products are not created. The error message is Fatal error: Call to a member function deletePriceData() on a non-object in \app\code\core\Mage\Catalog\Model\Product\Attribute\Backend\Tierprice.php on… Continue reading Magento Problem In Creating New Product