1

I'm trying to add a custom attribute to order entity.

I managed to add a column to sales_order, but I cannot save any value while placing the order.

I tracked down the problem in: Magento\Framework\Api\DataObjectHelper::_setDataValues where my custom column is excluded beacause it is not in the OrderInterface.

Is there any way to add it?

How do custom attributes work in Magento 2?

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.