Jump to content

Mettre le bloc reassurance dans un onglet nav-tabs


Gavimse

Recommended Posts

Bonjour,

Je souhaite modifier l'emplacement du bloc reassurance. J'aimerais le mettre en bas de mon produit, dans un onglet (comme pour description, pièces jointes, ...)

J'ai commencé à modifier product.tpl pour y ajouter un onglet supplémentaire nommé "Réassurance". Je ne maitrise pas bien le php, je ne sais pas quoi mettre dans le href ni le aria-controls. Voici où j'e suis : Pouvez-vous m'aider?
 

Quote

 

<ul class="nav nav-tabs" role="tablist">
                  {if $product.description}
                    <li class="nav-item">
              <a class="nav-link{if $product.description} active{/if}" data-toggle="tab" href="#description" role="tab" aria-controls="description" {if $product.description} aria-selected="true"{/if}>{l s='Description' d='Shop.Theme.Catalog'}</a>
                    </li>
                  {/if}
                    <li class="nav-item">
              <a class="nav-link" data-toggle="tab" href="#" role="tab" aria-controls="description">{l s='Reassurance' d='Shop.Theme.Catalog'}</a>
                    </li>
                  {if $product.attachments}
                    <li class="nav-item">
              <a class="nav-link" data-toggle="tab" href="#attachments" role="tab" aria-controls="attachments">{l s='Attachments' d='Shop.Theme.Catalog'}</a>
                    </li>
                  {/if}
                  {foreach from=$product.extraContent item=extra key=extraKey}
                    <li class="nav-item">
              <a class="nav-link" data-toggle="tab" href="#extra-{$extraKey}" role="tab" aria-controls="extra-{$extraKey}">{$extra.title}</a>
                    </li>
                  {/foreach}

      {block name='product_comment_tab'}
        {capture name='displayProductTab'}{hook h='displayProductTab'}{/capture}
        {if $smarty.capture.displayProductTab}
          {$smarty.capture.displayProductTab nofilter}
        {/if}
      {/block}

                </ul>

 

 

rea1.PNG

rea2.PNG

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...