Magento: Set product attribute values to take values from the default store

Have you ever ticked a ‘Use Default Value’ checkbox for Price (in store view level) and noticed the changes in the database? If you tick the ‘Use Default Value’ checkbox for any product attribute (say Price) in store view level and save it. This will delete the related row in the database for that attribute, …

Read moreMagento: Set product attribute values to take values from the default store

How to fix the issue: Product images missing in backend but not in the frontend

Introduction Recently I have to fix a strange issue for one of my clients. The issue was that product images were missing from ‘Images’ tab of product edit form (as depicted below), though they were displaying fine in the frontend. After going through the table relationship for catalog product images (as shown below), it was …

Read moreHow to fix the issue: Product images missing in backend but not in the frontend

Playing with Attribute Set in Magento

Introduction An attribute set is a collection of attributes which can be created/edited from Catalog -> Manage Attribute Sets in the backend. Some useful snippets regarding Attribute Set. 1> Getting Attribute Set Details $attributeSetModel = Mage::getModel(‘eav/entity_attribute_set’); $attributeSetId = 9; // or $_product->getAttributeSetId(); if you are using product model $attributeSetModel->load($attributeSetId); print_r($attributeSetModel->getData()); 2> Getting Attribute Set Id …

Read morePlaying with Attribute Set in Magento

Magento utility function: How to easily create a select box for drop-down attributes?

From now onward I will be sharing custom utility functions on a regular basis which will make your programming life easier to some extent at least in case of Magento 🙂 Here I am going to share a utility function which will help you to create a select box for drop-down attributes(manufacturer, color, size, etc.) …

Read moreMagento utility function: How to easily create a select box for drop-down attributes?

Updating product prices in Magento in an easier & faster way

Introduction Product prices can be updated via default import profile though but this is very slow and requires lots of CSV fields(besides sku & price) for updating. Today I am going to talk about updating product prices just by using CSV with two fields: sku & price(new) which is very fast enough even for thousands …

Read moreUpdating product prices in Magento in an easier & faster way