- Copy the contents of this module to
bundles/Greenrivers/Bundle/MagentoIntegrationBundle
- Run
php bin/console pimcore:bundle:install GreenriversMagentoIntegrationBundle
Settings->Greenrivers->Magento Integration
General
Magento Url - Magento base url (ending with slash)
Magento Token - Magento integration token (Bearer auth)
Magento
Send Product to Magento after save - send product to Magento after saving DataObject in Pimcore
Send Category to Magento after save - send category to Magento after saving DataObject in Pimcore
Create product
- Open folder: Data Objects->Greenrivers->MagentoIntegration->Products
- Add Object->Greenrivers->MagentoIntegrationProduct
- Save & Publish product.
- Pimcore sends product to Magento.
Create category
- Open folder: Data Objects->Greenrivers->MagentoIntegration->Categories
- Add Object->Greenrivers->MagentoIntegrationCategory
- Save & Publish category.
- Pimcore sends category to Magento.
https://app.pimcore.test/pimcore-graphql-webservices/greenrivers
Authorization: apikey (GraphQL DataHub apikey)
Get products
{
getMagentoIntegrationProductListing {
edges {
node {
id
status
attributeSetId
name
sku
price
}
}
}
}
Get categories
{
getMagentoIntegrationCategoryListing {
edges {
node {
id
isActive
includeInMenu
name
parentCategoryId
}
}
}
}
Errors are logged into var/log/greenrivers/magento_integration.log folder.
Run tests:
(due to problem with null container in 2nd test in SettingsControllerTest, comment one test method before test)
vendor/bin/simple-phpunit bundles/Greenrivers/Bundle/MagentoIntegrationBundle/tests
https://pimcore.com/docs/platform/Datahub/GraphQL/#external-access