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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

adding checklist code to shopify product page

  • 19-08-2018 7:06am
    #1
    Registered Users, Registered Users 2 Posts: 829 ✭✭✭


    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