Showing posts with label product. Show all posts
Showing posts with label product. Show all posts

23 Jan 2014

Magento: event observer with save before and save after

Here I am going show how to create a simple product attribute programatically.I have created a simple script which is creating the product attribute when I do install my module or upgrade my module.So please look at the below code which I have created.

19 Jan 2014

Magento: Creating custom attribute using sql setup in custom module

/* Magento: Creating custom attribute using sql setup in custom module */
Here I am going show how to create a simple product attribute programatically.I have created a simple script which is creating the product attribute when I do install my module or upgrade my module.So please look at the below code which I have created.

9 Nov 2013

Magento : Get Available Attribute Set Id's And Names From External Script

According to the requirements of your's I have built the external script which will give all the attribute sets which are available under admin => manage attribute sets section . So please check the below coding.

I have placed this script in dir \magento\getAttributeSet.php means in root directory of magento installation folder.

8 Nov 2013

Magento : Set Meta Title Automatically Save After Product

Here I would just like to save the meta tilte field automatically with similar to produuct name If I save click on the Save or Save and continue edit button in magento admin.for This I will create a Observer through which I can Update the meta_title attribute and save in data base so that If I create a product then meta title filed will be filled up automatically by help of product name .For that I will be using an magento events catalog_product_save_after.The event which called after save of catalog product So please check the below code for reference :

7 Nov 2013

Magento: Speedy Attribute Updates

Generally for updating our attribute value in admin we do like :


Magento : Get Attribute Set Name And Category Name By Product Id

Please follow the below code How to get attribute set name and Product's category name :



6 Nov 2013

Magento: Using Or And And Query Condition To Collection

Please check the below details how we can use AND and OR query condition in magento collection.
Product collection :



5 Nov 2013

Magento: Get Product By Sku

Suppose I have a product object called $product and I want get all the information of that product with reference to SKU .So for that I need to do like below coding.