问题
I wanted to integrate AEM (6.3) with Magento (2.1.10) to show products on AEM page, I have searched a lot but not getting any proper documentation. Although I followed below link :
https://helpx.adobe.com/experience-manager/6-3/sites/deploying/using/magento.html
Through this link I got connector, and I installed that connector for AEM, But I am not able to install the connector on Magento as I am new to Magento. I'd like to add connector in Magento or integrate AEM with Magento.
回答1:
To install the AEM extension in Magento you have to place the content of the extension under /app/code/{name of provider}/{name of extension} (in this case, the name of the provider is InfieldDigital and the name of the extension is Sample) in your Magento instance folder.
After that, you'll be able to find your extension listed in the in the Module Manager tab under the Web Setup Wizard.
Finally, you'll have to enable said extension in Magento. After following the steps, you should be ready to go.
回答2:
I was able to fix this with changing jcr:primaryType="nt:unstructured"
to jcr:primaryType="sling:Orderedfolder"
Fixes:
- Replace
jcr:primaryType="nt:unstructured"
withjcr:primaryType="sling:Orderedfolder"
under jcr:root(line 3) for both the below files:- .content.xml file under
/magento2-aem-connector-master 2/aem-connector/ui.apps/src/main/content/jcr_root/apps/commerce/gui/content/catalogs/importblueprintswizard/importers/magento/
- .content.xml file under
/magento2-aem-connector-master 2/aem-connector/ui.apps/src/main/content/jcr_root/apps/commerce/gui/content/products/importproductswizard/importers/magento/
- .content.xml file under
- Rebuild and install the package 'mvn clean install -PautoInstallPackage'
Check the repository.. nodes should have installed correctly:
回答3:
Download and install this Package in package manager: updated package for AEM Magento Integration.
After that follow below steps to import catalog:
- Goto AEM navigation screen, click on "commerce" > click on "Catalogs".
- Create folder magento, goto magento folder.
- click on create, then "Import Blueprints".
- Select Magento from Importer.
- Enter server URL(not admin URL), admin username, password, write and name for catalog and write "we-retail" in theme.
- Click on import.
- Catalog will be imported.
To import products follow below steps:
- Goto AEM navigation screen, click on "commerce" > click on "Products".
- Create folder magento, goto magento folder.
- click on create, then "Import Products".
- Select Magento from Importer.
- Enter server URL(not admin URL), admin username, and password.
- Click on import.
- Catalog will be imported.
回答4:
You can download the AEM connector from: https://helpx.adobe.com/it/experience-manager/6-4/sites/deploying/using/magento.html
Inside the magento2-aem-connector-master.zip
, there are two folders
aem-connector
magento2
In AEM side, follow the steps:
extract
aem-connector
and go to the location:magento2-aem-connector-master\aem-connector\ui.apps\src\main\content\jcr_root\apps\commerce\gui\content\catalogs\importblueprintswizard\importers\magento
here, one content file available open and change the line "3":
- from:
jcrSmiley TonguerimaryType="nt:unstructured"
- to:
jcrSmiley TonguerimaryType="slingSmiley Surprisedrderedfolder"
and
- from:
extract
magento2
, and go to the location:magento2-aem-connector-master\aem-connector\ui.apps\src\main\content\jcr_root\apps\commerce\gui\content\products\importproductswizard\importers\magento
open it and change:
- from:
jcrSmiley TonguerimaryType="nt:unstructured"
- to:
jcrSmiley TonguerimaryType="slingSmiley Surprisedrderedfolder"
- from:
Save both product and catalog file.
Upload to the aem connector to eclipse and build the package using maven:
mvn clean install -P installPackage
check the package available in AEM package manager
http://localhost:4502/crx/packmgr/index.jsp
also:
- http://localhost:4502/system/console/bundles magento bundle in active state.
under http://localhost:4502/system/console/configMgr
configure the Magento identity provider, synchandler, external login module:
magento2-aem-connector-master\aem-connector\readme --follow file
来源:https://stackoverflow.com/questions/49450335/how-to-integrate-aem-6-3-with-magento-2-1-10