Hey everyone, i’m using the Horizon template and my cart doesn’t seem to work, it says constantly that the item being added isn’t available even if the product is public and with 1 of quantity in stock, i’ve tried everything yet can’t seem to fix it, could be a problem in the code.
Most likely not theme related. Make sure your inventory is adequate or turn off inventory tracking, and adjust any other setting like market restrictions.
Go to your Shopify Admin, open the Khriò Weathered Belt Boots product page, and scroll down to the Inventory section. If the stock is at 0 but you still want customers to be able to purchase it, check the box that says Continue selling when out of stock. If this box is left unchecked, the cart will automatically block the checkout.
If you already enabled that setting and the cart is still throwing the error, your theme’s JavaScript is likely passing a blank or broken Variant ID to the cart form. Try switching your theme preview to a default theme (like Dawn) for a quick second to test the button.
If it works there, you’ll know the issue is a broken template file inside your Horizon theme code that needs to be re-mapped.
On top of the inventory available,
Ensure that you have location(s) and delivery method(s) which can actually fulfil the item.
Installing a fresh copy of the theme (like Dawn) temporarily is a method to confirm whether the theme is the culprit, or your inventory/fulfilment chain is not setup properly.
@pepino Hi,
As I am seeing there is some errors in console, which is might be related to some JS conflicts in code. Please troubleshoot by doing one by one uninstalling app you store, specifically related cart and cookies.
I’d like to add that i’m pretty sure the specific problem is a cart/add.js 422 (Unprocessable Content) so a problem with the JS, hence why it’s showing the item unavailable when added.
422 is specific enough to not automatically assume the theme is the culprit. It’s not that the request is invalid. Shopify understood it but refused it, usually due to inventory or variant ID validity. Some apps could cause the ID mismatch also.
Have you tried to use a different theme? Quickest way to validate your assumptions. Would take less than 5 minutes.