Adding a checkbox to the cart

Adding a checkbox to the cart

Parts2
Tourist
19 0 2

I want to add a checkbox on the cart page for customers to tell us they are tax exempt. if they check the box I want them to be able to upload their form so that we have the proof and can remove the taxes. I created a checkbox but it renders all the way to the left of the screen. I want it to display under the estimated total price. here's the code I put into main-cart-items.liquid page [<p class="cart-attribute__field">
<input type="hidden" name="attributes[Tax-Exempt? (Send form to parts2@battelini.com)]" value="No">
<input required class="required" type="checkbox" name="attributes[Tax-Exempt? (Send form to parts2@battelini.com)]" value="Yes"{% if cart.attributes["Tax-Exempt? (Send form to parts2@battelini.com)"] == "Yes" %} checked{% endif %}>
<label>Tax-Exempt? (Send form to parts2@battelini.com)</label>
</p>] 

 

Is there a way to do this?

tax exempt.png

Replies 0 (0)