I work on several Shopify sites for a group of clients and one of them has asked me to add form fields to the shopping cart page to get some more information from customers. Most of the information is optional, so I don't have a problem adding them, I'm just not sure how.
In the past, I've used Customer Attribute by Secomapp, but this app costs $15/month for live sites.
Does anyone know of other solutions or workarounds for this kind of request?
you can use this code
<p class="line-item-property__field"> <label for="your-name">Leave a free note? <a class="link-pop" href="#popup1"> (View note cover)</a></label> <textarea required class="required p-note" id="your-note " placeholder="Maximum 150 characters" maxlength="150" name="properties[Your note]"></textarea> </p>
add this line of code inside the form tag
Shopify also has a guide on how to enable and modify cart notes for your cart page. Feel free to check out the guide here.
I hope this helps! If there is anything else I can help you with, please let me know.