I have been moving from the Debut theme to Craft over the past week and a sticking point was allowing for engraving on one of my products. I did the easily in Debut following instructions I found in this community.
The method I used I tried but the content of the input field wasn’t being passed through. It also looked messy. At first I thought I was going to have to add an “if” in the main-product.liquid because I only wanted the personalization field to be visible on a couple of products. Then I found there was a custom liquid option in the product information…The code I used which worked in Debut
Personalization
didn’t pass the personalization information
I found this on GitHub https://github.com/Shopify/dawn/pull/509
I made my mods… and put it in the custom liquid of the product information and it worked… information was passed through to the item in the cart etc. Here’s the code. I have also done a checkbox. I use separate custom liquid label for each custom function I need. Here’s the code for text entry.
Personalization
<input class=“field__input”
type=“text”
id=“personalization”
name=“properties[personalization]”
form=“product-form-{{ section.id }}”
Enter Text-less than 20 characters looks best