如何在opencart的产品页面中添加不带任何扩展的额外选项卡

如何在opencart的产品页面中添加不带任何扩展的额外选项卡,opencart,Opencart,如何在opencart的产品页面中添加不带任何扩展的额外选项卡 可能这是额外选项卡的代码有任何帮助吗?问候 <div class="tabs-group"> <div id="tabs" class="htabs clearfix"><a href="#tab-description">Delivery </a> <?php if ($attribute_groups) { ?> <a href="

如何在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 } ?>

可能这是额外选项卡的代码有任何帮助吗?关于

添加指向div id=“tabs”的链接,并在自定义选项卡的id中添加href

<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 } ?>
 <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>

你的html内容在这里

您的选项卡可能包含哪些类型的数据,即静态或动态数据。