Jump to content

(SOLVED) how do i insert manufacturers link into product tpl


Recommended Posts

hi all,

i am trying to insert a link to all products by the same manufacturer as the item on the product page.

I can insert this code into the product tpl file (around line 151) :

{l s='Manufacturer:'} {$product_manufacturer->name|truncate:60|escape:'htmlall':'UTF-8'}




But how do I make it link to manufacturer ?

8622_A09hTQLYv15XfvW40blQ_t

Link to comment
Share on other sites

Hi,
just need to add this line wherever you want in your product.tpl file :

id_manufacturer}" title="{l s='See all products...'}">id_manufacturer}-medium.jpg" />



Choose the image size you want small, medium, large, ....

See ya.

Link to comment
Share on other sites

  • 3 months later...
  • 1 year later...
  • 2 months later...
  • 3 months later...

I see it's solved but there are not the answer...

 

I try this :

 

href="{$shop->url}/{$product_manufacturer->id_manufacturer}_{$product_manufacturer->link_rewrite}"

It work, but I begin with prestashop and i dont know if it's "clean".

 

I added

{$shop->url}/

cause it didnt work in subcategorie (with url rewritting)

 

----------------------------------------------------

 

Je rajoute ça car c'est marqué "résolu" mais je ne vois pas la solution finale...

 

j'ai ceci qui marche :

href="{$shop->url}/{$product_manufacturer->id_manufacturer}_{$product_manufacturer->link_rewrite}"

Mais je ne suis pas sur que cela soit très propre d'écrire ça, n'hésitez pas à me donner vos avis et conseils.

 

j'ai rajouté

{$shop->url}/

car sinon ça ne marchait pas dans les sous catégorie (avec la réécriture d'url)

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