Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Here is a link to my admin/categories.php file:

http://omega-tek.com/osc/categories.php.txt

 

I'm using Product Extra Fields v1.3c and I have tried redoing this file several times with no luck. I can create the extra fields and see the fields listed on the product page in the admin. When I preview what I have entered for the product I can see the data for the extra fields, but once I submit them they do not get inserted into the database. I am not seeing any error messages.

 

Can someone familiar with this contribution please take a look at the link above and see if they can find something wrong? Or if you know of a fix let me know.

 

Thanks,

Travis

Posted

Does anyone have a plain admin/categories.php with only a working version of the Product Extra Fields that they would be willing to let me have? I have redone mine several times and it is not working.

 

Thanks,

Travis

Posted

Does anyone have a plain admin/categories.php with only a working version of the Product Extra Fields that they would be willing send to me? Or maybe if you have done it before just create a new one?

 

Any help is greatly appreciated.

 

Thanks,

Travis

Posted

I think the problem may be here with the instructions:

 

1.6 Look for (below "case 'update_product':"):

 

$languages = tep_get_languages();

for ($i=0, $n=sizeof($languages); $i<$n; $i++) {

echo tep_draw_hidden_field('products_name[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_name[$languages[$i]['id']])));

echo tep_draw_hidden_field('products_description[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_description[$languages[$i]['id']])));

echo tep_draw_hidden_field('products_url[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_url[$languages[$i]['id']])));

}

 

Add immediately below it:

 

// START: Extra Fields Contribution

if ($HTTP_POST_VARS['extra_field']) { // Check to see if there are any need to update extra fields.

foreach ($HTTP_POST_VARS['extra_field'] as $key=>$val) {

echo tep_draw_hidden_field('extra_field['.$key.']', stripslashes($val));

}

} // Check to see if there are any need to update extra fields.

// END: Extra Fields Contribution

 

I have case 'update_product' around line 220 but the $languages = tep_get_languages(); section mentioned above with the draw hidden fields doesn't show up until around line 790.

 

I do not think that is the correct place.

 

Can someone help me find the correct part of the file?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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