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

AndP

Новичок
  
  • Posts

    5
  • Joined

  • Last visited

About AndP

  • Birthday December 14

Информация

  • Пол
    Мужлина
  • Город:
    Пермь

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, как было и сказано в других темах, но все равно выводит после точки нули
×
×
  • 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.