Checkout agree and address
Contracts adds two required fields:
- A checkbox: the buyer has reviewed the license for this purchase and agrees to the terms.
- An address field for the PDF (
{CUSTOMER_ADDRESS}).
With the player, those fields hook beatstore_checkout_before_submit. Without it, they hook native EDD and WooCommerce checkout.
Preview
Cart lines that have a mapped template can show View license. That loads a filled preview (demo buyer) so the shopper can read the terms before paying. On Easy Digital Downloads it sits next to the checkout line title. On WooCommerce it does the same on the classic cart, and on Cart / Checkout / Mini-cart blocks it shows as a details link on the line.
If checkout is blocked
The order will not complete until both fields are filled. The error copy is:
- You must agree to the license terms before placing your order.
- Please enter your address for the license agreement.
The address is stored on the EDD order or Woo order meta and passed into the PDF on fulfillment.