Jump to content

Ajouter du code html dans un tpl


Recommended Posts

Bonjour. Je suis sur prestashop 1.7.5 et j'ai rajouté un peu de code html dans mes tpl. Seulement c'est pas très "pro" et je voudrais savoir si il y a une autre solution en mettant ce code dans un fichier séparé et en l'appellant dans le tpl. Si oui comment faire exactement?

Merci

 

Link to comment
Share on other sites

Bonjour,

il suffit de regarder le code du template des centaines d'appels vers d'autres fichier tpl sont présents dans le code.

{include file='cms/_partials/sitemap-nested-list.tpl' links=$links.offers}
{include file='catalog/_partials/miniatures/brand.tpl' brand=$brand}

Vous pourrez aussi trouver des aides sur https://devdocs.prestashop.com/1.7/themes/

  • Like 1
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...