radhu
AAlokai
•Created by radhu on 5/30/2024 in #🙋|general-help
VSF - Magento2 : Event observer for the place order
Any update on this?
2 replies
AAlokai
•Created by radhu on 3/18/2024 in #🙋|general-help
Magento 2 VSF: Customers are automatically logged out after a period of time.
@Darren R I added a console.log in the
onMounted
function of components/AppHeader.vue
to check the value of isAuthenticated
. However, it returns true
even when vsf-customer
is removed from the cookie.
After adding the following code snippet, I believe the issue has been resolved. Could you please review and confirm if my approach is correct?
const customerStore = useCustomerStore();
if (!app.$vsf.$magento.config.state.getCustomerToken()) {
customerStore.setIsLoggedIn(false);
}
8 replies
AAlokai
•Created by radhu on 3/18/2024 in #🙋|general-help
Magento 2 VSF: Customers are automatically logged out after a period of time.
@Darren R Thank you for your previous assistance. I have updated the token expiration time, but I am encountering another issue. Despite the expiration of the token and removal of the vsf-customer, the "isAuthenticated" value remains true. As a result, the top menu continues to display "Account" instead of "Login". Do you have any idea why this is happening? And if yes, could you please guide me on how to resolve this?
8 replies
AAlokai
•Created by radhu on 3/18/2024 in #🙋|general-help
Magento 2 VSF: Customers are automatically logged out after a period of time.
Any help here?
8 replies
AAlokai
•Created by radhu on 3/18/2024 in #🙋|general-help
Magento 2 VSF: Customers are automatically logged out after a period of time.
Hey, do you mind lending me a hand?
8 replies