Adding checklist to shopify product page
i added a new template called custom_1 and entered the following code to product-template.liquid
{% if template contains 'custom-1' %}
<p class="line-item-property__field">
<label>Optional features</label>
<input type="checkbox" id="Feature-A" name="properties[Optional features - Feature A]"><label class="ep_inline_block" for="Feature-A">Feature A</label><br>
<input type="checkbox" id="Feature-B" name="properties[Optional features - Feature B]"><label class="ep_inline_block" for="Feature-B">Feature B</label><br>
<input type="checkbox" id="Feature-C" name="properties[Optional features - Feature C]"><label class="ep_inline_block" for="Feature-C">Feature C</label>
</p>
<style>
.ep_inline_block {display:inline-block;vertical-align:middle;margin-left:10px;}
.ep_block {display:block;margin-top:10px;margin-bottom:2px;}
</style>
{% endif %}
I have attached a screenshot of this.
I then chose a product and changed the theme template to product.custom_1 but when i go into that product the checklist is not there.
Could anyone please tell me where i have gone wrong?
Many thanks.