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 */
13 Jan 2014
Magento: Submit custom form with magento’s built-in ajax with validation
/* Magento: Submit custom form with magento’s built-in ajax with validation */
Suppose I have created a custom form and I want submit that form through through ajax funtionality with magento’s own validation style.As you know for validating(not leaving blank) a field in magento we simply use a class called class="required-entry".So I have used required-entry class to validating my form. Below is my custom form which I have placed inside view.phtml file for giving product information through email to customer. If customer will click the link “get product details” then this form will be appeared and then he can fill up the form and submit for getting details.
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
- 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.
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 :
Subscribe to:
Posts (Atom)