Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Additional Image Upload in WP-Ecommerce
Old 12-23-2010, 01:40 PM Additional Image Upload in WP-Ecommerce
PC Catastrophe's Avatar
Super Talker

Latest Blog Post:
QR Code Craze
Posts: 125
Name: Brandy
Location: Indiana
Trades: 0
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'];
        }
    } 
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
PC Catastrophe is offline
Reply With Quote
View Public Profile Visit PC Catastrophe's homepage!
 
 
Register now for full access!
Old 12-23-2010, 03:19 PM Re: Additional Image Upload in WP-Ecommerce
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
Could you just search for the file where it says 'You are only allowed 1 image' or something like that, and remove that if statement that is calling that?
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 12-26-2010, 02:33 PM Re: Additional Image Upload in WP-Ecommerce
PC Catastrophe's Avatar
Super Talker

Latest Blog Post:
QR Code Craze
Posts: 125
Name: Brandy
Location: Indiana
Trades: 0
Unfortunately, it is part of the wp-ecommerce theme. It doesn't seem to be actually only allowing only one image it, but rather is set-up that way.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
PC Catastrophe is offline
Reply With Quote
View Public Profile Visit PC Catastrophe's homepage!
 
Reply     « Reply to Additional Image Upload in WP-Ecommerce
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26184 seconds with 12 queries