Hi there,
I am hoping someone is able to help me.
I have recently had an issue with my live site, where some coding on the products page stopped working which has since sort of been fixed but caused other issues.
I have some code added to my theme.liquid file for mobile only when using the form to upload an image on the website. This only should come up when an image has been uploaded. This was due to a few seconds delay to add to cart and it not being clear to customers. ‘Please wait whilst your image uploads’ was added in just so that customers are aware.
Since one part of my code has been amended, this now appears as soon as you tick the tickbox and an error message comes up if you havent selected the variant pill.
My wanted outcome:
Customer MUST select a variant pill and tick the tickbox so that they can add to cart. The code for ‘Please wait whilst your image uploads’ to only appear when an image is uploaded in the form. If the customer selects the tickbox without choosing the variant they get an error message and if they try to select a variant without selecting the tickbox they get an error message. All is working apart from the wording on the error message when they have not selected the variant and the ‘Please wait whilst your image uploads’ which keep popping up regardless (mobile only)
I have attached some screenshots for reference!
Happy to share the existing code from my theme.liquid in a message if needed.
Thank you! ![]()




