developer_x Posted November 25, 2004 Posted November 25, 2004 i have used this contribution to add new fields to product_info.php page. http://www.oscommerce.com/community/contri...1158/category,3 everything work fines for products having images. but if i insert a new product which doesn't have an image,then the extra fields doesn't show up. i think it is due to the fact dat i cud not apply one step to my osc ms 2.2 package. ******************************************* the instruction says: (in admin/categories.php go to) In // copy image only if modified $products_image = tep_get_uploaded_file('products_image'); $image_directory = tep_get_local_path(DIR_FS_CATALOG_IMAGES); if (is_uploaded_file($products_image['tmp_name'])) { tep_copy_uploaded_file($products_image, $image_directory); $products_image_name = $products_image['name']; } else { $products_image_name = $HTTP_POST_VARS['products_previous_image']; } } else { $product_query = tep_db_query(..... We add the new field(s) ..,p.products_size.... ******************************************************************* i can find the line else { $product_query = tep_db_query(..... so i skipped this instruction. but now i am facing problems. :( if any one has any idea plz let me know. i am working on a new contribution n i might upload it once this problem gets solved. Irfan Quote Irfan,
developer_x Posted December 2, 2004 Author Posted December 2, 2004 i have used this contribution to add new fields to product_info.php page. http://www.oscommerce.com/community/contri...1158/category,3 everything work fines for products having images. but if i insert a new product which doesn't have an image,then the extra fields doesn't show up. i think it is due to the fact dat i cud not apply one step to my osc ms 2.2 package. ******************************************* the instruction says: (in admin/categories.php go to) In // copy image only if modified $products_image = tep_get_uploaded_file('products_image'); $image_directory = tep_get_local_path(DIR_FS_CATALOG_IMAGES); if (is_uploaded_file($products_image['tmp_name'])) { tep_copy_uploaded_file($products_image, $image_directory); $products_image_name = $products_image['name']; } else { $products_image_name = $HTTP_POST_VARS['products_previous_image']; } } else { $product_query = tep_db_query(..... We add the new field(s) ..,p.products_size.... ******************************************************************* i CAN'T find the line else { $product_query = tep_db_query(..... so i skipped this instruction. but now i am facing problems. :( if any one has any idea plz let me know. i am working on a new contribution n i might upload it once this problem gets solved. Irfan Quote Irfan,
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.