This shop is not live yet but we need to require cart notes on every order before we publish. We’re working with the Expanse theme, 5.1.0.
This is the code that stopped working suddenly:
<textarea required name="note" class="input-full cart__note hide" id="CartNote">{{ cart.note }}</textarea>
novalidate is deleted.
Nothing was changed with the code on the code editing side (I also checked a copy I had made that I use to test out edits and it also wasn’t requiring it in spite of no changes to the code after making the cart notes required). Just some changes using the theme editor, like removing some slides in some page sections.
Trying to see where the problem might be, I added a bit from the Shopify UI Element generator for a Cart Attribute section and it’s actually requiring input.
This is what that looks like:
<p class="cart-attribute__field">
Gift Note
{{ cart.attributes[“Gift Note”] }}
Other than that I’ve reverted to previous versions and redid all the steps to make cart notes required several times and it still won’t work.
Any help or direction is welcome. I can share a preview link of the store if needed but I have no active store URL with this theme at the moment.
Liz_CS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.