wpsc_the_checkout_item_error

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

Description: This template tag returns the checkout error message for that form field.

Note: You must use this tag within the checkout loop, the class is only returned so you must echo the tag. Its important to check that there is an error before you try to output it see the simple check in the example below.
[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]