Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

How to setup Venia store in AEM ?

Avatar

Level 9

For one of my poc, I am planning to setup commerce cockpit and CIF components and I want to use Venia commerce store to setup(https://venia.magento.com/). I have downloaded and installed the package from https://github.com/adobe/aem-cif-guides-venia. I am trying to setup cloud config

 

Here is my com.adobe.cq.commerce.graphql.client.impl.GraphqlClientImpl config

GraphQL Service Identifier - https://venia.magento.com

Mario248_2-1727243174133.png

 

Commerce Cloud Conf

Mario248_1-1727243092934.png

I guess I should update "Catalog Root Category Identifier" . Does anyone know what should be the value for this field ?

8 Replies

Avatar

Community Advisor

Hi @Mario248 ,

Mg== is encode value of 2 https://base64.guru/decode/Mg==

This value represent the root category id in Magento store.

You can try with this default value itself without changing.

You may refer below for details

MukeshYadav__0-1727253774450.png

 

https://www.mgt-commerce.com/tutorial/magento-2-root-category/

https://experienceleague.adobe.com/en/docs/commerce-admin/catalog/categories/category-root

Thanks

Avatar

Level 9

Thanks for your response. I see use the default config but commerce cockpit is loading

http://localhost:4502/commerce.html

Mario248_0-1727262259269.png

Mario248_1-1727262285638.png

Mario248_2-1727262561130.png

 

I dont see any error in error log. It tells "The configuration venia is not available or did not return a valid schema". Looks like I have valid config but how do we check schema? Is there way to check valid schema ?

 

Avatar

Community Advisor

Hi @Mario248 ,

We can see the product is loading with default root category id 2 i.e. Mg==

Please change the endpoint(graphql service URL) to https://venia.magento.com/graphql

that is append /graphql

MukeshYadav__1-1727429229377.png

"data": {
"storeConfig": {
"store_code": "default",
"root_category_uid": "Mg==",
"__typename": "StoreConfig"
}
}
}

Thanks

 

 

Avatar

Level 6

Hi @Mario248 


in your configuration com.adobe.cq.commerce.graphql.client.impl.GraphqlClientImpl config

the default http method should be POST

Avatar

Level 9

I changed to POST but still commerce cockpit is not loading. 

Avatar

Level 6

As @MukeshYadav_ you need to check the value represent the root category id in Magento store it can be "Mg==" or "Mw==" try with these two values and also in your configuration remove the default http headers and also check the advanced tab configuration GraphQL Proxy Path * and also check Enable Catalog UID Support to true 

Avatar

Level 9

I tried with both "Mg==" or "Mw==" but still having same issue

 

Mario248_0-1727360850991.png

Mario248_1-1727360857815.png

Mario248_2-1727360864571.png