Connecting Magento to AEMaaCS (Local instance and sandbox) | Community
Skip to main content
Level 2
June 29, 2022

Connecting Magento to AEMaaCS (Local instance and sandbox)

  • June 29, 2022
  • 2 replies
  • 1405 views

Hi, 

 

I am doing an internal project to connect a magento sandbox to an AEMaaCS sandbox to test out the use of CIF components.

 

I am building it locally and am using the latest AEMaaCS download, and the latest CIF plugin.

 

My project is pretty basic with only core components and core CIF components enabled. It was built using the Adobe Archetype with commerce enabled.

 

While the project builds and installs properly, I get a few problems.

 

The navigation header keeps coming up with a comparison error. I ended up removing the navigation component for now, but i did add a CIF product component to a page, and in the editorial interface it allows me to search the products on the magento server and choose the one that I want to visualise, however when I do view as published it says "No Product Found"

 

I did a bit of debugging on the ProductImpl class, and can see it getting called, however the self bound MagentoGraphqlClient is null, hence it can't find the content.

 

Does anyone have an idea on what configuration is missing?

 

I have the COMMERCE_ENDPOINT environment variable in place and that at least makes the editorial interface work as expected.

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

2 replies

Shashi_Mulugu
Community Advisor
Community Advisor
July 5, 2022

@getaylormerkle can you please cross verify your configuration as per the documentation https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/content-and-commerce/storefront/getting-started.html

 

We followed this and everything is working as expected.

 

Maybe storeid/catalogid missing or somewhere.

Level 2
July 6, 2022

Hi @shashi_mulugu Yes this was the instructions I followed.

 

In the editirorial process and in the commerce pages I see the catalog and products, Even when i edit a product component on the page I can choose the product i want, it is just when i is in preview mode/view as published that it comes up with "No product found"

Adobe Employee
July 6, 2022

Share stack trace in AEM error.log.

Level 2
December 28, 2023

Any luck with this issue? I am having the same problem with my custom product component.

MagentoGraphqlClient is not getting injected in my CustomProductImpl even though I have all required OSGI configurations done. Due to this, I am getting magentoGraphqlClient object as null. I kept debug pointer in OOTB ProductImpl as well, and over there I can see the object is getting initialised. 


Strange thing, the injection in my local works fine some times and some times it doesn’t. In AEM cloud Dev ,magentoGraphqlClient is always null.