AEM Venia with Magento Integration Category + Product Page Data is not fetching | Community
Skip to main content
Level 2
August 25, 2021

AEM Venia with Magento Integration Category + Product Page Data is not fetching

  • August 25, 2021
  • 1 reply
  • 3087 views

Basically, I have set up AEM 6.5 venia theme, I also successfully connected CIF connector and fetched data from Magento using CIF Connector, but when I tried to the category as well as product page the data of product is not fetching at all, In commerce option, I can see all data fetching from Magento side. 

Attaching the screenshots for reference.

 

 

Any help will be appreciated !!

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

1 reply

mhaack
Adobe Employee
Adobe Employee
August 27, 2021

The category page screenshot form the page editor shows the placeholder data while edition. Try switch to preview and navigate to the category. Or use "View with Category" from the actions menu of the editor.

Level 2
August 30, 2021

Hi @mhaack 

Thanks for the support.

 

I tired by the mentioned suggested, which I have attached screenshot below, no luck till now. In another scenario, I found that in search the data and layered navigation is working fine, but when coming to the category and list page the issue coming up with no data. I found out there is a error on console hereby attach the scrren shot for reference.

 

Could not fetch storefront instance context Error: Cannot query field "dataServicesStorefrontInstanceContext" on type "Query"

 

 

March 21, 2022

Just "preview" will not work from the editor, since the page requieres the category as context. Without the category information in the URL it will always display the placeholder images.

In the action menu of the page editor there is a "Preview with Category" menu item, try this.


Yes there is that aspect as well you need to have a category in the URL of course, but for the specific case of working with Magento Open Source 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. When you revert to the sling models V1 of theses two products everything works with the open source version.

 

I also encountered the JavaScript error in the first post, and again this is only for the open source version of Magento. To address this one needs to install the Magento module magento/module-data-services-graphql