Re: "acceptance of terms" button before proceeding..
You can certainly do that with JavaScript. Best way is to disable the form submit button until the user has accepted the terms. And you can certainly remember the setting in a cookie.
But what about those users who have Javascript disabled and/or won't accept cookies? For those users, it's better to keep some data in database tables on your server and use them to determine which user has added items to their cart, whether they've accepted the terms, etc. This also allows you to track users who didn't complete the checkout for some reason.
|