Post by ratmix » Fri Aug 18, 2017 8:21 pm

Salutare dragi colegi,

Am o intrebare la voi... cum se poate face, sau daca exista vre-un modul, care sa mute atributele in acelasi tab cu descrierea (sa apara sub descriere)

Multumesc anticipat!

Newbie

Posts

Joined
Sat Jan 05, 2013 5:51 pm

Post by florinsith » Sat Aug 26, 2017 3:06 pm

Este o simpla problema de mutare cod in catalog/view/theme/tema-ta/template/product.tpl
codul:

Code: Select all

<?php if ($attribute_groups) { ?>
            <li><a href="#tab-specification" data-toggle="tab"><?php echo $tab_attribute; ?></a></li>
            <?php } ?>
il stergi.
codul:

Code: Select all

<?php if ($attribute_groups) { ?>
            <div class="tab-pane" id="tab-specification">
              <table class="table table-bordered">
                <?php foreach ($attribute_groups as $attribute_group) { ?>
                <thead>
                  <tr>
                    <td colspan="2"><strong><?php echo $attribute_group['name']; ?></strong></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 } ?>
il modifici in

Code: Select all

<?php if ($attribute_groups) { ?>
              <table class="table table-bordered">
                <?php foreach ($attribute_groups as $attribute_group) { ?>
                <thead>
                  <tr>
                    <td colspan="2"><strong><?php echo $attribute_group['name']; ?></strong></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>
            <?php } ?>
si il pui imediat dupa

Code: Select all

<div class="tab-pane active" id="tab-description"><?php echo $description; ?>
(inainte de acel </div> de pe aceeasi linie)

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Who is online

Users browsing this forum: No registered users and 8 guests