«

»

fev 28

OpenCart – Retirar Quantidade de Produtos em Categorias

BARRA MENU LATERAL

No arquivo category.php (catalog\controller\module\category.php) a partir da linha 46 “estou usando o dw”

Original: linha 46

$children_data[] = array(
‘category_id’ => $child[‘category_id’],
‘name’        => $child[‘name’] . ‘ (‘ . $product_total . ‘)’,

Mude para:

$children_data[] = array(
‘category_id’ => $child[‘category_id’],
‘name’        => $child[‘name’] /*. ‘ (‘ . $product_total . ‘)’*/,

Original linha 60

$this->data[‘categories’][] = array(
‘category_id’ => $category[‘category_id’],
‘name’        => $category[‘name’] . ‘ (‘ . $product_total . ‘)’,

Mude para:

$this->data[‘categories’][] = array(
‘category_id’ => $category[‘category_id’],
‘name’        => $category[‘name’] /*. ‘ (‘ . $product_total . ‘)’*/,

 

BARRA MENU SUPERIOR

É preciso alterar o arquivo header.php (catalog/controller/common/header.php)

Original linha 199

$children_data[] = array(
‘name’  => $child[‘name’] . ‘ (‘ . $product_total . ‘)’,

Mude para:

$children_data[] = array(
‘name’  => $child[‘name’] /*. ‘ (‘ . $product_total . ‘)’*/,