Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

addin extra fields


developer_x

Recommended Posts

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

Irfan,

Link to comment
Share on other sites

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

Irfan,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...