Import and exports data from and in magento
- Create a spreadsheet in Google Drive with to sheet(
Import
andExport
) and share it externally - Visit https://console.developers.google.com
- Create a new project
- Tap on
Enable APIs And Services
- Search for
Google Sheets API
and enable it - Go to
Apis and services
and create aService Accounts
- Add a
Key
and download the json file with the credentials - Install the module by composer by doing:
a. Add this to the
repositories
:{ "type": "vcs", "url": "https://github.com/atty31/googleapi-import-export.git" }
b.composer require atma/module-products:dev-master
- Execute:
bin/magento setup:upgrade && bin/magento setup:di:compile && bin/magento c:c && bin/magento c:f
- Go to Store->Configurations->Atma->General Configuration
- Add the json file content (see step 7) in the
Google Api Details
field - Add the spreadsheet it (You can get it from the sharable url) to the
SpreadSheet Id
field - Add the sheet name for export to the
Export sheet name
field (see step 1) - Add the sheet name for import to the
Import sheet name
field (see step 1) - Make sure, you respect this header: sku, product_type,name,description,status,visibility,price,is_in_stock,qty. Otherwise it will not work!
- Enjoy!