Jump to content

[Résolu] Mettre le nom du fabricant dans le titre de la fiche produit


Recommended Posts

Bonjour,

Je viens de ma lancer dans le développement d'un e-commerce avec Prestashop 1.4.0.17.
Je souhaiterai intégrer le nom du fabricant dans la titre de la fiche produit.
Pour cela j'ai trouvé des solutions sur les forums mais cela ne fait rien à mon niveau.
J'ai beau changer le fichier product.tpl du template rien ne se passe.
Quand j'affiche la page de code, les modifs n'apparaissent pas.
Le site tourne actuellement avec wamp en localhost.
Merci pou votre aide

Link to comment
Share on other sites

  • 1 month later...

J'ai trouvé ce qui n'allait pas.
Le forçage de la compilation n'était pas activé.
Sinon le code qui fonctionne est le suivant

<!-- Affichage du fabricant-->
{if $product->manufacturer_name}{l s='Fabricant : '}
{$product->manufacturer_name|escape:'htmlall':'UTF-8'}

Link to comment
Share on other sites

  • 2 months later...

merci pour ton code,
i was looking for something like that.

but some more info, if possible :
a) where you put the code in product.tpl ?
i've added it around line 123

{include file="$tpl_dir./breadcrumb.tpl"}


<!-- Affichage du fabricant-->
{if $product->manufacturer_name}{l s='Fabricant : '}
{$product->manufacturer_name|escape:'htmlall':'UTF-8'}

{$product->name|escape:'htmlall':'UTF-8'}


{if isset($adminActionDisplay) && $adminActionDisplay}

B) other changes in other files are needed ? if yes, where ?

c) Le forçage de la compilation n‘était pas activé.
what you mean with this ?

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