11 Nov 2013

Magento: Setup Cron Jobs In Custom Module



Sometimes in magento we need some task to be run , i.e. these tasks/actions need to be performed periodically like:………….  

- Refreshing Catalog Price Rules
- Sending Newsletters to customers
- Generating Google Sitemaps and submitting it to Google
- Sending Customer Notification about product price change or product back in stock
- Updating currency rates
- Making backups
- Cleaning logs 



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.

3 Nov 2013

Magento : Different Form Fields In Admin Form Part One

In this article I am going to show how to add different form fields that you can use in admin forms
e.g : text,button,radio..etc.
app/code/local/MyNamespace/MyModule/Block/Adminhtml/Mymodule/Edit/Tab/Form.php

2 Nov 2013

Magento: Use Mysql Functions With Addexpressionattributetoselect

Function addExpressionAttributeToSelect as defined in Mage_Eav_Model_Entity_Collection_Abstract (/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php) allows us to use MySQL functions in Magento collection. Here is an example of using MYSQL IN() clause in magenot more product collection at once :

1 Nov 2013

Magento: How To Get List Of All Modules Programmatically?

One of the most great advantages of magento is it supports various of modules to install for a different type of work.Also it has default modules,So for knowing how many modules installed in magento and to check whether that is active or not please follow below details: