I created a custom attribute

                'type' => 'int',
                'label' => 'Relation to Child',
                'input' => 'select',
                'global' => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_GLOBAL,
                'source' => 'Vendor\Module\Model\Options',
                'required' => true,
                'visible' => true,
                'user_defined' => true,
                'sort_order' => 990,
                'position' => 990,
                'system' => 0,

and works good , the table where take the data is like this

id - value
1    stuf
2    stuff2

but when i try import data in the csv put the integer (id in table) but the import of Magento send me a error , and when I put stuff2 for example it works but I want to put the id not the value,
How can i do that?

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.