Register within 30 days of delivery for full 1-year coverage.
How to install on your store
1Back up your theme (Online Store > Themes > Actions > Duplicate) before changing any code.
2Open Online Store > Themes > Edit code and create a new file under Sections using the file name shown above.
3Paste the complete file - markup, styles and JavaScript are already inside the single file, nothing else to install.
4Open the theme editor, add the section to a template, and replace the example values using the section settings.
5Preview the storefront and test it on a phone-sized screen before publishing.
warranty-registration.liquid
1<divclass="gpl-warreg">2<h2class="gpl-warreg__heading">{{section.settings.heading}}</h2>3<pclass="gpl-warreg__sub">Register within 30 days of delivery for the full {{section.settings.term}} coverage.</p>4{%-form'contact', class: 'gpl-warreg__form'-%}5<inputtype="hidden"name="contact[tags]"value="warranty-registration">6{%-ifform.posted_successfully? -%}7<pclass="gpl-warreg__ok">Registered - keep this confirmation.</p>8{%-endif-%}9<inputtype="text"name="contact[order]"placeholder="Order number" required>10<inputtype="text"name="contact[serial]"placeholder="Serial / product code" required>11<inputtype="email"name="contact[email]"placeholder="Email" required>12<buttontype="submit">Register warranty</button>13{%-endform-%}14</div>