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

Удалить Краткое описание шаблон Fastfood


Recommended Posts

В каком файле удалить краткое описание к этому шаблону, только стили не удаляют в л.с. могу сбросить ссылку на сайт. Нужна просто помощь, исполнитель не интересует! 

Удалить.png

Link to comment
Share on other sites


В файле /catalog/view/theme/fastfood/template/product/product.tpl этот код надо редактировать:

<div class="description">
	<div><span><?php echo $text_description; ?></span><?php echo utf8_substr(strip_tags(html_entity_decode($description, ENT_QUOTES, 'UTF-8')), 0, 199); ?>... <?php if(mb_strlen($description,'utf-8') > 199) { ?><a onclick="scroll_to('#tabs')">Подробнее</a><?php } ?></div>
	<?php if ($weight) { ?><div><span><?php echo $text_weight; ?></span><span class="weight_<?php echo $product_id; ?>" data-weight="<?php echo $weight_value; ?>" data-weight-unit="<?php echo $weight_unit; ?>"><?php echo $weight; ?></span></div><?php } ?>
	</div>

Если надо подробнее:

<span><?php echo $text_description; ?></span>

Выводит текст из языкового файла, в вашем случае: Краткое описание:

<?php echo utf8_substr(strip_tags(html_entity_decode($description, ENT_QUOTES, 'UTF-8')), 0, 199); ?>

Делает из полного описания - обрезанное и выводит, можно заменить на просто:

<?php echo $description; ?>

будет полное описание.

<?php if(mb_strlen($description,'utf-8') > 199) { ?><a onclick="scroll_to('#tabs')">Подробнее</a><?php } ?>

Если полное описание больше краткого, то выводится ссылка Подробнее: , для скрола к вкладке с описанием.

<?php if ($weight) { ?><div><span><?php echo $text_weight; ?></span><span class="weight_<?php echo $product_id; ?>" data-weight="<?php echo $weight_value; ?>" data-weight-unit="<?php echo $weight_unit; ?>"><?php echo $weight; ?></span></div><?php } ?>

Ну а это выводит вес в карточку товара.

  • +1 1
Link to comment
Share on other sites


1 час назад, mstu сказал:

В каком файле удалить краткое описание к этому шаблону, только стили не удаляют в л.с. могу сбросить ссылку на сайт. Нужна просто помощь, исполнитель не интересует! 

Удалить.png

файл "catalog/view/theme/fastfood/template/product/product.tpl"

Link to comment
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
 Share

×
×
  • 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.