<div class="product-list">
<div class="products-block">
<?php
$cols = $MAX_ITEM_ROW ;
$span = floor(12/$cols);
$small = floor(12/$MAX_ITEM_ROW_SMALL);
$mini = floor(12/$MAX_ITEM_ROW_MINI);
foreach ($products as $i => $product) { ?>
<?php if( $i++%$cols == 0 ) { ?>
<div class="row product-items">
<?php } ?>
<div class="col-lg-<?php echo $span;?> col-md-<?php echo $span;?> col-sm-<?php echo $span;?> col-xs-<?php echo $mini;?> product-cols">
<div class="product-block">
<?php if ($product['thumb']) { ?>
<?php $product_images = $this->model_catalog_product->getProductImages( $product['product_id'] ); ?>
<div class="image <?php echo isset($product_images[0])?$swapimg:''; ?>">
<?php if( $product['special'] ) { ?>
<span class="product-label product-label-special">
<span><?php echo $this->language->get( 'text_sale' ); ?></span>
</span>
<?php } ?>
<?php if( $categoryPzoom ) { $zimage = str_replace( "cache/","", preg_replace("#-\d+x\d+#", "", $product['thumb'] )); ?>
<a href="<?php echo $zimage;?>" class="info-view colorbox product-zoom" rel="colorbox" title="<?php echo $product['name']; ?>"><i class="fa fa-search-plus"></i></a>
<?php } ?>
<!-- Swap image -->
<div class='code_product'>
<p>код:<?php echo $product['model']; ?></p>
<p>
<?php if ($product['stock'] <= 0) { ?> <?php echo $product['stock_status']; } ?>
<?php if ($product['stock'] > 0) { ?> <?php echo $product['instock']; } ?>
</p>
</div>
<div class="flip">
<a href="<?php echo $product['href']; ?>" class="swap-image">
<img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" class="front" />
<?php
if( $categoryConfig['show_swap_image'] ){
$product_images = $this->model_catalog_product->getProductImages( $product['product_id'] );
if(isset($product_images) && !empty($product_images)) {
$thumb2 = $this->model_tool_image->resize($product_images[0]['image'], $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height') );
?>
<img src="<?php echo $thumb2; ?>" alt="<?php echo $product['name']; ?>" class="back" />
<?php } } ?>
</a>
</div>
<?php //#2 Start fix quickview in fw?>
<?php if ($quickview) { ?>
<a class="pav-colorbox btn btn-theme-default" href="<?php echo $this->url->link("themecontrol/product",'product_id='.$product['product_id'] );?>"><em class="fa fa-plus"></em><span><?php echo $this->language->get('quick_view'); ?></span></a>
<?php } ?>
<?php //#2 End fix quickview in fw?>
</div>
<?php } ?>
<div class="product-meta">
<div class="left">
<h3 class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h3>
<?php if ($product['price']) { ?>
</div>
<div class="right">
<p class="description"><?php echo utf8_substr( strip_tags($product['description']),0,220);?></p>
<div class="action">
<div class="cart">
<button onclick="addToCart('<?php echo $product['product_id']; ?>');" class="btn btn-shopping-cart">
<span class="fa fa-shopping-cart product-icon hidden-sm hidden-md"></span>
<span><?php echo $button_cart; ?></span>
</button>
</div>
<div class="button-group">
<div class="price">
<?php if (!$product['special']) { ?>
<span class="special-price"><?php echo $product['price']; ?></span>
<?php } else { ?>
<span class="price-old"><?php echo $product['price']; ?></span>
<span class="price-new"><?php echo $product['special']; ?></span>
<?php } ?>
<?php if ($product['tax']) { ?>
<span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php if( $i%$cols == 0 || $i==count($products) ) { ?>
</div>
<?php } ?>
<?php } ?>
</div>
</div>
<div class="pagination paging clearfix"><?php echo $pagination; ?></div>
Это я понимаю... я просто уже несколько дней не могу даже примерно понять почему так и как оно себе придумывает эту структуру :ugeek: