| Added field info not being saved when adding product
I have added additional fields to the category template but when I add a product with no image specified, the data keying into the added fields is not saved. If however I specify an image to upload, it does save the added field information.
I have looked at the following code in the upload.php file but am unable to figure out why it would not save the added field information with no upload image specified:
if ( $numcustom > 0 ) {
for( $z=0; $z < $numcustom; $z++ ) {
if ( !empty($extraprompts['name'][$z]) ) {
$thisopts = str_replace( "%%insertid%%", "$x", $extraprompts['options'][$z] );
echo<<<PPPRINT
<tr>
<td class="{$Style['tddetails']}" valign="top">
<span class="{$Style['small']}">{$extraprompts['name'][$z]}:</span>
</td>
<td class="{$Style['tddetails']}" valign="top">
{$thisopts}
</td>
</tr>
PPPRINT;
}
}
}
Everything else seems to work except this including editproduct.php and showproduct.php.
I really need some help in figuring this out since there are times when a product is uploaded and no image is available.
Appreciate any help and thank you in advance,
Scott
|