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.


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 '18 at 12:12

Your Answer

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

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