Делаю разметку для категории товаров AggregateOffer, Вопрос Как вывести в php-файле lowPrice, highPrice, offerCount ?
В контролере нашёл переменные $product_total - вроде как в ней offerCount (количество товаров в категории)
также есть фильтр "внизу" как я понимаю из него мне нужно вытянуть "p.price-asc" и "p.price-desc".
В php файле при попытке вывести $product_total - ничего не показывает ( <p itemprop="offerCount"><?php echo $product_total; ?></p>)
в контролере он описан вот так: $product_total = $this->model_catalog_product->getTotalProducts($filter_data);
$data['sorts'][] = array(
'text' => $this->language->get('text_price_asc'),
'value' => 'p.price-asc',
'href' => $link . '?sort=p.price&order=asc' . $url
);
$data['sorts'][] = array(
'text' => $this->language->get('text_price_desc'),
'value' => 'p.price-desc',
'href' => $link . '?sort=p.price&order=desc' . $url
);