1

i want to add order line items in magento : i followed link :http://www.webcenter.co.in/how-to-add-custom-fields-for-order-line-items-in-magento

now i created module for steps in that link

for step 6:

XML: code_core_mage_sales_etc_config.xml
ADD: <training_location><to_order_item>*</to_order_item></training_location>
Between: <sales_convert_quote_item> and </sales_convert_quote_item>
Also Add:
<training_location><to_quote_item>*</to_quote_item><to_invoice_item>*</to_invoice_item><to_shipment_item>*</to_shipment_item><to_cm_item>*</to_
cm_item></training_location>
Between: <sales_convert_order_item> and </sales_convert_order_item>

i do not want to change in code , how can i do above steps via module

pls help

3

Just add this code in the config.xml of your module:

<config>
    <global>
        <fieldsets>
            <sales_convert_quote_item>
                <training_location>
                    <to_order_item>*</to_order_item>
                </training_location>
            </sales_convert_quote_item>
            <sales_convert_order_item>
                <training_location>
                    <to_quote_item>*</to_quote_item>
                    <to_invoice_item>*</to_invoice_item>
                    <to_shipment_item>*</to_shipment_item>
                    <to_cm_item>*</to_cm_item>
                </training_location>
            </sales_convert_order_item>
        </fieldsets>
    </global>
</config>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.