osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

problem while adding extra fields

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-25-2004, 02:11 PM
developer_x's Avatar
Active Member
 
Join Date: Nov 2004
Location: Digital Infoway
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
developer_x
Default problem while adding extra fields

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 11-26-2004, 10:56 AM
red_fraggle's Avatar
Active Member
 
Join Date: Feb 2004
Location: wilmington, NC
Posts: 319
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
red_fraggle
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-27-2004, 10:32 PM
developer_x's Avatar
Active Member
 
Join Date: Nov 2004
Location: Digital Infoway
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
developer_x
Default i knew dat method but....

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 12:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax