Jump to content

error "UNABLE TO ADD ITEM Please select the Time option"

Recommended Posts

Added 2 new products to a visible store. Made the products visible. Everything is live. Product has a date and time variant. Customer cannot purchase ticket as when clicking "add to card" the error message: UNABLE TO ADD ITEM Please select the Time option" comes up even though time option has been selected. PLEASE HELP 

 

Edit: I removed this code from the header in the code injection and it fixed the problem. Not sure what the code is for though:

<meta name="facebook-domain-verification" content="9yo1x640q1h4kvn1g2rezsndnpvc0x" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
  $(window).on('load', function() {
    $("select").each(function() {
      var variabletext = $(this).attr("aria-label");
      variabletext = variabletext.replace("Select ", "");
      $(this).attr("aria-label",variabletext);
      $(this).find("option:first-child").val(variabletext);
      $(this).parent().attr("data-text",variabletext);
    })
  });
</script>

 

I added that a while ago and I'm not sure what it does. 

Edited by gdmartino
Link to comment
  • gdmartino changed the title to error "UNABLE TO ADD ITEM Please select the Time option"
  • Replies 1
  • Views 233
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.