Have a loook into /includes/modules/attributes.php
around lines 456 - 468 you will find this code, that draws the input fields for the file upload,
Code:
// iii 030813 added: support for file fields
if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE) {
$number_of_uploads++;
if (zen_run_normal() == true and zen_check_show_prices() == true) {
// $cart->contents[$_GET['products_id']]['attributes_values'][$products_options_name['products_options_id']]
$tmp_html = '<input type="file" name="id[' . TEXT_PREFIX . $products_options_names->fields['products_options_id'] . ']" id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '" /><br />' . $_SESSION['cart']->contents[$prod_id]['attributes_values'][$products_options_names->fields['products_options_id']] . "\n" .
zen_draw_hidden_field(UPLOAD_PREFIX . $number_of_uploads, $products_options_names->fields['products_options_id']) . "\n" .
zen_draw_hidden_field(TEXT_PREFIX . UPLOAD_PREFIX . $number_of_uploads, $_SESSION['cart']->contents[$prod_id]['attributes_values'][$products_options_names->fields['products_options_id']]);
} else {
$tmp_html = '';
}
$tmp_html .= $products_options_details;
}
Depending on the implementation of you custom code, you replace parts of this code with your custom code. Loos at other places, that are involved in the file upload.
Bookmarks