i am using oscommerce 2.2 ms 2.
i have used this contribution to add new fields to product_info.php page.
http://www.oscommerce.com/community/...158/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




LinkBack URL
About LinkBacks






Bookmarks