I have currently made an fresh install of Extra Fields.
URL: http://www.oscommerce.com/community/contri...ll/search,extra
Version: 1.3c
Everything went fine until i got this error when i tried to view the product (http://www.url.com/shop/admin/categories.php?cPath=28_30_119&pID=368&action=new_product_preview&read=only)
This problem is obviously why i cannot save the data in the fields on each product.
Case:
---
Error:
Quote
Line 1492 in admin/categories.php:
foreach ($extra_fields_array as $key=>$val) {
Entire code:
<?php
// START: Extra Fields Contribution
$extra_fields_names_query = tep_db_query("SELECT * FROM " . TABLE_PRODUCTS_EXTRA_FIELDS);
while ($extra_fields_names = tep_db_fetch_array($extra_fields_names_query)) {
$extra_field_name[$extra_fields_names['products_extra_fields_id']] = $extra_fields_names['products_extra_fields_name'];
}
if ($HTTP_GET_VARS['read'] == 'only') {
$products_extra_fields_query = tep_db_query("SELECT * FROM " . TABLE_PRODUCTS_TO_PRODUCTS_EXTRA_FIELDS . " WHERE products_id=" . (int)$HTTP_GET_VARS['pID']);
while ($products_extra_fields = tep_db_fetch_array($products_extra_fields_query)) {
//v1.3b echo "Hi";
$extra_fields_array[$products_extra_fields['products_extra_fields_id']] = $products_extra_fields['products_extra_fields_value'];
}
}
else {
$extra_fields_array = $HTTP_POST_VARS['extra_field'];
}
//v1.3b if ($HTTP_POST_VARS['extra_field']) { // Check to see if there are any need to update extra fields.
foreach ($extra_fields_array as $key=>$val) {
?>
<b><? echo $extra_field_name[$key];?>:</b> <? echo $val;?><br />
<?
}
//v1.3b } // Check to see if there are any need to update extra fields.
// END: Extra Fields Contribution
// echo "<br />" . $pInfo->products_description;
?>









