Hi all,
So I want to have the ability for products in my store to have one image for the thumbnail/product image, and a second image for a close-up. I'm having trouble getting the admin "New Product" form to upload the second image.
I added a "products_image_large" field after the existing "products_image" field in the "products" table in the database with the same exact parameters (data type, etc.). I even added a second field for uploading the second image file.
But when the item is added to the database, "products_image_large" remains empty.
Can somebody tell me what I am supposed to edit in the update_product.php file? I've made the following changes:
* Below:
...I added:Code:$sql_data_array['products_image'] = zen_db_prepare_input($_POST['products_image']);
* Below:Code:$sql_data_array['products_image_large'] = zen_db_prepare_input($_POST['products_image_large']);
...I added:Code:if ($_POST['image_delete'] == 1) { $sql_data_array['products_image'] = ''; $new_image = 'false'; }
I'm not sure what else I need to edit.Code:if ($_POST['image_large_delete'] == 1) { $sql_data_array['products_image_large'] = ''; $new_image_large = 'false'; }



