Located in: Located in: product-template.php
Version Introduced: 3.8
Description: This condition is used to determine if the product can have a file uploaded to it.
<?php if ( wpsc_product_has_supplied_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" />
<?php endif; ?>