Additional Details only saving information on last item in order

Good morning!

We are getting set up to sell class materials through Shopify. I got this set up to show a dropdown to select the class this is for, as well as a text box for the student name, in case it’s different from the name on the order. The issue I am running into at the moment is that if there are multiple materials on the order, only the information from the final item on the order is saved. We are needing the information from the input on each item.

Here’s the code added to the cart template creating the requests and collecting information:

{% for tag in item.product.tags %}> {%- if tag == “Clay Class Supplies” -%}> > >

{% endif %}> {% endfor %}> > > > {% for tag in item.product.tags %}> {%- if tag == “Clay Class Supplies” -%}>

{% endif %}> {% endfor %}> >

(I’m sure there’s some cleanup to be done. I tried to get rid of what look like duplicate triggers to check for the same tag, but the editor got mad at me about something else when I did that so I just put it back.)

Thank you for any insight!

I’ve located another problem related to this that I’m not sure how to fix. On the cart page, if an item is removed, dropdown and text boxes both disappear and Check Out button becomes usable without filling out otherwise required fields.

I have novalidate removed for that table, but it seems to see everything as validated when the fields aren’t generated. If I load the cart page again, the fields will reappear.