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

fix(canadacomputers): add inStock selector, use english links #889

Merged
merged 3 commits into from Nov 23, 2020

Conversation

Sherloks
Copy link
Contributor

Description

In a new Chrome session, the canadacomputers website will use the system locale to set the store language. This will cause an issue if your System is in French. To prevent that, I added the language param in the URLs.

I also added "Online In Stock" selector, because on some product the store will let you pay online, but you can only pickup in store. In the current version it's useless to get an alert for that if you can't select your prefered store. I don't want to receive an alert for a store 2000km from my house.

Testing

To test the multilingual issue:
I guess you can try switching your Browser/System language (lol) or add &language=fr to the URLs

To test the inStock/outOfStock issue:
Find a product that has "Order Online and Pick Up In-Store".
At the moment there's 2x Ryzen 5600x at Kanata, ON, but you can't Order Online and get it shipped.

@Sherloks Sherloks requested a review from jef as a code owner November 22, 2020 23:37
Copy link
Owner

@jef jef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for fixing. Good to keep in mind for other sites that use different locales.

src/store/model/canadacomputers.ts Show resolved Hide resolved
@jef jef changed the title fix(store): added selectors for canadacomputers to fix issue for multilingual users and "Order Online and Pick Up In-Store" fix(canadacomputers): add inStock selector, use english links Nov 23, 2020
@jef jef merged commit 06214eb into jef:main Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants