tags

warning: Creating default object from empty value in /var/www/clients/client4/web8/web/modules/taxonomy/taxonomy.pages.inc on line 33.

Opencart Модуль тегов

1. в catalog/model/catalog/products.php добавляем новый кусок в ~448 строку

public function getProductsTags() {
$query = $this->db->query("SELECT DISTINCT tag FROM " . DB_PREFIX . "product_tags WHERE language_id = '" . (int)$this->config->get('config_language_id') . "'");

return $query->rows;
}

2. создаем файл catalog/controller/module/tags.php

<?php
class ControllerModuleTags extends Controller {

protected function index() {
$this->language->load('module/tags');

$this->data['heading_title'] = $this->language->get('heading_title');

RSS-материал