I just noticed the “Add to Cart” button becomes disabled as soon as I pick a variant of one of my products, like a hat size, making it impossible to add those items to my cart. However, I can add an item if I don’t pick a variant or if there is only one variant available or if I refresh the page after selecting a variant.
global.js?v=138967679220690932761645924793:810 Uncaught TypeError: pickUpAvailability.fetchAvailability is not a function
at VariantSelects.updatePickupAvailability (global.js?v=138967679220690932761645924793:810:26)
at VariantSelects.onVariantChange (global.js?v=138967679220690932761645924793:746:10)
Issues like this can often stem from modifications made to the related product template, such as invalid html, or important javascript not being output.
Thank you for finding the issue. How would I go about fixing it? I’m really not well-versed in coding to go at it by myself. I had a hard enough time describing the issue. Haha
Please go to sections > main-product.liquid file, find ‘pickup-availability’. Please check the declaration of pickup-availability.js file, is it like the following screenshot?
This app will help you monitor whether your functionalities are operational or not. If any issue occurs and your customer is facing it then you can take immediate steps to fix these issues and offer your customer a great purchasing experience.
I was having the same issue, turns out that it happens when my variants have the “/” symbol in their names, I switched from “2 - Sky Blue / Matte” to “2 - Sky Blue Matte” and now the Add to cart button works again on my variants.
I hope this helped!