TH-109 > Meraki > Cart page & (direct add to cart) > Prevent the customer from placing an order if a variant is out of stock #70
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JIRA Ticket
Ticket: TH_109.
Prerequisites
pnpm run release
theme name + date + .zip
QA Steps
To activate this feature:
-> On store admin under: Store > theme > Product settings > Advanced > direct add to cart
-> Now theme editor: Theme settings > general settings > direct add to cart
On store admin > Products > all products > create a product or select one that doesn't have variants
Now activate
track inventory
feature on him and set a numberTo test this feature that's working good make sure that this product is visible on the home page of your store front for example (you can do that from theme editor by adding it on a product slider section)
After you clicking on the product you should see that the cart drawer is open and your product is in your cart (if the stock is out you will see a warning popup notification)
Now check the cart page and test that the popup alert shows up when the quantity is exceeded.