I added a new column into sales_order_item i created programaticly order create and i would like to use this column in the order as attribute.

This code add items to quote. Quote use sales_order_item table.

    //add items in quote
    foreach($orderData['items'] as $item){
        $quote->addProduct($product, intval($item['qty'])); 


How can i set this new column ? i tried $qoute->setData("newcolumn,"example"); but its not working. Can u help me?

Your Answer

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

Browse other questions tagged or ask your own question.