Jump to content

Recommended Posts

Hello, svp j'ai un problème que j'arrive pas à résoudre:

Je suis sous prestashop 1.7.x et je cherche à afficher les tags enregistrer dans l'onglet "Options"  sur ma fiche produit. Voici le code que j'ai ajouté sur mon product.tpl mais on me dit Code Iso incorrect ! 

Si quelqu'un à un solution ou autre méthode sous la version 1.7.x

Merci

{assign var='id_lang' value=Language::getIdByIso($lang_iso)}
                    {assign var='productTags' value=$product->tags}
                    {l s='Ce produit a les tags suivant :'}
                    {foreach from=$productTags[$id_lang] item=productTag name=productTags}
                        <a href="{$base_dir}index.php?controller=search&tag={$productTag|escape:'url'}"><strong>{$productTag}</strong></a>{if !$smarty.foreach.productTags.last}, {/if}
                    {/foreach}
Link to comment
Share on other sites

  • 2 years later...

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...