wpsc_user_details

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 the purchase history and receipt details.

Code Example:
[php hightlight=”16″]

<?php if ( wpsc_has_purchases_this_month() ) : ?>

<tr class="toprow">
<td><strong><?php _e( ‘Status’, ‘wpsc’ ); ?></strong></td>
<td><strong><?php _e( ‘Date’, ‘wpsc’ ); ?></strong></td>
<td><strong><?php _e( ‘Price’, ‘wpsc’ ); ?></strong></td>

<?php if ( get_option( ‘payment_method’ ) == 2 ) : ?>

<td><strong><?php _e( ‘Payment Method’, ‘wpsc’ ); ?></strong></td>

<?php endif; ?>

</tr>

<?php wpsc_user_details(); ?>

<?php else : ?>

<tr>
<td colspan="<?php echo $col_count; ?>">

<?php _e( ‘No transactions for this month.’, ‘wpsc’ ); ?>

</td>
</tr>

<?php endif; ?>

</table>

[/php]