This question has been asked a few times, and each time the answer is different. I’ve tried them all, but none of the solutions seem to be a good solution for the store: https://thenapco.com/
On a few of the products, when a size is out of stock it throws the whole product off.
Eg. Small is out of stock, but when a large is added to a cart it changes to a medium automatically.
I am assuming it is due to a code conflict, but I’m unable to find the code that could be causing this.
We’ve found a temporary solution by deleting the faulty product, and reuploading, but that doesn’t fix the issue permanently, and means we lose all the analytics data every time the product is deleted.
This is one of the products an issue was found: https://www.thenapco.com/collections/nightwear/products/satin-stripe-pyjama-short-set-nude-1?variant=39513474170958
Deleting the Small variant that has stock of 0 has solved the problem, this doesn’t solve the issue in the long run.
Any assistance is appreciated.