We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm working on an "Add to cart" button. I want to conditionally change that to be a non-interactive element when my product is out of stock.
While doing this I ran into what I believe is a type issue with stock status: it's missing in_stock and out_of_stock
in_stock
out_of_stock
https://github.com/swellstores/swell-js/blob/master/types/product/snake.d.ts#L164
stock_status?: 'available' | 'preorder' | 'backorder';
Here is a snippet the object as returned by Swell JS:
The text was updated successfully, but these errors were encountered:
@RyanWarner a fix for this issue is available in version 3.21.4.
3.21.4
Sorry, something went wrong.
No branches or pull requests
I'm working on an "Add to cart" button. I want to conditionally change that to be a non-interactive element when my product is out of stock.
While doing this I ran into what I believe is a type issue with stock status: it's missing
in_stock
andout_of_stock
https://github.com/swellstores/swell-js/blob/master/types/product/snake.d.ts#L164
Here is a snippet the object as returned by Swell JS:
The text was updated successfully, but these errors were encountered: