DecoMarLub Posted April 21, 2021 Share Posted April 21, 2021 Witam Potrzebuje podpowiedzi jak zmienić, tzn. co i gdzie w szablonie aby opis produktu na karcie produktu znajdował się w miejscu jak na załączonym obrazku Z góry dzięki za odpowiedź Link to comment Share on other sites More sharing options...
0 Canaton Posted April 21, 2021 Share Posted April 21, 2021 W tym miejscu, gdzie chcesz mieć opis znajduje się treść "Podsumowanie", gdy wystawiasz produkt. Daj ten tekst do tej części i będziesz miał tam opisane. Gdy wystawiasz produkt, to tuż pod zdjęciami masz zakładkę Podsumowanie i Opis. Link to comment Share on other sites More sharing options...
0 krzysiek_web Posted April 21, 2021 Share Posted April 21, 2021 Ten tag odpowiada za rozszerzony opis. {$product.description nofilter} Wstaw go gdzieś nad: {block name='hook_display_reassurance'} Po wstawieniu przetestuj działanie a następnie usuń stary kod opisu + dodaj modyfikacje w zakładkach. Link to comment Share on other sites More sharing options...
0 DecoMarLub Posted April 25, 2021 Author Share Posted April 25, 2021 (edited) On 4/21/2021 at 4:14 PM, krzysiuus said: Ten tag odpowiada za rozszerzony opis. {$product.description nofilter} Wstaw go gdzieś nad: {block name='hook_display_reassurance'} Po wstawieniu przetestuj działanie a następnie usuń stary kod opisu + dodaj modyfikacje w zakładkach. Chyba nie rozumiem W którym miejscu znaleźć te tagi i gdzie edytować można troszeczkę jaśniej Edited April 25, 2021 by DecoMarLub (see edit history) Link to comment Share on other sites More sharing options...
0 KamikStudio Posted April 26, 2021 Share Posted April 26, 2021 themes -> twój styl -> templates -> catalog > product.tpl Otwórz Visual Studio Code lub Notepadd++ lub innym edytorem Link to comment Share on other sites More sharing options...
0 DecoMarLub Posted April 27, 2021 Author Share Posted April 27, 2021 W dowolne miejsce {extends file=$layout} {block name='head_seo' prepend} <link rel="canonical" href="{$product.canonical_url}"> {/block} {block name='head' append} <meta property="og:type" content="product"> <meta property="og:url" content="{$urls.current_url}"> <meta property="og:title" content="{$page.meta.title}"> <meta property="og:site_name" content="{$shop.name}"> <meta property="og:description" content="{$page.meta.description}"> <meta property="og:image" content="{$product.cover.large.url}"> <meta property="product:pretax_price:amount" content="{$product.price_tax_exc}"> <meta property="product:pretax_price:currency" content="{$currency.iso_code}"> <meta property="product:price:amount" content="{$product.price_amount}"> <meta property="product:price:currency" content="{$currency.iso_code}"> {if isset($product.weight) && ($product.weight != 0)} <meta property="product:weight:value" content="{$product.weight}"> <meta property="product:weight:units" content="{$product.weight_unit}"> {/if} {/block} {block name='content'} <section id="main" itemscope itemtype="https://schema.org/Product"> <meta itemprop="url" content="{$product.url}"> <div class="row"> <div class="col-md-6"> {block name='page_content_container'} <section class="page-content" id="content"> {block name='page_content'} {block name='product_flags'} <ul class="product-flags"> {foreach from=$product.flags item=flag} <li class="product-flag {$flag.type}">{$flag.label}</li> {/foreach} </ul> {/block} {block name='product_cover_thumbnails'} {include file='catalog/_partials/product-cover-thumbnails.tpl'} {/block} <div class="scroll-box-arrows"> <i class="material-icons left"></i> <i class="material-icons right"></i> </div> {/block} </section> {/block} </div> <div class="col-md-6"> {block name='page_header_container'} {block name='page_header'} <h1 class="h1 product-title" itemprop="name">{block name='page_title'}{$product.name}{/block}</h1> {/block} {/block} <div class="product-information"> {block name='product_description_short'} <div id="product-description-short-{$product.id}" itemprop="description">{$product.description_short nofilter}</div> {/block} {hook h='displayProductListReviews' product=$product} {if $product.is_customizable && count($product.customizations.fields)} {block name='product_customization'} {include file="catalog/_partials/product-customization.tpl" customizations=$product.customizations} {/block} {/if} <div class="product-actions"> {block name='product_buy'} <form action="{$urls.pages.cart}" method="post" id="add-to-cart-or-refresh"> <input type="hidden" name="token" value="{$static_token}"> <input type="hidden" name="id_product" value="{$product.id}" id="product_page_product_id"> <input type="hidden" name="id_customization" value="{$product.id_customization}" id="product_customization_id"> {block name='product_variants'} {include file='catalog/_partials/product-variants.tpl'} {/block} {block name='product_pack'} {if $packItems} <section class="product-pack"> <p class="h4">{l s='This pack contains' d='Shop.Theme.Catalog'}</p> {foreach from=$packItems item="product_pack"} {block name='product_miniature'} {include file='catalog/_partials/miniatures/pack-product.tpl' product=$product_pack} {/block} {/foreach} </section> {/if} {/block} {block name='product_discounts'} {include file='catalog/_partials/product-discounts.tpl'} {/block} {block name='product_prices'} {include file='catalog/_partials/product-prices.tpl'} {/block} {block name='product_add_to_cart'} {include file='catalog/_partials/product-add-to-cart.tpl'} {/block} {block name='product_additional_info'} {include file='catalog/_partials/product-additional-info.tpl'} {/block} {block name='hook_display_reassurance'} {hook h='displayReassurance'} {/block} {* Input to refresh product HTML removed, block kept for compatibility with themes *} {block name='product_refresh'}{/block} </form> {/block} </div> </div> </div> </div> <div class="row product-block-information"> <div class="col-sm-12 product-details"> {block name='product_tabs'} <div class="tabs"> <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{if !$product.description} active{/if}" data-toggle="tab" href="#product-details" role="tab" aria-controls="product-details" {if !$product.description} aria-selected="true"{/if}>{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" 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} {hook h='ProductTab' mod='ishiproductcomments'} </ul> <div class="tab-content" id="tab-content"> <div class="tab-pane fade in{if $product.description} active{/if}" id="description" role="tabpanel"> {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" role="tabpanel"> <section class="product-attachments"> <p class="h5 text-uppercase">{l s='Download' d='Shop.Theme.Actions'}</p> {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} {foreach from=$product.extraContent item=extra key=extraKey} <div class="tab-pane fade in {$extra.attr.class}" id="extra-{$extraKey}" role="tabpanel" {foreach $extra.attr as $key => $val} {$key}="{$val}"{/foreach}> {$extra.content nofilter} </div> {/foreach} {hook h='productTabContent' mod='ishiproductcomments'} </div> {/block} </div> </div> {block name='product_accessories'} {if $accessories} <section class="product-accessories-block clearfix col-sm-12"> <div class="products_block_inner"> <p class="home-title">{l s='You might also like' d='Shop.Theme.Catalog'}</p> <div class="tab-content"> <div class="block_content row"> <div id="ishi-product-accessories" class="owl-carousel "> {foreach from=$accessories item="product_accessory"} <div class="item"> {block name='product_miniature'} {include file='catalog/_partials/miniatures/product-slider.tpl' product=$product_accessory} {/block} </div> {/foreach} </div> </div> </div> </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} </div> {block name='page_footer_container'} <footer class="page-footer"> {block name='page_footer'} <!-- Footer content --> {/block} </footer> {/block} </section> {/block} Link to comment Share on other sites More sharing options...
Question
DecoMarLub
Witam
Potrzebuje podpowiedzi jak zmienić, tzn. co i gdzie w szablonie aby opis produktu na karcie produktu znajdował się w miejscu jak na załączonym obrazku
Z góry dzięki za odpowiedź
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now