Code: Select all
if (!isset($this->request->get['product_id'])) {
$data['action'] = $this->url->link('catalog/product/add', 'user_token=' . $this->session->data['user_token'] . $url, true);
} else {
'edit' -> $this->url->link('catalog/product/edit', 'user_token=' . $this->session->data['user_token'] . '&product_id=' . $result['product_id'] . $url, true);
'link'('index.php?route=catalog/product/product&product_id='. $result['product_id']);
}
Can anyone guide me as to what is wrong in the coding , causing this error message?Uncaught Error: Object of class ControllerCatalogProduct could not be converted to string in C:\xampp\htdocs\test_website\storage\modification\admin\controller\catalog\product.php:575
Thanks