V
V
viktorulyushev2017-02-22 10:27:25
1C-Bitrix
viktorulyushev, 2017-02-22 10:27:25

Bitrix. How to remove unnecessary?

Here is the code

<div class="bx_catalog_item_price">
    <div id="<? echo $arItemIDs['PRICE']; ?>" class="bx_price"><?
      if (!empty($arItem['MIN_PRICE']))
      {
        if (isset($arItem['OFFERS']) && !empty($arItem['OFFERS']))
        {
          echo GetMessage(
            'CVP_TPL_MESS_PRICE_SIMPLE_MODE',
            array(
              '#PRICE#' => $arItem['MIN_PRICE']['PRINT_DISCOUNT_VALUE'],
              '#MEASURE#' => GetMessage(
                'CVP_TPL_MESS_MEASURE_SIMPLE_MODE',
                array(
                  '#VALUE#' => $arItem['MIN_PRICE']['CATALOG_MEASURE_RATIO'],
                  '#UNIT#' => $arItem['MIN_PRICE']['CATALOG_MEASURE_NAME']
                )
              )
            )
          );
        }
        else
        {
          echo $arItem['MIN_PRICE']['PRINT_DISCOUNT_VALUE'];
        }
        if ('Y' == $arParams['SHOW_OLD_PRICE'] && $arItem['MIN_PRICE']['DISCOUNT_VALUE'] < $arItem['MIN_PRICE']['VALUE'])
        {
          ?> <span style="color: #a5a5a5;font-size: 12px;font-weight: normal;white-space: nowrap;text-decoration: line-through;"><? echo $arItem['MIN_PRICE']['PRINT_VALUE']; ?></span><?
        }
      }
      ?></div>
  </div>

generates such a price
from 16 713.50 ₽ for 33 427 ₽
I don’t understand how to remove the words from and for
This is the code that comes to the editor
<div class="bx_catalog_item_price">
    <div id="bx_1182278561_5454_price" class="bx_price">от 28 922.50 ₽ за   <span style="color: #a5a5a5;font-size: 12px;font-weight: normal;white-space: nowrap;text-decoration: line-through;">57 845 ₽</span></div>
  </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2017-02-22
@viktorulyushev

most likely these lines are in the language files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question