1

I am new to Magento. I am trying to do things programmatically.

Is there another way to add simple product programmatically than Programmatically create a simple product in magento 2 this.

I don't want to add a file in the root folder

twinkle_gupta
  • 149
  • 10
Bhakti Thakkar
  • 1,286
  • 15
  • 35

1 Answers1

0

You can add products using

  1. REST API, You can check this thread if you are okay with using APIs
  2. You can use CSV files to upload products to Magento

Using REST API can be the alternative that you might be looking for rather than creating them using a script

Vishwas Bhatnagar
  • 4,679
  • 3
  • 38
  • 60