AEM integration with Commerce(Magento) | Community
Skip to main content
New Participant
March 1, 2024
Solved

AEM integration with Commerce(Magento)

  • March 1, 2024
  • 2 replies
  • 897 views

Hello,

 

I have integrated AEMaacs with commerce(Magento) in my local setup. I have cloned venia project to work with commerce. I have made all the configurations to connect with magento. 

 

When I create a product in magento admin the product is visible in AEM as well. But when using product detail or product listing components the products are not getting displayed. 

I see many are facing the similar issue, but no solution is approved. 

 

Any leads?

 

@arunpatidar @lukasz-m @BrianKasingli 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by TarunKumar

Hi @src_aem_dev ,

Are you using a category in the URL or  working with Magento Open Source where there is a fixed filtering attribute called staged added to the category/product GraphQL query in V2 of ProductList and Product components that causes the query to fail. Try to switch to the sling models V1 of theses two products then it will work for open source version.

 

Also check if you are encountering any JavaScript error, and again this is only for the open source version of Magento.
To fix this try to install the Magento module magento/module-data-services-graphql.


Thanks
Tarun

2 replies

pulkitvashisth
New Participant
March 1, 2024

@src_aem_dev 
Please give more info as where are you encountering the error.
Did you check error logs, or browser console for any exceptions or errors respectively.
If you found any then please do share,
Also Please share the versions of core cif components you are using for ProductInfo and ProductList in your project.

Also verify this, when you view PRODUCT info page (the PDP page) in editor in your author instance, you can view the page from inside editor as a certain product from the product list.
Check if you are able to view it from there.

TarunKumar
TarunKumarAccepted solution
New Participant
March 1, 2024

Hi @src_aem_dev ,

Are you using a category in the URL or  working with Magento Open Source where there is a fixed filtering attribute called staged added to the category/product GraphQL query in V2 of ProductList and Product components that causes the query to fail. Try to switch to the sling models V1 of theses two products then it will work for open source version.

 

Also check if you are encountering any JavaScript error, and again this is only for the open source version of Magento.
To fix this try to install the Magento module magento/module-data-services-graphql.


Thanks
Tarun