In this post, we’ll learn how to add a terms and conditions option to the checkout page for Shopp 1.3 and up. This will be done by editing the checkout.php content template file and using the shopp checkout clickwrap API call.
Shopp content templates will be needed. These templates files will ensure that your customizations are not lost on a software update and they can be setup through WP-admin –> Shopp setup –> Presentation.
Add a Terms and Conditions Checkbox to the Checkout page for Shopp
Login to your WordPress root with your preferred SFTP or FTP client. If you are using a Mac, then recommend Transmit. If you are on another system, then try Cyberduck or FileZilla.
Next, browse to your Shopp content templates folder in this location:
Now locate the checkout.php file and open it for editing.
At around line 2, you will see the following:
<form action="<?php shopp( 'checkout.url' ); ?>" method="post" class="shopp validate" id="checkout">
Add the validation-alerts class to the form. The resulting code will be:
<form action="<?php shopp( 'checkout.url' ); ?>" method="post" class="shopp validate validation-alerts" id="checkout">
This step will enable pop up validation alerts for required fields on the checkout page. [Read more...]