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

AndP

Newbie
  
  • Posts

    5
  • Joined

  • Last visited

About AndP

  • Birthday December 14

Information

  • Gender
    Мужчина
  • City:
    Пермь

AndP's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. Все, спасибо, разобрался. В \catalog\controller\product\product.php добавил код: $data['text_weight'] = $this->language->get('text_weight'); $data['weight'] = number_format($product_info['weight'], 0).''.$this->weight->getUnit($product_info['weight_class_id']); и в \catalog\view\theme\default\template\product\product.twig добавил такой код: <li>{{ weight }}</li> Может кому надо будет
  2. Все понял, это в корзине меняется вес, без нулей становится. А тогда где надо рыть, чтобы именно в карточке товара выводило так же без нулей лишних?
  3. Изменения тут вносил: system\library\cart\weight.php А вывод веса в самой карточке товара
  4. Извиняюсь, случайно не тот путь написал) да я по этому пути изменения вносил в файл. У меня в граммах все, поэтому ничего страшного не будет. Но попробовал так сделать, модификатор обновил, все равно вес показывает с кучей нулей, выводит так же 400.00000000
  5. Как убрать нули в весе? Сейчас допустим 400г, выводит как 400.00000000 Открыл файл по адресу \catalog\controller\product\product.php Там изменил строчки: return number_format($value, 0, $decimal_point, $thousand_point) . ' ' . $this->weights[$weight_class_id]['unit']; return number_format($value, 0, $decimal_point, $thousand_point); 2 поменял на 0, как было и сказано в других темах, но все равно выводит после точки нули
Guest
×
  • 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.