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?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.