Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#4277 Return website_code in Page.php for using in FE #29

Merged
merged 1 commit into from
Jul 6, 2022

Conversation

neeeeecka
Copy link
Contributor

Related issue(s):

Problem:

  • User's quoteId wasn't being updated properly when changing between websites' stores, that needed global variable window.website_code to handle token change and update correctly

In this PR:

  • I modified Page.php to return website code from storeManager

@neeeeecka neeeeecka changed the title For #4277 Added website code to then use in scandipwa window.website_code for correctly getting quoteId #4277 Added website code to use in scandipwa window.website_code to correctly get quoteId for token Jun 20, 2022
@neeeeecka neeeeecka changed the title #4277 Added website code to use in scandipwa window.website_code to correctly get quoteId for token #4277 Added function to return website_code in Page.php for using in FE Jun 20, 2022
@neeeeecka neeeeecka changed the title #4277 Added function to return website_code in Page.php for using in FE #4277 Return website_code in Page.php for using in FE Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Cart token isn't updated when switching website
3 participants