A
A
Anton2016-12-10 16:15:21
PHP
Anton, 2016-12-10 16:15:21

How to add such a button?

Hello, can you tell me how to add another button like this? opencart template.
0a7746edf21d42b7814fe31b20d5e3b8.PNG
Found in the template file

<ul class="nav nav-tabs">
            <li class="active"><a href="#tab-description" data-toggle="tab"><?php echo $tab_description; ?></a></li>
            <?php if ($attribute_groups) { ?>
            <li><a href="#tab-specification" data-toggle="tab"><?php echo $tab_attribute; ?></a></li>
            <?php } ?>
            <?php if ($review_status) { ?>
            <li><a href="#tab-review" data-toggle="tab"><?php echo $tab_review; ?></a></li>
            <?php } ?>
          </ul>

And then the element that displays the contents of the buttons
<div class="tab-content">
Help me figure it out if it's not difficult.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
game802, 2016-12-10
@boypush

<ul class="nav nav-tabs">
  <li class="active"><a href="#tab-description" data-toggle="tab"><?php echo $tab_description; ?></a></li>
  <?php if ($attribute_groups) { ?>
  <li><a href="#tab-specification" data-toggle="tab"><?php echo $tab_attribute; ?></a></li>
  <?php } ?>
  <?php if ($review_status) { ?>
  <li><a href="#tab-review" data-toggle="tab"><?php echo $tab_review; ?></a></li>
  <?php } ?>
  <?php if ($тут_имя_переменной) { ?>
  <li><a href="#tab-название-таба" data-toggle="tab"><?php echo $тут_имя_переменной; ?></a></li>
  <?php } ?>
</ul>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question