Y
Y
Yaroslava2019-03-26 20:12:04
1C-Bitrix
Yaroslava, 2019-03-26 20:12:04

How to remove the Details button in the Bitrix product card?

There is a product card. It finds a description, which consists of a short and complete. Initially, only a short one is displayed, in order to see the full one, you must click More details. How to remove the Details button, so that the product description is complete initially.
I found this in catalog.item, tried to change it somehow, but it doesn't work.

<div class="product-descr" data-value="description" itemprop="description">
    <p class="product-descr__text"> <?=$arResult["PREVIEW_TEXT"]?></p>
    <div class="product-descr__more-block">
      <p class="more-block__text"><?=$arResult["DETAIL_TEXT"]?></p>
    </div>
    <?if ($arResult["DETAIL_TEXT"]) {?>
    <a class="product-descr__more" href="#" aria-label="подробнее">подробнее
      <svg class="product-descr__more__icon" viewBox="0 0 8 8" width="8px" height="8px">
        <rect y="3" width="8" height="2"/>
        <rect class="plus-vertical" y="3" transform="matrix(4.501980e-011 1 -1 4.501980e-011 8 -1.809886e-010)" width="8" height="2"/>
      </svg>
    </a>
    <?}?>
  </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Proger, 2019-04-27
@freekirill

<div class="product-descr" data-value="description" itemprop="description">
    <p class="product-descr__text"> <?=$arResult["DETAIL_TEXT"]?></p>
 </div>

You can leave it like this and only the full description will be displayed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question