Skip to content

Xbox.ts shows instock all the time #2475

Answered by Aragorn450
Jwoods2019 asked this question in Help
Discussion options

You must be logged in to vote

So it looks like the Xbox store changed their layout and the way it checks if it is in stock or not is using a selector for the Out of Stock button. But that selector doesn't work any more with the updated layout and so that's why it is showing as in stock; The Out of Stock isn't found and therefore it's assumed it's In Stock.

To fix it, you can update src/store/model/xbox.ts and change the text in quotes in the container section to the following:

'._-_-node_modules--xbox-web-partner-core-build-pages-BundleBuilder-Components-BundleBuilderHeader-__BundleBuilderHeader-module___checkoutButton'

Make sure the comma is still there after that part. So the whole file should look like this:

import {

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Jwoods2019
Comment options

@Aragorn450
Comment options

@Jwoods2019
Comment options

@Jwoods2019
Comment options

@The-Synthax
Comment options

Answer selected by Jwoods2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants