如何在opencart的产品页面中添加没有任何扩展名的额外标签 可能这是额外标签的代码任何一个帮助?问候
<div class="tabs-group"> <div id="tabs" class="htabs clearfix"><a href="#tab-description">Delivery </a>
<?php if ($attribute_groups) { ?>
<a href="#tab-attribute"><?php echo $tab_attribute; ?></a>
<?php } ?>
<?php if ($review_status) { ?>
<a href="#tab-review"><?php echo $tab_review; ?></a>
<?php } ?>
<?php if( $productConfig['enable_product_customtab'] && isset($productConfig['product_customtab_name'][$languageID]) ) { ?>
<a href="#tab-customtab"><?php echo $productConfig['product_customtab_name'][$languageID]; ?></a>
<?php } ?>
</div>
<div id="tab-description" class="tab-content"><?php echo $description; ?></div>
<?php if ($attribute_groups) { ?>
<div id="tab-attribute" class="tab-content">
<table class="attribute">
<?php foreach ($attribute_groups as $attribute_group) { ?>
<thead>
<tr>
<td colspan="2"><?php echo $attribute_group['name']; ?></td>
</tr>
</thead>
<tbody>
<?php foreach ($attribute_group['attribute'] as $attribute) { ?>
<tr>
<td><?php echo $attribute['name']; ?></td>
<td><?php echo $attribute['text']; ?></td>
</tr>
<?php } ?>
</tbody>
<?php } ?>
</table>
</div>
<?php } ?>
可能这是额外标签的代码任何一个帮助?问候
答案 0 :(得分:1)
添加div div =&#34;标签&#34;的链接href到您的自定义标签的ID
<div class="tabs-group">
<div id="tabs" class="htabs clearfix">
<a href="#tab-description">Delivery </a>
<a href="#tab-my-tab">My Tab</a> //Your custom tab
....
然后在
之后添加制表符div<div id="tab-description" class="tab-content"><?php echo $description; ?></div>
<div id="tab-my-tab" class="tab-content">Your html content goes here</div>