#[1]gnikyt feed [2]gnikyt Code ramblings. Gathering user input with Shopify /* Aug 05, 2013 — 4.8KB */ Shopify includes everything you need to setup an online store, including free web-based store building software, unlimited ecommerce website hosting, and more. It is a great tool for both users and developers. It offers a great API which has libraries for many languages (PHP, Python, Ruby, …) and a great back-end for customization of a store; templates, snippets, assets and more. A few times now, I’ve had to develop private Shopify Apps where the client would request the ability to gather custom user-inputted data from a product page, which they could see on their order form to full-fill. As recently, I developed a Shopify modification which needed to do just this, allowing the client to gather dimension data (width, length and height) from the customer. Shopify currently has no option for letting users add custom fields to the product page besides [3]variants which does not offer text input and is really not suited for this type of application. The solution - it’s simple, Shopify has product properties which you can simply modify the the product’s liquid template and add in your custom product fields; it will automatically show up on the order form when submitted in your Shopify back-end. Let’s take this example; like I said above, I recently did this for a client where he could capture custom dimensions from a customer. All below actions will affect all products in your store. If you wish to affect only certain ones you will have to modify the liquid code more or use the API. But for example’s sake let’s do it for all products. First, we open product.liquid of your current shop’s theme, from here find the add cart form which looks similar to the form code below.