Подскажите пожалуйста как такое сделать для карточки товара?
Попробовал сделать так, но что-то ничего не вышло
<file path="catalog/controller/product/product.php">
<operation>
<search index="0"><![CDATA[$data['column_left']]]></search>
<add position="before"><![CDATA[
// OCFilter Page Links Start
$data['ocfilter_pages'] = array();
$this->load->model('catalog/ocfilter');
$ocfilter_pages = $this->model_catalog_ocfilter->getPages();
foreach ($ocfilter_pages as $ocfilter_page) {
if (!in_array($product_id, $ocfilter_page)) {
continue;
}
if (isset($this->request->get['path'])) {
$link = rtrim($this->url->link('product/category', 'path=' . $this->request->get['path']), '/');
} else {
$link = rtrim($this->url->link('product/category', 'path=' . $ocfilter_page['category_id']), '/');
}
if ($ocfilter_page['keyword']) {
$link .= '/' . $ocfilter_page['keyword'];
} else {
$link .= '/' . $ocfilter_page['params'];
}
if ($this->config->get('config_seo_url_type') == 'seo_pro') {
$link .= '/';
}
$data['ocfilter_pages'][] = array(
'text' => $ocfilter_page['title'],
'selected' => (!empty($ocfilter_page_info) && $ocfilter_page_info['ocfilter_page_id'] == $ocfilter_page['ocfilter_page_id']),
'href' => $link
);
}
// OCFilter Page Links End
]]></add>
</operation>
</file>
<file path="catalog/view/theme/*/template/product/product.tpl">
<operation>
<search index="0"><![CDATA[<?php echo $content_bottom; ?>]]></search>
<add position="before"><![CDATA[
<!-- OCFilter pages start -->
<?php if (!empty($ocfilter_pages)) { ?>
<hr />
<ul class="list-inline">
<?php foreach ($ocfilter_pages as $ocfilter_page) { ?>
<li>
<?php if ($ocfilter_page['selected']) { ?>
<strong><?php echo $ocfilter_page['text']; ?></strong>
<?php } else { ?>
<a href="<?php echo $ocfilter_page['href']; ?>"><?php echo $ocfilter_page['text']; ?></a>
<?php } ?>
</li>
<?php } ?>
</ul>
<?php } ?>
<!-- /OCFilter pages end -->
]]></add>
</operation>
</file>
Спасибо!