11 Jan 2014

Magento: How To Subscribe Customer Email Id To Newsletter Subscription List Automatically

Sometimes we need to auto subscribe the customer email address without knowing to customer if he visit to our site or click on any events in the site .So in magento that functionality is also available but that generally goes through customer permission .but here you can set by below code to newsletter subscription list .

10 Jan 2014

Magento :Custom Form With Default Validation

/* Magento :Custom Form With Default Validation */
When I was new in magento.I had found in registration form of customer there are some default validation . I was really getting wondered that where that is ? Now I don’t like you to be wondered .That means there are some default classes available in magento which are present in validation.js file.So please the following details then you will be understood.So I have taken the below html as an example html.

1 Jan 2014

How To Validate Upload File Using Javascript

Here is my file type field and I have placed in my custom form .So I want to validate that file when user will browse any file means select any file. That event will occurred with onchange event. So I called a java script function check_photo() on onchange events.

14 Nov 2013

Magento : Auto Newsletter Subscription For Both Guest And Register User



Hi friends I have a post which only subscribe the email of customer as a guest user automatically .But now acording to my your update I am writing this article which will subscribe the email id to newsletter subscription section by checking whther that eamil already registered or not. If that email id is resistered the subscription will be saved as like below



12 Nov 2013

Magento : List Of Prototype Javascript Validation Classes With Error Message



As U know there are some default classes in magento form field for validation.Like required-entry , validate-email ..etc.So I am here showing  to you all the default classes present in Magento (ver. 1.7.0.2) for  form validation .


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 :