wpsc_has_purchases_this_month

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

Description: This condition is used to check if the user has made any purchases this month.

[php]
<?php if ( wpsc_has_purchases() ) : ?>

<table class="logdisplay">

<?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 : ?>

[/php]