<div class="box">
  <div class="box-heading-bestseller"><?php echo $heading_title; ?></div>
  <div class="box-content-bestseller">
    <div class="box-product-bestseller">
      <?php foreach ($products as $product) { ?>
      <div class="box2-catalog2">
	  <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
	  <?php if ($product['ean']) { ?>
          <div style="position:relative;height:0px;top:125px;left:110px;max-width:110px;">
		  <div class="icon-sale"><?php echo $product['ean']; ?></div>
		  </div>
      <?php } ?>
	  <?php if ($product['sku']) { ?>
          <div style="position:relative;height:0px;top:150px;left:110px;max-width:110px;">
		  <div class="icon-new"><?php echo $product['sku']; ?></div>
		  </div>
      <?php } ?>
	   <?php if ($product['upc']) { ?>
          <div style="position:relative;height:0px;top:175px;left:110px;max-width:110px;">
		  <div class="icon-hit"><?php echo $product['upc']; ?></div>
		  </div>
      <?php } ?>
        <?php if ($product['thumb']) { ?>
        <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
        <?php } ?>
        <?php if ($product['price']) { ?>
        <div class="price">
          <?php if (!$product['special']) { ?>
          <div class="price-only"><?php echo $product['price']; ?></div>
          <?php } else { ?>
          <span class="price-old"><?php echo $product['price']; ?></span><br /> <span class="price-new"><?php echo $product['special']; ?></span>
          <?php } ?>
        </div>
        <?php } ?>
        <div class="cart"><input type="image" src="catalog/view/theme/default/image/add2basket.png" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');"/></div>
		<div id="short-dis"><?php echo $product['description']; ?></div>
		<div style="clear:both;"></div>
		<div class="prod-footer">
		<div class="rating"><span>Рейтинг</span> <img style="width: 85px;" src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
		<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');" title="<?php echo $button_compare; ?>"><?php echo $button_compare; ?></a></div>
		
		</div>
		<?php if ($product['special']) { ?>
		<div class="economy-wrapper">Выгода <?php echo $product['economy']; ?></div>
		<?php } ?>
      </div>	  
      <?php } ?>
    </div>
  </div>
</div>
