Hi I hope somebody can help me on this, I keep getting an error in the logs:
>> PHP Notice: Undefined variable: product_total in /home/sites/'site'/public_html/catalog/controller/common/header.php on line 88<<
The header source is this:
$children_data[] = array(
'name' => $child['name'] . ' (' . $product_total . ')',
'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id'])
);
}
line 88 is this:>> 'name' => $child['name'] . ' (' . $product_total . ')',
I am on Version 1.5.2.1
If anybody has any idea I would really appreciate it
Thanks Graeme
check if this line exist around line no 85
if not add add it
Code: Select all
$product_total = $this->model_catalog_product->getTotalProducts($data);
Hi ChetanCX
I have this exactly on line 85:
//$product_total = $this->model_catalog_product->getTotalProducts($data);
But I have looked at a newer version and line 88 looks like this:
'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $product_total . ')' : ''),
however mine is:
'name' => $child['name'] . ' (' . $product_total . ')',
Thanks Graeme
I have this exactly on line 85:
//$product_total = $this->model_catalog_product->getTotalProducts($data);
But I have looked at a newer version and line 88 looks like this:
'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $product_total . ')' : ''),
however mine is:
'name' => $child['name'] . ' (' . $product_total . ')',
Thanks Graeme
Who is online
Users browsing this forum: Amazon [Bot] and 111 guests