wpsc_checkout_form_field

Located in: Located in: checkout.class.php
Version Introduced: 3.8

Description: This template tag returns the checkout form field, users can configure their own form fields in the checkout settings – Using this template tag to generate your form fields will ensure the correct type of field is printed for every user.

Note: You must use this tag within the checkout loop, the class is only returned so you must echo the tag.
[php] while (wpsc_have_checkout_items()) : wpsc_the_checkout_item(); ?> [/php]
Code Example:
[php]
<td>
<?php echo wpsc_checkout_form_field();?>
<?php if(wpsc_the_checkout_item_error() != ”): ?>
<p class=’validation-error’><?php echo wpsc_the_checkout_item_error(); ?></p>
<?php endif; ?>
</td>

[/php]