Alokai

A

Alokai

Join the community to ask questions about Alokai and get answers from other members.

Join

Unable to access cookies in composables

context.$bagisto.config.app.$cookies.set('vsf-bagCust-token', loginResult.data.api_access_token); my context does not have this config object and I am unable to figure out how to set this. Please help...

VSF UI 2 with ecommerce-integration-boilerplate

Hi, I hope this isn't a silly question :). Is it possible to use the new UI with the boilerplate found here https://github.com/vuestorefront/ecommerce-integration-boilerplate ?

What version of Node?

Noob question. I was trying to create a storefront with spree and got the following error: error @vue-storefront/spree@: The engine "node" is incompatible with this module. Expected version ">=14.15 < 15.0.0". Got "18.7.0" Should I downgrade Node or am I doing something wrong? Please help....

How to add custom function to a composable

import { Context, useFacetFactory, FacetSearchResult } from '@vue-storefront/core';...

Get product details and Static block from magento 2 backend to VueStoreFront.

Hi, I have a doubt. I need to call static block from magento to vuestorefront homepage someone please help me how to do this #magento2...

Possible Memory leak in vuestorefront-api

Hi, we are using vuestorefront 1, problem we facing at the moment is that with time the api server in pm2 is keep increasing. We are not sure why the memory keeps increasing for api server, but there is no limit, we have to restart it. On staging server it does not increase, but on live server as there is alot of user traffic it goes to GBs in an hour. We had to put a cron to restart api server preiodically. How to find out what is causing this memory to pile up. and how come there is no garbage collection or something.....

How to detect if a page has an error inside the layout

Inside the default layout I need to detect if there is an error page displayed (like for example a 404 page). How should I do this? I've tried doing this by accessing app.context._errored but this value is not refreshed after a client side navigation, so if we navigate from page with an error to a working page the value of this field remains the same. Is there an out of the box solution for that or we need to develop custom solution? And if we need to develop custom solution how should one go about it? Should we create a composable that will hold the error state and somehow update it when error layout is invoked? What would be the proper lifecycle hoot to update such variable?...

Contribution via a specific issue

Hello. I opened this issue (https://github.com/vuestorefront/vue-storefront/issues/6891). I work with magento platform and I am not sure if I had to open the issue in the vsf-nuxt2-magento2(https://github.com/vuestorefront/storefront-nuxt2-magento2) or in magento2 (https://github.com/vuestorefront/magento2) repository. I know the solution, but the only problem is the above which makes me confused. Could anyone help on that? PS: It's a case which will help and other devs who want to contribute......

Unable to change the color of the SFheader

unable to change the background-color of Sf header can someone please help

VSF Redis cache - dynamic parts will be disappeared after a while

Hi everybody, we have implemented redis cache with VSF project (SSR Cache), but we faced an issue, I just wanted to know if anyone else faced the same problem. When we call the page for the first time, everything is fine for a while... but after a while the content of the cached paged will be changed. (30 mins, or minutes, I do not know the exact amount, may be it's after an event)...

Can't we use REST Apis with Vue storefront

Is it necessary to use GraphQl in vuestorefront?

Weird url parameters

Hello 🙂 My Product Id seems whack or not VSF friendly. The are formatted as rest style urls: "gid://shopify/Product/8051870433578/-name" which in vuetools which returns 404. The correct and working product ID seems to be "8051870433578/-name"...

SSR Cache - default invalidation handler

As I saw the previous channel archived, so here we can continue discussion about cache.. @7s @Tautvydas Banys https://github.com/vuestorefront/vue-storefront/issues/6884 ...