wpsc_product_has_supplied_file

Located in: Located in: product-template.php
Version Introduced: 3.8
Return: Boolean

Description: This condition is used to determine if the product can have a file uploaded to it.

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

<fieldset class="custom_file">
<legend><?php _e( ‘Upload a File’, ‘wpsc’ ); ?></legend>
<p><?php _e( ‘Select a file from your computer to include with this purchase.’, ‘wpsc’ ); ?></p>
<input type="file" name="custom_file" />
</fieldset>
<?php endif; ?>

[/php]