Помогите убрать под категории на странице категории. Как только вбиваю в поисковик данный вопрос мне сразу вылетает seo но здесь дело в другом. нужно править код. пыталась править category код (предварительно сохранив оригинал и это было моим спасением) появилась ошибка. помогите удалить навсегда под категории в категориях.
выпилите данный код из \catalog\view\theme\default\template\product\category.tpl Код: <?php if ($categories) { ?> <h2><?php echo $text_refine; ?></h2> <div class="category-list"> <?php if (count($categories) <= 5) { ?> <ul> <?php foreach ($categories as $category) { ?> <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li> <?php } ?> </ul> <?php } else { ?> <?php for ($i = 0; $i < count($categories);) { ?> <ul> <?php $j = $i + ceil(count($categories) / 4); ?> <?php for (; $i < $j; $i++) { ?> <?php if (isset($categories[$i])) { ?> <li><a href="<?php echo $categories[$i]['href']; ?>"><?php echo $categories[$i]['name']; ?></a></li> <?php } ?> <?php } ?> </ul> <?php } ?> <?php } ?> </div> <?php } ?>
А если тема шаблона не default? Возникает ошибка если убрать код. Код: <?php echo $header; ?> <div class="breadcrumb"> <div id="wrapper"> <?php foreach ($breadcrumbs as $breadcrumb) { ?> <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a> <?php } ?> </div> </div> <div id="wrapper"> <?php echo $topcontent; ?> <?php echo $column_left; ?><?php echo $column_right; ?> <div id="content"> <h1><?php echo $heading_title; ?></h1><?php echo $content_top; ?> <?php if ($thumb || $description) { ?> <div class="category-info"> <?php if ($thumb) { ?> <div class="image"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" /></div> <?php } ?> <?php if ($description) { ?> <?php echo $description; ?> <?php } ?> </div> <?php } ?> <?php if ($categories) { ?> <div class="category-list"> <h2><?php echo $text_refine; ?></h2> <ul> <?php foreach ($categories as $category) { ?> <li><a href="<?php echo $category['href']; ?>"> <?php if ($category['pic']) { ?> <img src="<?php echo $category['pic']; ?>" title="<?php echo $category['name']; ?>" alt="<?php echo $category['name']; ?>" /><br /> <?php } else { ?> <img src="catalog/view/theme/<?php echo $this->config->get('config_template'); ?>/image/img_not_found.png" title="<?php echo $category['name']; ?>" alt="<?php echo $category['name']; ?>" width="80px;" height="80px;" /> <br /> <?php } ?> <?php echo $category['name']; ?> </a> </li> <?php } ?> </ul> </div> <?php } ?> <?php if ($products) { ?> <div class="product-filter"> <div class="display"><b><?php echo $text_display; ?></b> <?php echo $text_list; ?> <b>/</b> <a onclick="display('grid');"><?php echo $text_grid; ?></a></div> <div class="limit"><?php echo $text_limit; ?> <select onchange="location = this.value;" class="select1"> <?php foreach ($limits as $limits) { ?> <?php if ($limits['value'] == $limit) { ?> <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option> <?php } else { ?> <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option> <?php } ?> <?php } ?> </select> </div> <div class="sort"> <select onchange="location = this.value;" class="select1"> <?php foreach ($sorts as $sorts) { ?> <?php if ($sorts['value'] == $sort . '-' . $order) { ?> <option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option> <?php } else { ?> <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option> <?php } ?> <?php } ?> </select> </div> <div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div> </div> <div class="product-grid" id="boxfeatured"> <?php foreach ($products as $product) { ?> <div class="item block"> <?php if ($product['thumb']) { ?> <div class="image"> <a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a> </div> <?php } ?> <div id="buttonrow"> <div class="cart"><a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" title="<?php echo $button_cart; ?>" /><?php echo $button_cart; ?></a></div> <div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');" title="<?php echo $button_compare; ?>"><?php echo $button_compare; ?></a></div> <div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');" title="<?php echo $button_wishlist; ?>" ><?php echo $button_wishlist; ?></a></div> </div> <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div> <?php if ($product['price']) { ?> <div class="price"> <?php if (!$product['special']) { ?> <?php echo $product['price']; ?> <?php } else { ?> <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span> <div class="savemoney">- <?php echo $product['saving']; ?>%</div> <?php } ?> <?php if ($product['tax']) { ?> <br /> <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span> <?php } ?> </div> <?php } ?> <div class="description"><a href="<?php echo $product['href']; ?>"><?php echo $product['description']; ?></a></div> <?php if ($product['rating']) { ?> <div class="rating"><img src="catalog/view/theme/polianna/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div> <?php } ?> </div> <?php } ?> </div> <div class="pagination"><?php echo $pagination; ?></div> <?php } ?> <?php if (!$categories && !$products) { ?> <div class="content"><?php echo $text_empty; ?></div> <div class="buttons"> <div class="right"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_continue; ?></a></div> </div> <?php } ?> <?php echo $content_bottom; ?></div> <script type="text/javascript"><!-- $('#content input[name=\'search\']').keydown(function(e) { if (e.keyCode == 13) { $('#button-search').trigger('click'); } }); $('select[name=\'category_id\']').bind('change', function() { if (this.value == '0') { $('input[name=\'sub_category\']').attr('disabled', 'disabled'); $('input[name=\'sub_category\']').removeAttr('checked'); } else { $('input[name=\'sub_category\']').removeAttr('disabled'); } }); $('select[name=\'category_id\']').trigger('change'); $('#button-search').bind('click', function() { url = 'index.php?route=product/search'; var search = $('#content input[name=\'search\']').attr('value'); if (search) { url += '&search=' + encodeURIComponent(search); } var category_id = $('#content select[name=\'category_id\']').attr('value'); if (category_id > 0) { url += '&category_id=' + encodeURIComponent(category_id); } var sub_category = $('#content input[name=\'sub_category\']:checked').attr('value'); if (sub_category) { url += '&sub_category=true'; } var filter_description = $('#content input[name=\'description\']:checked').attr('value'); if (filter_description) { url += '&description=true'; } location = url; }); //--></script> <?php if(($this->config->get('polianna_status') == 1) && ( $this->config->get('polianna_himage') == 1)){ ?> <?php } else { ?> <script type="text/javascript"> function display(view) { if (view == 'list') { $('.product-grid').attr('class', 'product-list'); $('.product-list > div').each(function(index, element) { html = '<div class="left">'; var image = $(element).find('.image').html(); if (image != null) { html += '<div class="image">' + image + '</div>'; } html += '</div>'; html += '<div class="right">'; html += ' <div class="name">' + $(element).find('.name').html() + '</div>'; var price = $(element).find('.price').html(); if (price != null) { html += '<div class="price">' + price + '</div>'; } html += ' <div class="description">' + $(element).find('.description').html() + '</div>'; var rating = $(element).find('.rating').html(); if (rating != null) { html += '<div class="rating">' + rating + '</div>'; } html += '<div id="buttonrow">'; html += ' <div class="cart">' + $(element).find('.cart').html() + '</div>'; html += ' <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>'; html += ' <div class="compare">' + $(element).find('.compare').html() + '</div>'; html += '</div>'; html += '</div>'; $(element).html(html); }); $('.display').html('<span class="iconlist"><?php echo $text_list; ?></span> <a onclick="display(\'grid\');" class="icongrid"><?php echo $text_grid; ?></a>'); $.totalStorage('display', 'list'); } else { $('.product-list').attr('class', 'product-grid'); $('.product-grid > div').each(function(index, element) { html = ''; var image = $(element).find('.image').html(); if (image != null) { html += '<div class="image">' + image + '</div>'; } html += '<div id="buttonrow">'; html += ' <div class="cart">' + $(element).find('.cart').html() + '</div>'; html += ' <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>'; html += ' <div class="compare">' + $(element).find('.compare').html() + '</div>'; html += '</div>'; html += '<div class="name">' + $(element).find('.name').html() + '</div>'; var price = $(element).find('.price').html(); if (price != null) { html += '<div class="price">' + price + '</div>'; } html += '<div class="description">' + $(element).find('.description').html() + '</div>'; var rating = $(element).find('.rating').html(); if (rating != null) { html += '<div class="rating">' + rating + '</div>'; } $(element).html(html); }); $('#buttonrow a').tipsy({gravity: 's', fade: true}); $('.display').html('<a onclick="display(\'list\');" class="iconlist"><?php echo $text_list; ?></a> <span class="icongrid"> <?php echo $text_grid; ?></span>'); $.totalStorage('display', 'grid'); } } view = $.totalStorage('display'); if (view) { display(view); } else { display('grid'); } </script> <?php } ?> <?php echo $footer; ?>