wpsc_display_form_fields

Located in: Located in: wpsc-user_log_functions.php
Version Introduced: 3.8

Description: This template tag is used on the users “My Account” page. You would use this tag to display to forms fields for the users my account information (shipping / billing address etc)

Note: Use with

 validate_form_data(); 

to return a form with validation.

[php]

Code Example:
[php]
<!– START OF PROFILE PAGE –>
<?php if ( is_wpsc_profile_page() ) : ?>

<form method="post">

<?php echo validate_form_data(); ?>

<table>

<?php wpsc_display_form_fields(); ?>

<tr>
<td></td>
<td>
<input type="hidden" value="true" name="submitwpcheckout_profile" />
<input type="submit" value="<?php _e( ‘Save Profile’, ‘wpsc’ ); ?>" name="submit" />
</td>
</tr>
</table>
</form>

[/php]