Prérequis
- AccĂšs administrateur Ă lâinterface PrestaShop.
- AccĂšs au serveur dâhĂ©bergement (SFTP/SSH) ou Ă un dĂ©pĂŽt Git pour dĂ©ployer les fichiers du thĂšme.
- Idéalement, intervention par votre agence ou votre équipe technique.
Recommandation
Travaillez sur un environnement de prĂ©production et sauvegardez le thĂšme avant toute modification. PrivilĂ©giez un thĂšme enfant pour Ă©viter dâĂ©craser vos changements lors dâune mise Ă jour.
1) Télécharger le thÚme
Il est possible de récupÚrer les fichiers du thÚme Prestashop.
2) Modifier le thĂšme
2.1 Identifier le template Ă mettre Ă jour
Selon la page ciblée, localisez le fichier adéquat. Exemples pour les thÚmes Classic / Hummingbird :
Fiche produit :
themes/<votre_theme>/templates/catalog/_partials/product-additional-info.tplAccueil :
themes/<votre_theme>/templates/index.tplCatégorie / listing :
themes/<votre_theme>/templates/catalog/listing/category.tplPage CMS :
themes/<votre_theme>/templates/cms/page.tpl
2.2 Choisir la position dans le code
InsĂ©rez le widget Ă lâendroit prĂ©cis oĂč il doit apparaĂźtre dans le template.
Astuce : repérez un élément ou un conteneur existant (classe CSS ou bloc Smarty) pour positionner le widget correctement.
2.3 Copier/Coller le code JOIN
Important â Fiche produit : pour un widget de product page, reportez-vous Ă la documentation dĂ©diĂ©e (remplacez LINK TO PAGE PRODUIT par lâURL rĂ©elle).
Collez le code du widget rĂ©cupĂ©rĂ© depuis le JOIN Studio dans le fichier .tpl, encadrĂ© par {literal} ⊠{/literal} afin dâĂ©viter lâinterprĂ©tation par Smarty.
Exemple de code final :
{literal}
<script>function sendAudienceData(a){window.jDataLayer=window.jDataLayer||[],window.jDataLayer.push({type:"audience",data:a})}</script>
<div id="join-widget-inspiration-gallery" style="display:block;"></div>
<style> #join-widget-inspiration-gallery { margin: 5px 2px; min-height: 114px; width: 100%; } @media (min-aspect-ratio: 3/4) { #join-widget-inspiration-gallery { min-height: 132px; } } </style>
<script src="https://join-stories.com/stories/widgets/inspiration-gallery/index.js" data-join-widget-id="join-widget-inspiration-gallery" data-join-widget-alias="inspiration-gallery" type="text/javascript" ></script>
{/literal}
3) Déployer et vider le cache
Déployez les modifications du thÚme sur le serveur (SFTP/CI).
Videz le cache pour prendre en compte les changements :
ParamĂštres avancĂ©sâPerformancesâ Vider le cache.Si la compilation Smarty est activĂ©e, forcez une recompilation si nĂ©cessaire.

