cancel
Showing results for 
Search instead for 
Did you mean: 

create custom form in create order page

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

create custom form in create order page

I want to create custom form in create order page.I am new to magento. Please help me. Custom form I have created customform.phtml and created block in sales.xml file.Now i am able to see my form.I want to store form data along with othere sections.

1 REPLY 1

Re: create custom form in create order page

Hi Nagendra,

Add this to the global scope in config.xml. Then simply set the attribute in the quote - it gets automagically transferred to the order in the quote to order conversion process.

<global>
...
    <fieldsets>
        <sales_convert_quote>
            <your_special_attribute>
                <to_order>*</to_order>
            </your_special_attribute>
        </sales_convert_quote>
    </fieldsets>
...
</global>

You can retrieve/set the attribute at any time via the magic getter/setter e.g.

$quote->getYourSpecialAttribute()
$order->getYourSpecialAttribute()

$quote->setYourSpecialAttribute()