How to Add a REQUIRED Checkout Question !

Highlighted
New Member
1 0 0

I am not a master of HTML5 or any programing language. 

But, it took me 2 Days to figure out how to make a checkout question on the cart page required. 

I hope this is helpful to someone. 

 

<div class="field">
  <input name="attributes[your-question]" type="checkbox" required /> 
  <label>*Your Question </label>
</div>

A customer cannot proceed to check out unless they answer your required checkout questions with the code above.

 

The directions in the Shopify help section offers TOO MUCH code that does not yield the desired result. 

A Simple solution but a headache for anyone who doesn't program

0 Likes
Highlighted
Shopify Expert
10007 116 1816

A small sidenote, this will only work on browsers that support HTML5 form validation. Support for it is rather decent, but not awesome: http://caniuse.com/#feat=form-validation

Browsers that don't support it will simply ignore the required attribute.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
Highlighted
New Member
1 0 0

I agree that shopify's documentation is horrible.

 

Per your example, I can only find a way to alter the CART, not the CHECKOUT.

 

The examples i have seen only show a "cart" solution, which is no solution --  customers can use the "Buy it now" button and never visit the cart.

 

Does anyone have any way to add another question on the actual checkout? Is "shopify plus" required for that? And what should I expect to pay for that????

 

 

0 Likes