This is a discussion on problem while adding extra fields within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; i am using oscommerce 2.2 ms 2. i have used this contribution to add new fields to product_info.php ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| 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 |
|
#2
| ||||
| ||||
| create a image, same color as your background and always use this image for products that you dont have a regular image for, problem solved, no code changes neccessary. |
|
#3
| ||||
| ||||
| well i knew this method. but i think this method is a bit unethical. i want to solve my problem thru coding. thanx for ur reply though. Irfan |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Does osCMax have the product extra fields contr. installed? | orbitroderick | osCMax v2 Features Discussion | 1 | 08-24-2006 06:42 PM |
| Adding extra choices at checkout | PerfectEye | osCommerce 2.2 Modification Help | 5 | 08-18-2005 04:56 AM |
| How to add extra fields on products! | anil | osCMax v1.7 Discussion | 4 | 03-26-2005 12:07 PM |
| Prroduct Extra Fields v1.3 Problem | davec69 | osCMax v1.7 Discussion | 0 | 10-13-2004 12:07 PM |
| Extra fields in Customer Account | cralyn | osCommerce 2.2 Modification Help | 6 | 01-26-2004 09:20 AM |