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

Запятая в ДШВ категории

Recommended Posts

Не могу понять где убрать запятую в ДШВ чтобы она не отображалась в категории, все перерыл но не получается убрать эту дурацкую запятую.

В карточке товара ее нету а вот в категории висит.

Вот что было добавлено ранее в файлах


1) catalog/controller/product/category.php

'length'      => number_format($result['length']) .$this->length->getUnit($result['length_class_id']),
'width'       => number_format($result['width']) .$this->length->getUnit($result['length_class_id']),
'height'      => number_format($result['height']) .$this->length->getUnit($result['length_class_id']),

2) catalog/view/theme/default/template/product/category.tpl

<?php if($product['length'] && $product['width'] && $product['height'] > 0) { ?>
<?php echo $text_dimensions; ?>
<?php echo $product['length']; ?>
<?php echo $text_by; ?>
<?php echo $product['width']; ?>
<?php echo $text_by; ?>
<?php echo $product['height']; ?>
<?php } ?>

3) в файле  system/library/length.php убрал запятую

public function format($value, $length_class_id, $decimal_point = '', $thousand_point = '') {


Скрин категории




Скрин карточки товара


Link to post
Share on other sites

Что не кто не сталкивался и не выводил ДШВ в категории?

Link to post
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
  • 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.