PHP Notice: Undefined index: bonus_details
i have create bonus_details in product_description. first time i can add the value to database. but i dont know what i have edited. now error . but if i input the bonus_details value from database it can appear.

please help.
Code: Select all
<!-- Admin Start -->
<file name="admin/language/*/catalog/product.php" error="log">
<operation error="log">
<search position="after"><![CDATA[$_['entry_name']]]></search>
<add><![CDATA[$_['entry_bonus'] = 'Bonus:';
$_['entry_bonus_help'] = 'Show on Product Page must be set to enabled if you want the product bonus to be shown';]]></add>
</operation>
</file>
<file name="admin/controller/catalog/product.php" error="log">
<operation error="log">
<search position="after"><![CDATA[$this->language->get('entry_name');]]></search>
<add><![CDATA[$data['entry_bonus'] = $this->language->get('entry_bonus');
$data['entry_bonus_help'] = $this->language->get('entry_bonus_help');]]></add>
</operation>
</file>
<file name="admin/model/catalog/product.php" error="log">
<operation error="log">
<search position="after"><![CDATA[$this->db->query("INSERT INTO " . DB_PREFIX . "product_description]]></search>
<add><![CDATA[$this->db->query("UPDATE " . DB_PREFIX . "product_description SET bonus_details = '" . $this->db->escape($value['bonus_details']) . "' WHERE product_id = '" . (int)$product_id . "' AND language_id = '" . (int)$language_id . "'");]]></add>
</operation>
<operation error="log">
<search position="after"><![CDATA[$result['name'],]]></search>
<add><![CDATA['bonus_details' => $result['bonus_details'],]]></add>
</operation>
</file>
<file name="admin/view/template/catalog/product_form.tpl" error="log">
<operation error="log">
<search position="before" index="1"><![CDATA[<div class="form-group">]]></search>
<add><![CDATA[<div class="form-group">
<label class="col-sm-2 control-label" for="input-bonus<?php echo $language['language_id']; ?>"><span data-toggle="tooltip" title="<?php echo $entry_bonus_help; ?>"><?php echo $entry_bonus; ?></span></label>
<div class="col-sm-10">
<input type="text" name="product_description[<?php echo $language['language_id']; ?>][bonus_details]" value="<?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['bonus_details'] : ''; ?>" id="input-bonus<?php echo $language['language_id']; ?>" class="form-control" autocomplete="off" />
</div>
</div>]]></add>
</operation>
</file>
PHP Notice: Undefined index: bonus_details$this->db->query("UPDATE " . DB_PREFIX . "product_description SET bonus_details = '" . $this->db->escape($value['bonus_details']) . "' WHERE product_id = '" . (int)$product_id . "' AND language_id = '" . (int)$language_id . "'");
please help me.