Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Цена наезжает на кнопку "купить"


Recommended Posts

4 минуты назад, Wiwanw сказал:

Подскажите в каких файлах и что нужно исправить, чтобы этона не наезжала на кнопку "купить" ?

Версия ocStore 2.3.0.2.3

 

 

В CSS...

Вам надо сократить длину наименования товара средствами CSS, липотому что "приподнять" область, ггде располагается это наименование.

Но по по картинкам икое гделают только хироманты и футурологи, поэтому давайте ссылку и Вам тут, навернкака, помогут)

  • +1 1
Link to comment
Share on other sites


31 минуту назад, Wiwanw сказал:

Подскажите в каких файлах и что нужно исправить, чтобы этона не наезжала на кнопку "купить" ?

Версия ocStore 2.3.0.2.3

 

а я себе подклюлил JS библиотеку. Она выравнивает все колонки (в прегделах строки). в итоге все выглядит красиво. 
Посмотри - https://brm.io/jquery-match-height/

  • +1 2
Link to comment
Share on other sites


Не знаю точно какой файл в модуле похожих товаров отвечает за вывод этих данных. Но врогде этот. Посмотрите код.

 

<h3><?php echo $heading_title; ?></h3>
<div class="row">
  <?php foreach ($products as $product) { ?>
  <div class="product-layout col-lg-3 col-md-3 col-sm-6 col-xs-12">
    <div class="product-thumb transition">
      <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" /></a></div>
      <div class="caption">
        <h4><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4>
        <p><?php //echo $product['description']; ?></p>
        <?php if ($product['rating']) { ?>
        <div class="rating">
          <?php for ($i = 1; $i <= 5; $i++) { ?>
          <?php if ($product['rating'] < $i) { ?>
          <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
          <?php } else { ?>
          <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>
          <?php } ?>
          <?php } ?>
        </div>
        <?php } ?>
        <?php if ($product['price']) { ?>
        <p 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 } ?>
          <?php if ($product['tax']) { ?>
          <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
          <?php } ?>
        </p>
        <?php } ?>
      </div>
      <div class="button-group">
        <button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button>
        <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button>
        <button type="button" data-toggle="tooltip" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-exchange"></i></button>
      </div>
    </div>
  </div>
  <?php } ?>
<style>
  .product-thumb .caption {
    min-height: 80px;
}
</style>
</div>

 

 

Вот ггде видна проблема.

https://100form.by/pigmenty-i-krasiteli/pasta-pigmentnaya-chernaya-4195.html

 

 

Link to comment
Share on other sites


В файлах стилей Вашей темы (если нет в настройках в админке у темы кастомной всивки для CSS) /public_html/catalog/view/theme/ТЕМА/stylesheet/stylesheet.css в самом конэто посивьте .product-thumb .caption {min-height: 110px;}

 

UPD А у Вас Революшн, в настройках темы посмотрите есть окно для вствки своего кода.

 

Edited by specialforce22
  • +1 1
Link to comment
Share on other sites


Всё справился. Как раз в том когде, что я скидывал выше поменял как и говорил specialforce22  (за что огромное спасипотому что)

  

 

product-thumb .caption {
    min-height: 80px;
}

 

на

 

 .product-thumb .caption {
    min-height: 110px;

 

Посмотрел куда этот файл загружается при усиновке модуля.

 

Всех благодарю за участие! Вопрос закрыт.

 

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.