Darren R
Darren R
AAlokai
Created by Darren R on 11/20/2024 in #🙋|general-help
Issues with Authentication
According to the docs here: https://docs.alokai.com/integrations/magento/basics/authenthication, if we are storing the generated token in a 'vsf-customer' cookie, our Magento API calls should be authorised. This doesn't appear to work though, all the responses from Magento are errors saying we need to be authorised. The only way we can get this to work is if we pass the token in a customHeader, like below:
const { data, errors } = await useSdk().magento.customerCart(customQuery, {
Authorization: `Bearer ${customerToken}`,
});
const { data, errors } = await useSdk().magento.customerCart(customQuery, {
Authorization: `Bearer ${customerToken}`,
});
We would prefer not to add this customHeader to all API calls. Any ideas on why storing the token in the vsf-customer cookie doesn't work, as the docs indicate should?
1 replies
AAlokai
Created by Darren R on 9/26/2024 in #🙋|general-help
generateCustomerToken API always fails recaptcha
Hi, I'm using the Magento SDK and trying to use this: https://docs.alokai.com/integrations/magento/api/magento-api/generateCustomerToken I always get the below response:
Error during reCaptcha verification. Please try again.
Error during reCaptcha verification. Please try again.
I can confirm I do not have any Captcha or ReCaptcha settings enabled. When I query the Magento GraphQL endpoint directly using Postman with the below query it works
mutation {
generateCustomerToken(
password: "b0bl0bl@w"
) {
token
}
}
mutation {
generateCustomerToken(
password: "b0bl0bl@w"
) {
token
}
}
Can anyone help?
1 replies
AAlokai
Created by Darren R on 7/27/2024 in #🙋|general-help
Where did the Nuxt 3 boilerplate go?
The Github repo for this is no longer here: https://github.com/vuestorefront/storefront-nuxt3-boilerplate Has this been moved?
16 replies
AAlokai
Created by Darren R on 2/7/2024 in #🙋|general-help
Canonical Links have forward slash encoded which breaks the page
Hi. The Canonical Links that get added to the head have the forward slashes encoded to %2F You can see this on the production demo (https://demo-magento.vuestorefront.io/default/women/tops-women/hoodies-and-sweatshirts-women.html): <link data-n-head="ssr" data-hid="i18n-can" rel="canonical" href="/default/women%2Ftops-women%2Fhoodies-and-sweatshirts-women.html"> If you try and use the encoded URL (https://demo-magento.vuestorefront.io/default/women%2Ftops-women%2Fhoodies-and-sweatshirts-women.html) you will see the page doesn't load correctly, the Title does not load. Also, there is a concern that Google will index this as a separate page. Is there a way we can update this to use /?
4 replies
AAlokai
Created by Darren R on 1/31/2024 in #🙋|general-help
GET error Error when product goes out of stock
We have set up our Magento config so that out-of-stock products are not visible on the website. If we go to a URL of a product that has become out of stock instead of getting a 404 error we get "Cannot GET /product-url-here'. The console log shows GET https://site/product-url 404 (Not Found) How can we display the 404 page here? Any help appreciated.
3 replies
AAlokai
Created by Darren R on 1/24/2024 in #🙋|general-help
GraphQL queries are using POST, should be GET
We have noticed that all our GraphQL queries are using POST, and not GET. We have the below default setting in our middleware.config.
customApolloHttpLinkOptions: {
useGETForQueries: true,
},
customApolloHttpLinkOptions: {
useGETForQueries: true,
},
We need the queries to use GET so that caching works. How do we resolve this? Version:
["@vue-storefront/magento-api": "2.4.1", "@vue-storefront/middleware": "2.8.0",]
["@vue-storefront/magento-api": "2.4.1", "@vue-storefront/middleware": "2.8.0",]
4 replies
AAlokai
Created by Darren R on 9/21/2023 in #🙋|general-help
generateCustomerToken api has customQuery param missing in the latest version
We have upgraded a project to the latest version of the magento-api and it has broken some of our functionality. On investigation, it appears that the CustomQuery parameter has been removed from the generateCustomerToken api. https://github.com/vuestorefront/magento2/blob/main/packages/api-client/src/api/generateCustomerToken/index.ts Is there a reason this has been removed or was it an error (perhaps made when customHeaders was added)?
28 replies
AAlokai
Created by Darren R on 9/14/2023 in #🙋|general-help
Using Node 18 (16 now EOL)
Hi I'm using the latest Magento integration (https://docs.vuestorefront.io/magento/installation-setup/installation.html) which is package version 1.3.0 (using @vue-storefront/magento-api 2.1.1). The Node engine is still set to 16 though, and if I change it to 18 I get the following error:
error @vue-storefront/[email protected]: The engine "node" is incompatible with this module. Expected version ">=14 <=16". Got "18.17.1"
error @vue-storefront/[email protected]: The engine "node" is incompatible with this module. Expected version ">=14 <=16". Got "18.17.1"
I need to switch over to Node 18 ASAP due to our security commitments to clients. Can you help?
33 replies
AAlokai
Created by Darren R on 7/24/2023 in #🙋|general-help
Vue Storefront 2 upgrade path
Hi. We have been working with Vue Storefront 2 for the past 18 months to develop sites with Magento 2. Now you have released the Magento platform agnostic SDK does this mean you are no longer supporting/updating the Vue Storefront Magento integration? Vue 2/Nuxt 2 are End Of Life this December. We are trying to assess how we move forward with Vue Storefront. Is our only option essentially rebuilding all our projects using the new Magento SDK and Vue 3/Nuxt 3 ourselves? I'm aware that there is a Vue Storefront getting created using the new Magento SDK and Nuxt 3/Vue 3, is there any roadmap for this? From what I can see, there isn't really a feasible option to update Vue Storefront 2 to use Nuxt 3/Vue 3. I would like to hear other people's thoughts/ideas on this.
8 replies