Adding a form field to the shopping cart page

JimKnzr
Visitor
1 0 0

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?

Thanks!

Replies 2 (2)

AvidBrio
Shopify Expert
295 17 29

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  

If you find our comment helpful, hit the like button and accept it as a solution.
Want us to implement custom changes in your store? Contact us
Email me directly - jim@avidbrio.com

Dirk
Shopify Staff
2209 247 502

Hey, @JimKnzr 

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.

Dirk | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog