Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

adding checklist code to shopify product page

Options
  • 19-08-2018 8:06am
    #1
    Registered Users Posts: 826 ✭✭✭


    I am setting up a shopify account on a very tight budget.
    If someone could help me with the coding I would be very grateful as i have no coding experience whatsoever!


    I am looking to add checklists to my 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.


Advertisement