如何在opencart的产品页面中添加没有任何扩展名的额外选项卡 [英] how to add extra tab without any extension in product page in opencart

查看:76
本文介绍了如何在opencart的产品页面中添加没有任何扩展名的额外选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在opencart的产品页面中添加没有任何扩展名的额外标签 可能这是额外标签的代码有没有帮助?问候

how to add extra tab without any extension in product page in opencart may be this is the code for extra tabs any one help? regards

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

这可能是多余标签的代码吗?问候

may be this is the code for extra tabs any one help? regards

推荐答案

将带有href的div id ="tabs"链接添加到自定义标签的ID

Add a link to div id="tabs" with a href to your custom tab's 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

Then add your tab div after

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

这篇关于如何在opencart的产品页面中添加没有任何扩展名的额外选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆