I am trying to import a configurable products in magento 2 with custom attributes using a php script. How far I got the php script to create simple product without custom attributes as a newbie i don't know too much about magento 2. If you could help. I shall be very thankful to you.

1 Answer 1


Here is a sample script to create configurable products. You can modify to suit your needs.


  • Does it add Additional attributes vaues also?
    – Techno
    Dec 26, 2018 at 12:12

Your Answer

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

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