How to add additional field to Customer Type
compared to what it is said in the documentation I'm only able to get few information from the user using useUser composable. I want to get the customergroupid the user has but when I console log user.value im only getting few details like in the screenshot. So where and how to add the types for customer.
R
rohrig•353d ago
Hi @san123 👋 , how to add that information to the response will differ depending on the backend you're using. For the frontend you can extend the query: https://docs.vuestorefront.io/v2/composition/extending-graphql-queries.html
Extending GraphQL queries | Vue Storefront 2
Vue Storefront 2 documentation
S
san123•353d ago
I am using commercetools as backend.
which function of the useUser composable we should extend to pass the custom query?
R
rohrig•353d ago
@san123 I asked my go-to expert in CT and he said this:
The useUser composable has the load method which populates the user property. You can call the load() method with the following parameter:
It is described in the useUser documentation here: https://docs.vuestorefront.io/commercetools/composables/use-user.html.
5.2KMembers
View on DiscordWant results from more Discord servers?
More PostsCookiesWhere can I find more info on cookies ?
Meaning, are the merchant cookies exposed to Storefront ? OrEditing index.js file in.nuxt projectHello I would like to add bootstrap to my porject so i added the import into the index.js file to maError deploying - connect ECONNREFUSED 127.0.0.1:80Hi - it's me again 🙂
in local development, using `yarn dev` everything works fine. Even directly Error _theme/layouts/default.vueHi i'm getting this error - does anyone know how to solve this?how to send an API content-type:multipart/form-data of this format in api-client?how to send an API content-type:
multipart/form-data of this format in api-client?Themes marketplaceAre there any places where I can buy a Vue Storefront theme?, something like themeforest for ShopifyGetting error while static deploy vsf with magento 2 in EC2 for production ,yarn build
yarn start works , but as soon as terminal is closed server stops
if i build it with taDefault locale does not workHi everybody,
when I set the defaultLocale in nuxt.config.js, it seems that it does not work, the r