A
AlokaiQuinten

Magento 2 SDK (OS) and UDM

Greetings! The following is not fully clear for me how it is integrated. So Alokai provides an SDK which confirms to the Unified Data Layer (model and methods). This makes it possible to easily switch from e-commerce back-end because each integration and SDK needs to follow these conventions. On the SDK documentation (https://docs.alokai.com/sdk/getting-started) the integrations of https://docs.alokai.com/integrations are mentioned, which includes Magento 2. But looking at the Magento 2 SDK documentation (https://docs.alokai.com/integrations/magento/api/magento-sdk/) it does not conform to the conventions set by the Unified Data Layer. As an example it looks like to fetch a product with the Magento SDK it uses the method .products(...) while the UDM is getProducts(...). The thing that confuses me is that the following page (https://docs.alokai.com/storefront/unified-data-layer/unified-methods/products) shows that Magento 2 SDK does support this method. If I had to take a guess is that there is an OS SDK and enterprise SDK for Magento 2? Where the enterprise SDK follows the UDM. Will this mean that the OS SDK will never adhere to the conventions of the UDM?
Q
Quinten31d ago
So going through previously posts i've come across this thread https://discord.com/channels/770285988244750366/1207721072112439296. Which also talks about the Magento 2 integrations, which kind off confirms my suspicions that there are two Magento 2 SDKs/integrations? An open source version and enterprise version. I can asume that the Unified Data Layer won't be open sourced, since it is part of the enterprise package?
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
R
rohrig31d ago
Hi @Quinten 👋 , There is only one magento sdk, but an extention as well.
No description
R
rohrig31d ago
The extension has api added for various commerce backends, including magento. This Unified Data Layer is part of our enterprise offering. But the sdk is open source.
Q
Quinten31d ago
Hi @rohrig, Correct me if I'm wrong. So the (unified) SDK with the unified methods is also open source? Or only the Magento 2 SDK?
R
rohrig31d ago
unified methods is enterprise. Magento 2 SDK is open source.
Q
Quinten31d ago
Okay, clear! So the enterprise solutation provides a uniform SDK for multiple e-commerce platforms, correct?
R
rohrig31d ago
Anything here under storefront is enterprise
No description
R
rohrig31d ago
Yes, correct.
Q
Quinten31d ago
Okay, one more question. Because the Open Source Magento 2 SDK does not adhere to the UDM. I can assume there is a enterprise version of the magento 2 SDK where the correct methods can be called on? So an example the Open Source Magento 2 SDK provides the .products method to get products, while the UDM states it should be .getProducts. It also stated on the following page it should be compatible with Magento 2: https://docs.alokai.com/storefront/unified-data-layer/unified-methods/products To give context we are looking into Alokai SDK to implement the data connection to Magento 2 shop, but want in the future to change it to another e-commerce framework without much hassle. The Alokai SDK looked a perfect solution for this. But the docs (for the Open source magento 2 SDK) does not seem to reflect that. Hopefully, my concern makes sense?
Q
Quinten31d ago
So in the end my question is, how can I for Magento 2 use the SDK that uses the UDM methods? I assume that there has to be an enterprise package, since the open source (@vue-storefront/magento-sdk) does not include these methods. So i've come to the following conclusion (see below), it this correct? Open source Package: @vue-storefront/magento-sdk which does not have the methods defined in https://docs.alokai.com/storefront/unified-data-layer/unified-methods/products as an example Method: So the following has to be used to get products -> sdk.commerce.products({}) Enterprise Package: @vsf-enterprise/magento-sdk (?) which does have the methods defined in https://docs.alokai.com/storefront/unified-data-layer/unified-methods/products as an example Method: The method sdk.commerce.getProducts() can be used to call Magneto 2 products, but in the future we could switch it out with @vsf-enterprise/sapcc-sdk and get the products from SAPCC platform. Or can the @vsf-enterprise/unified-sdk package just be used for all e-commerce frameworks on the front-end, which includes Magento 2 support. It's just not clear for me with the current documentation. I feel like i'm missing something?
Alokai Docs
Products
Frontend as a Service for Composable Commerce
Q
Quinten31d ago
^ @rohrig Updated my question, hopefully you can see where i'm coming from and my confusion around it.
R
rohrig31d ago
The Storefront Unified Data Layer is what enables Magento to be used with the Storefront. These things are enterprise. If you would like to use magento the the Unified Data Layer you need to have an enterprise license. If you're looking on behalf of your company I could get you in touch with our sales team. If your trying to go the open source route, then you have the magento integration and the nuxt and next boilerplates. https://github.com/vuestorefront/storefront-next13-boilerplate https://github.com/vuestorefront/storefront-nuxt3-boilerplate But there will be some work necessary to make those work together. 🙂 I hope that clears things up.
GitHub
GitHub - vuestorefront/storefront-next13-boilerplate: Vue Storefron...
Vue Storefront Next 13 Boilerplate. Contribute to vuestorefront/storefront-next13-boilerplate development by creating an account on GitHub.
GitHub
GitHub - vuestorefront/storefront-nuxt3-boilerplate: Nuxt 3 Storefr...
Nuxt 3 Storefront Boilerplate. Contribute to vuestorefront/storefront-nuxt3-boilerplate development by creating an account on GitHub.
Q
Quinten30d ago
Yes, this does clear up some things. Thanks for the response!
D
Daniel10d ago
Hello, I have an additional question about the boilerplates. Are they going to maintained or will they only be maintained while you get your things in order with the rebranding?
Want results from more Discord servers?
Add your server
More Posts
how to update gql query??currently i m working with vue storefront that is being use magento2 as backend and as cms also hereUse external component in vuestore fronthi, guys. im trying to use a external component in vustore front like v-calendar https://vcalendar.Marketing Assets for AlokaiHey Team, is there an official asset pack that we could use for marketing purposes? Slogans, Logos what is alokai?today i got surprised to see the headline "vsf is now Alokai" what is meant by this i could not figuMagento 2 VSF: Customers are automatically logged out after a period of time.Hi, I've successfully set up a Magento2 VueStorefront instance locally. Everything functions perfectWhat CMS/framework/template is used for the blog?https://vuestorefront.io/blog I am interested in having a blog along with the shop, and this one loNextJS + MagentoTwo questions: (1) is this the appropriate repo for a NextJS project?https://github.com/vuestorefronVue Storefront vs Storefront Nuxt3 Boilerplate?A very noob question, but I’m not sure what makes them different. I got the Nuxt3 boilerplate runninIs it possible to switch commerce engine?Hi there! I'm new to VSF, and i'm looking for a solution that allow me to change commerge engine in apiState.setCartId()失败是什么原因apiState.setCartId()失败是什么原因I can't create Magento SDKI followed this documentation for Magento integration: https://docs.vuestorefront.io/integrations/maERPNext and Vue Storefront IntegrationAny ERPNext and Vue Storefront Integration available?nuxt 3 supportNow that Vue 2 is deprecated any idea when Vue Storefront will be upgraded to support nuxt 3 and VueNew endpoint doesn't show up in methodsWhen I create a new endpoint with the CLI, it's not adding it to the /pages/methods folder so it doeVue Storefront OSS deploymentHey folks!! I am following the steps in this guide: https://docs.vuestorefront.io/cookbook/oss-deploHow to configure different request url for different languagesHi, everyone. I just started learning vue-storefront magento, if magento has more than one language The button to add to cart is disabled, !canAddToCart is true,Hi everybody🖐️ The button to add to cart is disabled, !canAddToCart is true, I checked node_modulUnable to override default font familyHi everyone, I'm trying to override Storefront UI Typography default font family, I've tried many vastorefront-nuxt3-boilerplate startup issuesI have downloaded the nuxt3 boilerplate and i'm attempting to start it up from the root directory, hI got this error when i try to register an accountMy project is in Vsf1 and backend is in magento2 when i try to register an account i got an this typ