Jump to content

Zmiana 2 bloków pod produktem


KamilPL

Recommended Posts

Witam,

Trzeba edytować plik szablonu w poniższej ścieżce za pomocą FTP:
katalog_prestashop > themes > nazwa_szablonu > templates > catalog > product.tpl

Prosze edytować plik product.tpl i odnaleźć znacznik 

<div class="tabs">

Między tym znacznikiem trzeba zmienić pozycję zakładek :). 
 

Link to comment
Share on other sites

To nie takie proste. Przestawiam miejscami div lub <li> i nic się nie zmienia.

Jak na moje oko odpowiada za to if:

 {if $product.condition || isset($product.reference_to_display) || $product.show_quantities || $product.availability_date || $product.minimal_quantity > 1 || $product.features || isset($product.specific_references)}
             

Pomożecie zmienić miejscami #product-details z #description

Mój kod tego pliku product.tpl :

    {block name='product_tabs'}
         <div class="more-info">
           <ul class="nav nav-tabs_alternative">
             {if $product.description}
             <li class="nav-item">
               <a class="more-info-tab nav-link active" data-toggle="tab" href="#description">
                 {l s='Description' d='Shop.Theme.Catalog'}
               </a>
             </li>
             {/if}
            {if $product.condition || isset($product.reference_to_display) || $product.show_quantities || $product.availability_date || $product.minimal_quantity > 1 || $product.features || isset($product.specific_references)}
             <li class="nav-item">
               <a class="data-sheet-tab nav-link{if !$product.description} active{/if}" data-toggle="tab" href="#product-details">
                 {l s='Product Details' d='Shop.Theme.Catalog'}
               </a>
             </li>
             {/if}
             {if $product.attachments}
             <li class="nav-item">
               <a class="nav-link{if !$product.condition && !isset($product.reference_to_display) && !$product.show_quantities && !$product.availability_date && !$product.minimal_quantity > 1 && !$product.features && !isset($product.specific_references) && !$product.description} active{/if}" data-toggle="tab" href="#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}">{$extra.title}</a>
             </li>
             {/foreach}
             {if $accessories}
            <li class="nav-item">
               <a class="nav-link" data-toggle="tab" href="#accessories">{l s='Accessories' d='Shop.Interiorcatalog'}</a>
             </li>
             {/if}
            {block name='product_tab'}
                {hook h='productTab'}
            {/block}
           </ul>

           <div class="tab-content" id="tab-content">
           {if $product.description}
            <div class="tab-pane fade in active" id="description">
              {block name='product_description'}
                <div class="product-description tab-pane-inner rte">{$product.description nofilter}</div>
              {/block}
            </div>
            {/if}
            {block name='product_details'}
              {include file='catalog/_partials/product-details.tpl'}
            {/block}

            {block name='product_attachments'}
              {if $product.attachments}
               <div class="tab-pane fade in{if !$product.condition && !isset($product.reference_to_display) && !$product.show_quantities && !$product.availability_date && !$product.minimal_quantity > 1 && !$product.features && !isset($product.specific_references) && !$product.description} active{/if}" id="attachments">
                  <section class="product-attachments tab-pane-inner">
                    <h3 class="h5 text-uppercase">{l s='Download' d='Shop.Theme.Actions'}</h3>
                    {foreach from=$product.attachments item=attachment}
                      <div class="attachment">
                        <h4><a href="{url entity='attachment' params=['id_attachment' => $attachment.id_attachment]}">{$attachment.name}</a></h4>
                        <p>{$attachment.description}</p
                        <a href="{url entity='attachment' params=['id_attachment' => $attachment.id_attachment]}">
                          {l s='Download' d='Shop.Theme.Actions'} ({$attachment.file_size_formatted})
                        </a>
                      </div>
                    {/foreach}
                  </section>
                </div>
              {/if}
            {/block}

 

Link to comment
Share on other sites

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