Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Как убрать рейтинг (звездочки) из карточки товара?


Recommended Posts

  • 7 years later...

Актуальный вопрос для опенкарт 2.xx. Где и что править, что бы убрать звезды рейтинга в малой карточке товара на витрине?

Link to comment
Share on other sites


"в малой карточке товара на витрине" в дефолтной теме звезд нет. Не видя вашу тему, можно только гадать, как их у вас убрать 

  • +1 1
Link to comment
Share on other sites


1 час назад, Shureg сказал:

"в малой карточке товара на витрине" в дефолтной теме звезд нет. Не видя вашу тему, можно только гадать, как их у вас убрать 

 звезды появляются, когда покупатель пишет отзыв.... А так их нет, если нет отзывов на товар. Хочу, чтобы отзывы были а звезды убрать.

Link to comment
Share on other sites


2 часа назад, zvod7 сказал:

 звезды появляются, когда покупатель пишет отзыв.... А так их нет, если нет отзывов на товар. Хочу, чтобы отзывы были а звезды убрать.

Вам же ответили, что без ссылки на сайт и информации о шаблоне, вряд-ли смогут помочь.

  • +1 1
Link to comment
Share on other sites

                <?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 } ?>

вырезайте из catalog\view\theme\default\template\product\category.tpl  если дефолтная тема.

  • +1 1
Link to comment
Share on other sites


8 часов назад, Shureg сказал:

вырезайте из catalog\view\theme\default\template\product\category.tpl  если дефолтная тема.

убрал - звезды остались

http://ztip.pp.ua/index.php?route=product/category&path=59&rdrf[man][]=17&rdrf[attr][12][]=3%2C00&rdrf[attr][12][]=5%2C00

Edited by zvod7
Link to comment
Share on other sites


16 минут назад, zvod7 сказал:

убрал - звезды остались

Я вам написал - "если дефолтная тема". У вас тема ни разу не дефолтная. Вырезать надо в другом файле и, скорее всего, другой код. 
ЗЫ: Хотя, вроде все-таки дефолтная допиленая. 
Добавьте в стили в конец файла /catalog/view/theme/default/stylesheet/stylesheet.css

.product-thumb .rating {
    display: none;
}

При просмотре очистите кэш браузера, иначе не увидите изменений

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


О!! Спасибо всем... Всем плюсую. Правильно - это убрать

               <?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 } ?>

И обязательно обновляем модификаторы......!!!!

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

×
×
  • 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.