[Помогите] Переместить елемент

Тема в разделе "OpenCart", создана пользователем Vintage, 18 ноя 2015.

  1. Vintage

    Vintage

    Регистрация:
    31 мар 2013
    Сообщения:
    237
    Симпатии:
    39
    Какую часть кода переместить и после какой строки вставить чтобы отображалось вот так:
    [​IMG]

    PHP:
    <?php $product_images $this->model_catalog_product->getProductImages$product['product_id'] );?>
    <div class="product-block">
        <!-- Start thumb img-->
        <?php if (!empty($product_images)): ?>
        <div class="thumb_more_info" rel="<?php echo $product['product_id'];?>">
            <div class="view_block">
                <div class="thumbs_list thumbs_list_<?php echo $product['product_id'];?>">
                    <ul class="thumbs_list_frame">
                        <li class="first">
                            <a href="javascript:void(0);">
                                <img src="<?php echo $product['thumb']; ?>" width="73" height="35" rel="<?php echo $product['thumb'];?>" class="pav-hover-image">
                            </a>
                        </li>
                        <?php foreach ($product_images as $item):?>
                      
                        <li>
                            <a href="javascript:void(0);">
                                <?php if(isset($type_product) && ($type_product == 'special')) {?>
                                <img src="<?php echo $this->model_tool_image->resize($item['image'], 7535); ?>" rel="<?php echo $this->model_tool_image->resize($item['image'], $width$height); ?>" class="pav-hover-image">
                                <?php } else { ?>
                                <img src="<?php echo $this->model_tool_image->resize($item['image'], 7535); ?>" rel="<?php echo $this->model_tool_image->resize($item['image'], $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height')); ?>" class="pav-hover-image">
                                <?php ?>
                            </a>
                        </li>
                        <?php endforeach ?>
                    </ul>
                </div>
            </div>

            <?php  if(count($product_images) > 3):?>
            <a class="view_scroll_left view_scroll_left_<?php echo $product['product_id'];?>" rel="<?php echo $product['product_id'];?>" href="javascript:void(0);"><em class="fa fa-chevron-up"></em></a>
            <a class="view_scroll_right view_scroll_right_<?php echo $product['product_id'];?>" rel="<?php echo $product['product_id'];?>" href="javascript:void(0);"><em class="fa fa-chevron-down"></em></a>
            <?php endif; ?>

        </div>
        <?php endif ?>
        <!-- End thumb img-->

        <?php if ($product['thumb']) { ?>
        <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
        <div class="image">
            <?php if( $product['special'] )  { ?>        
                <span class="product-label-special"><span><?php echo $this->language->get'text_sale' ); ?></span></span>
            <?php ?>
          
            <?php if($config_category_show_manufacturer_image): ?>
    <div class="manufacturer">
      <a href="<?php echo $product['manufacturer_link'?>">
        <img src="<?php echo $product['mimage'?>" alt="<?php echo $product['manufacturer'?>">
      </a>
    </div>
    <?php endif ?>

            <a href="<?php echo $product['href']; ?>" class="product_image">
                <img data-rel="<?php echo $product['thumb']; ?>" src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" />
            </a>

            <?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') );
            
    ?>  
                <div class="faceback hidden-xs hidden-sm">
                    <a class="img back" href="<?php echo $product['href']; ?>">
                        <img src="<?php echo $thumb2?>" <img src="<?php echo $thumb2?>">
                    </a>
                </div>  
            <?php } } ?>
              
        </div>
        <?php ?>

        <div class="product-meta">  
            <div class="product-price">
                <?php if ($product['price']) { ?>
                <div class="price">
                  <?php if (!$product['special']) { ?>
                  <?php echo $product['price']; ?>
                  <?php } else { ?>
                
                  <span class="price-new"><?php echo $product['special']; ?></span>
                  <span class="price-old"><?php echo $product['price']; ?></span> 
                  <?php ?>
                </div>
                <?php ?>
              
                <?php if ($product['rating']) { ?>
                <div class="rating"><img src="catalog/view/theme/<?php echo $this->config->get('config_template');?>/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
                <?php ?>
                                      
            </div>  
            <div class="product-detail">          
                <div class="description">
                    <?php echo utf8_substrstrip_tags($product['description']),0,58);?>...
                </div>
              
                <div class="product-hover">
                    <div class="addcart">
                        <a onclick="addToCart('<?php echo $product['product_id']; ?>');"><span><?php echo $button_cart?></span><i class="fa fa-plus-circle"></i></a>
                    </div>
                    <div class="box-button">
                        <div class="wishlist"><a data-tooltip="<?php echo $this->language->get("button_wishlist"); ?>" onclick="addToWishList('<?php echo $product['product_id']; ?>');"><span><?php echo $this->language->get("button_wishlist"); ?></span><i class="fa fa-heart"></i></a></div>
                        <div class="compare"><a data-tooltip="<?php echo $this->language->get("button_compare"); ?>" onclick="addToCompare('<?php echo $product['product_id']; ?>');"><span><?php echo $this->language->get("button_compare"); ?></span><i class="fa fa-refresh"></i></a></div>
                        <?php if ($quickview) { ?>
                        <div class="quick-view"><a data-tooltip="<?php echo $this->language->get('quick_view'); ?>" class="pav-colorbox cboxElement" href="index.php?route=themecontrol/product&amp;product_id=<?php echo $product['product_id']; ?>">
                                <span><?php echo $this->language->get('quick_view'); ?></span><i class="fa fa-eye"></i></a></div>      
                        <?php ?>
                    </div>
                </div>  
            </div>
        </div>  
    </div>
     
  2. Dotrox

    Dotrox Команда форума

    Регистрация:
    27 ноя 2012
    Сообщения:
    2.044
    Симпатии:
    775
    PHP:
    <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
    Поставить перед <div class="product-meta">
     
    Vintage нравится это.