cerberus22 Posted June 15, 2009 Share Posted June 15, 2009 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 ? Link to comment Share on other sites More sharing options...
Lalo Landa Posted June 15, 2009 Share Posted June 15, 2009 i need it tooa link, a link, my kingdom for a link! Link to comment Share on other sites More sharing options...
VIXUS Posted June 15, 2009 Share Posted June 15, 2009 iw set it so that i detail description i have url to products manufacturer site.it works ok. Link to comment Share on other sites More sharing options...
cerberus22 Posted June 15, 2009 Author Share Posted June 15, 2009 I want to link to the manufacturer tpl file not link to manufacturers site Link to comment Share on other sites More sharing options...
daYmo Posted June 15, 2009 Share Posted June 15, 2009 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 More sharing options...
daYmo Posted June 15, 2009 Share Posted June 15, 2009 I cannot post properly the solution ! the message preview is alright but when submitting, it's partially displayed So .. I dunno how to give you the solution .. yeah maybe in an attached file : see manufacturer_link.txt 1 Link to comment Share on other sites More sharing options...
cerberus22 Posted June 15, 2009 Author Share Posted June 15, 2009 Hi DaYmo,works well, Thank you.All the best,Cerberus22 Link to comment Share on other sites More sharing options...
jhnstcks Posted June 15, 2009 Share Posted June 15, 2009 Just what I was looking for. How can I change the urls to friendly? I tried adding the code $manufacturer.link_rewrite but it didnt like that. Link to comment Share on other sites More sharing options...
daYmo Posted June 15, 2009 Share Posted June 15, 2009 @cerberus22 : you're welcome @jhnstcks : build it with functions and assign it to smarty tpl from product.php file Link to comment Share on other sites More sharing options...
applestarz Posted September 26, 2009 Share Posted September 26, 2009 which lines do we add the code in? thanks Link to comment Share on other sites More sharing options...
Usman Ahmed Posted February 24, 2011 Share Posted February 24, 2011 I want manufacturer name as Anchor Text. Is that possible? Link to comment Share on other sites More sharing options...
Emmanuel Paris Posted May 10, 2011 Share Posted May 10, 2011 @jhnstcks : build it with functions and assign it to smarty tpl from product.php file Has anyone ever achieved this ?If so, please post the code. Thanks ! Link to comment Share on other sites More sharing options...
toto37 Posted August 23, 2011 Share Posted August 23, 2011 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 More sharing options...
toto37 Posted August 23, 2011 Share Posted August 23, 2011 And i forget : href="{$shop->url}/{$lang_iso}/... if you have multi language Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now