Hello,
The WP-Ecommerce Plugin (using the Flexishop theme) only allows one to enter one user image upload. I need to allow users the option to upload two images: See example: http://www.bashpole.com/wp_hydracard...3&product_id=2
Only one image is uploading. Below are some of the edits I made to various php pages. Could someone by chance suggest some additional code or point me in a direction to add more edits. Thanks!
single_product.php added around line 202)
PHP Code:
<?php if(wpsc_product_has_supplied_file()) : ?> <div class='custom_file'> <h4><?php echo __('Upload Files', 'wpsc'); ?></h4> <?php echo __('Add an image. ', 'wpsc'); ?><br /> <input type='file' name='custom_file' value='' /><br /><br /> <!-- additional image --> <?php echo __('Add an additional image. ', 'wpsc'); ?><br /> <input type='file' name='custom_file2' value='' /> </div> <?php endif; ?>
ajax.functions.php
added... around line62
PHP Code:
$default_parameters['file_data2'] = null;
around line 94
PHP Code:
if(isset($_FILES['custom_file2'])) { $provided_parameters['file_data2'] = $_FILES['custom_file2']; } }
|