0
dl listを使用して大きな属性テーブルを2つの別々の列に分割したいと考えています。 Opencartバージョン2.2.0.0Opencartの2つの列で奇数/偶数で属性グループを分割
コードは(/view/theme/default/template/product/product.tplに)ある:
<?php if ($attribute_groups) { ?>
<div class="tab-pane tab-content <?php if ($is_active) { echo 'active'; $is_active = false; } ;?>" id="tab-specification">
<dl>
<?php foreach ($attribute_groups as $attribute_group) { ?>
<p><strong><?php echo $attribute_group['name']; ?></strong></p>
<?php foreach ($attribute_group['attribute'] as $attribute) { ?>
<dt><?php echo $attribute['name']; ?></dt>
<dd><?php echo $attribute['text']; ?></dd>
<?php } ?>
<?php } ?>
</dl>
</div>
<?php } ?>
任意のアイデア? ありがとうございます。
ありがとうございました! – Aaviya