Results 1 to 3 of 3

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 page. http://www.oscommerce.com/community/...158/category,3 ...

      
  1. #1
    Active Member developer_x's Avatar
    Join Date
    Nov 2004
    Location
    Digital Infoway
    Posts
    109
    Rep Power
    0


    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

  2. #2
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    8


    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.

  3. #3
    Active Member developer_x's Avatar
    Join Date
    Nov 2004
    Location
    Digital Infoway
    Posts
    109
    Rep Power
    0


    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

Similar Threads

  1. Does osCMax have the product extra fields contr. installed?
    By orbitroderick in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 08-24-2006, 07:42 PM
  2. Adding extra choices at checkout
    By PerfectEye in forum osCommerce 2.2 Modification Help
    Replies: 5
    Last Post: 08-18-2005, 05:56 AM
  3. How to add extra fields on products!
    By anil in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 03-26-2005, 12:07 PM
  4. Prroduct Extra Fields v1.3 Problem
    By davec69 in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 10-13-2004, 01:07 PM
  5. Extra fields in Customer Account
    By cralyn in forum osCommerce 2.2 Modification Help
    Replies: 6
    Last Post: 01-26-2004, 09:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •