Commit 09b09a77 by lmf

修复描述多余显示

parent a2c61f71
......@@ -41,7 +41,12 @@ if ($_attributeType && $_attributeType == 'text') {
? $_product->getAttributeText($_code)
: '';
} else {
$_attributeValue = $_helper->productAttribute($_product, $_product->$_call(), $_code);
if($_code == "short_description"){
$_attributeValue = "";
}else{
$_attributeValue = $_helper->productAttribute($_product, $_product->$_call(), $_code);
}
}
?>
......
......@@ -21,7 +21,8 @@
<table class="data table additional-attributes" id="product-attribute-specs-table">
<caption class="table-caption"><?= $block->escapeHtml(__('More Information')) ?></caption>
<tbody>
<?php foreach ($_additional as $_data) :?>
<?php
foreach ($_additional as $_data) :?>
<tr>
<th class="col label" scope="row"><?= $block->escapeHtml($_data['label']) ?></th>
<td class="col data" data-th="<?= $block->escapeHtmlAttr($_data['label']) ?>"><?= /* @noEscape */ $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment