Hancek Posted February 2, 2017 Share Posted February 2, 2017 Chciałbym aby tagi przypisane do produktu były wyświetlane na karcie produktu. Najlepiej po bloku "więcej informacji" presta 1.6.1.10 może mi ktoś pomóc? Link to comment Share on other sites More sharing options...
0 e_com Posted February 2, 2017 Share Posted February 2, 2017 W pliku product.tpl, za sekcją: {if isset($product) && $product->description} <section id="product-description" class="page-product-box"> <h3 class="page-product-heading">{l s='More info'}</h3> <div class="rte">{$product->description}</div> </section> {/if} dodaj: {if Tag::getProductTags(Tools::getValue('id_product')) != ""} <section id="product-tags" class="page-product-box"> <h3 class="page-product-heading"> <ul class="list-inline"> {foreach from=Tag::getProductTags(Tools::getValue('id_product')) key=k item=v} {if $k != $lang_id} {continue} {/if} {foreach from=$v item=value} <li> <a href="{$link->getPageLink('search', true, NULL, "tag={$value|urlencode}")}"> <i class="icon icon-tag"></i> {$value|escape:html:'UTF-8'} </a> </li> {/foreach} {/foreach} </ul> </h3> </section> {/if} Link to comment Share on other sites More sharing options...
0 Hancek Posted February 2, 2017 Author Share Posted February 2, 2017 Wielkie dzięki działa super Link to comment Share on other sites More sharing options...
Question
Hancek
Chciałbym aby tagi przypisane do produktu były wyświetlane na karcie produktu. Najlepiej po bloku "więcej informacji"
presta 1.6.1.10 może mi ktoś pomóc?
Link to comment
Share on other sites
2 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