I have edited the includes/modules/attributes.php file to remove the number_of_uploads parameter. hopefully from everywhere but I need a Zen-cart Guru to check I havent done anything that will cause other problems.
Around Line 54 commented out as follows:
Code:
// $number_of_uploads = 0;
Around line 458 commented out as follows:
Code:
// $number_of_uploads++;
Around line 462 & 463
Commented out
Code:
// 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']]);
Replaced line 462 & 463 with following:
Code:
zen_draw_hidden_field( $products_options_names->fields['products_options_id']) . "\n" .
zen_draw_hidden_field( $_SESSION['cart']->contents[$prod_id]['attributes_values'][$products_options_names->fields['products_options_id']]);
Around line 612 613 614 commented out
Code:
// $_GET['number_of_uploads'] = $number_of_uploads;
// zen_draw_hidden_field('number_of_uploads', $_GET['number_of_uploads']);
// zen_draw_hidden_field('number_of_uploads', $number_of_uploads);
Any feedback would be appreciated.
Bookmarks