travisb Posted December 3, 2005 Posted December 3, 2005 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 Quote
travisb Posted December 3, 2005 Author Posted December 3, 2005 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 Quote
travisb Posted December 5, 2005 Author Posted December 5, 2005 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 Quote
travisb Posted December 7, 2005 Author Posted December 7, 2005 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? Quote
Recommended Posts
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.