sambystef Posted June 2, 2021 Share Posted June 2, 2021 Bonjour , Bonjour je travaille en local avec Prestashop 1.7.7.2 Je souhaiterai insérer mon fichier category-header.tpl (modifié - donc présent dans mon thème enfant) dans un module crée dans la page d'accueil. Pourriez vous m'indiquer la marche à suivre car , Prestashop ne reconnait pas les variables SMARTY à l'intérieur. Lorsque je copie-colle mon code dans mon module VOICI mon code de ma category-header.tpl <div id="js-product-list-header"> {if $listing.pagination.items_shown_from == 1} {if $category.name && $category.id == '3'||$category.name && $category.id =='4'||$category.name && $category.id =='5'||$category.name &&$category.id =='6' ||$category.name &&$category.id =='30'} <section class="" id="cat{$category.id}"> <div class="block-category csard card-block containercategory"> <div class="tennisrdv"> <a href=""> <button class="univers section-categorie"> <img src="{$urls.img_url}logocat{$category.id}.png" alt="logo categorie player's" /> <p>{$category.name}</p> </button> <!--EO button tennis--> </a> </div> <!--EO tennisrdv--> <div class="block-category-inner"> <div id="subcategories"> {foreach from=$subcategories item=subcategory} <div class="img-section-categorie animate-pulse square-content big wow zoomIn" data-wow-delay="0.4s"> <p class="img-menu animate-image square-content-image"> <a class="subcategory-name slink" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}"> {$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'} </a> </p> </div><!-- EO img-menu --> {/foreach} </div> <!--- EO subcategories--> </div> <!--- EO block category inner--> </div> <!--EO containercategory--> <div class="partners-categorie"> <p>nos partenaires</p> <img src="{$urls.img_url}pyramideblanc.png" alt="logo Les Pyramides blanc" /> <img src="{$urls.img_url}wilsonblanc.png" alt="logo Wilson blanc" /> <img src="{$urls.img_url}cuprablanc.png" alt="logo Cupra blanc" /> </div> <!--EO partners--> <div class="tamponPlayersAccueil"> <img src="{$urls.img_url}PlayersGraff.png" alt="logo tampon #Player's" /> </div> <!--EO tamponPlayers--> {/if} </section> <!--EO tennis--> {/if} </div> <!--EO js-product-list-header--> Merci pour votre aide Link to comment Share on other sites More sharing options...
sambystef Posted June 24, 2021 Author Share Posted June 24, 2021 Quelqu'un aurait une solution? Merci d'avance Link to comment Share on other sites More sharing options...
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