I duplicate the model (text) to add additional details about the products than having it written in description.
[img] Screen Shot 2015-08-01 at 2.18.27 AM.png
[/img]
File from: admin/controller/catalog/product.php
if (isset($this->request->get['product_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) {
$product_info = $this->model_catalog_product->getProduct($this->request->get['product_id']);
if (isset($this->request->post['model'])) {
$data['model'] = $this->request->post['model'];
} elseif (!empty($product_info)) {
$data['model'] = $product_info['model'];
} else {
$data['model'] = '';
everything is okay except this error:
Notice: Undefined index: usage in /home2/berrylen/public_html/admin/controller/catalog/product.php on line 802Notice: Undefined index: bc in /home2/berrylen/public_html/admin/controller/catalog/product.php on line 810Notice: Undefined index: madein in /home2/berrylen/public_html/admin/controller/catalog/product.php on line 818
ERROR LINE IS:
if (isset($this->request->post['usage'])) {
$data['usage'] = $this->request->post['usage'];
} elseif (!empty($product_info)) {
$data['usage'] = $product_info['usage'];
} else {
$data['usage'] = '';
}
if (isset($this->request->post['bc'])) {
$data['bc'] = $this->request->post['bc'];
} elseif (!empty($product_info)) {
$data['bc'] = $product_info['bc'];
} else {
$data['bc'] = '';
}
if (isset($this->request->post['madein'])) {
$data['madein'] = $this->request->post['madein'];
} elseif (!empty($product_info)) {
$data['madein'] = $product_info['madein'];
} else {
$data['madein'] = '';
}
as written above code:
if (isset($this->request->get['product_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) {
$product_info = $this->model_catalog_product->getProduct($this->request->get['product_id']);
product_info is in model/catalog/product and get product_id, if I am correct. where should I put additional code in product.tpl
Hoping for your kind response about product_info or product_id.




I already made in it, but I got an error with product_info.
