Jump to content

Ürün açıklama bölümünü tam ekrana yayma 1.7 (Çözüldü)


Recommended Posts

  • 1 month later...

Hallettim burada da paylaşayımda başkaları da faydalansın.

 

 

 /themes/classic/templates/catalog/product.tpl. 
Ne olur ne olmaz dosyanın yedeğini almayı unutmayın.
satırları 141 den,  252 ye kadar silin (sayfa sonuna kadar)

ve aşağıdaki kodu 141 den itibaren yapıştırın.

</div>

{block name='hook_display_reassurance'}
{hook h='displayReassurance'}
{/block}


</div>
</div>
</div>
</div>
{block name='product_tabs'}
<div class="tabs">
<ul class="nav nav-tabs">
{if $product.description}
<li class="nav-item">
<a class="nav-link{if $product.description} active{/if}" data-toggle="tab" href="#description">
{l s='Description' d='Shop.Theme.Catalog'}
</a>
</li>
{/if}
<li class="nav-item">
<a class="nav-link{if !$product.description} active{/if}" data-toggle="tab" href="#product-details">
{l s='Product Details' d='Shop.Theme.Catalog'}
</a>
</li>
{if $product.attachments}
<li class="nav-item">
<a class="nav-link" 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}
</ul>

<div class="tab-content" id="tab-content">
<div class="tab-pane fade in{if $product.description} active{/if}" id="description">
{block name='product_description'}
<div class="product-description">{$product.description nofilter}</div>
{/block}
</div>

{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" id="attachments">
<section class="product-attachments">
<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}
</div>
{/block}
{foreach from=$product.extraContent item=extra key=extraKey}
<div class="tab-pane fade in {$extra.attr.class}" id="extra-{$extraKey}" {foreach $extra.attr as $key => $val} {$key}="{$val}"{/foreach}>
{$extra.content nofilter}
</div>

{/foreach}
{block name='product_accessories'}
{if $accessories}
<section class="product-accessories clearfix">
<h3 class="h5 text-uppercase">{l s='You might also like' d='Shop.Theme.Catalog'}</h3>
<div class="products">
{foreach from=$accessories item="product_accessory"}
{block name='product_miniature'}
{include file='catalog/_partials/miniatures/product.tpl' product=$product_accessory}
{/block}
{/foreach}
</div>
</section>
{/if}
{/block}

{block name='product_footer'}
{hook h='displayFooterProduct' product=$product category=$category}
{/block}

{block name='product_images_modal'}
{include file='catalog/_partials/product-images-modal.tpl'}
{/block}

{block name='page_footer_container'}
<footer class="page-footer">
{block name='page_footer'}
<!-- Footer content -->
{/block}
</footer>
{/block}
</section>

{/block}

 

Screenshot_1.jpg

Screenshot_2.jpg

Edited by atakan_cevik (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 5 months later...

Merhaba ;

bende tam bunu arıyordum söylediğiniz düzenlemeyi yaptım ama sayfada bi değişiklik olmadı nerede hata yapıyor olabilirim acaba ,yardımcı olabilirimisiniz ?

Farklı birşeyler daha yapmış olabilirmisiniz benim kullandığım sürüm 1.7.3.0 bu arada,sürüm farkı olabilirmi ?

 

 

Link to comment
Share on other sites

  • 3 years later...
  • 4 weeks later...
  • 8 months later...

Bu gibi değişikliklerde Gelişmiş parametreler -> Performans -> Şablon derlemeyi kontrol etmeyi unutmayın. Değişiklikleri görmek için bu değeri "Derlemeyi zorla" olarak ayarlamalısınız.. 

Link to comment
Share on other sites

  • 6 months 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...