dlnhi Posted June 25, 2010 Share Posted June 25, 2010 I need some help.I’ve modified product.tpl as described here: http://prestaportal.com/thread-437.html (the only difference is that my img source is prava.png instead of medium.jpg). That made possible that manufacturer logo is visible in product page and this logo is also active, it can be clicked and the customer is directed to manufacturer list of that certain manufacturer. I’m willing to sacrifice this “activeness” (meaning this logo doesn’t have to lead to manufacturer list) if it simplifies the solution considerably. My primary concern is logos to be shown. If we focus on a product 267 which is produced by manufacturer 5: Friendly url off: Product267 page url: http://www.atipika.si/etrgovina/product.php?id_product=267 When clicked on logo (it leads to manufacturer list): http://www.atipika.si/etrgovina/manufacturer.php?id_manufacturer=5 Manufacturer5 list url (is the same): http://www.atipika.si/etrgovina/manufacturer.php?id_manufacturer=5 Friendly url on: Product267 page url: http://www.atipika.si/etrgovina/short-sleeves/267-zore-white.html When clicked on logo, WHICH IS NOT VISIBLE (it leads to DEAD PAGE-PAGE NOT AVAILABLE): http://www.atipika.si/etrgovina/short-sleeves/manufacturer.php?id_manufacturer=5 Manufacturer5 list url: http://www.atipika.si/etrgovina/5_dickies (EVERYTHING IS SHOWN AS IT SHOULD BE) Thanks loads. Product.php Link to comment Share on other sites More sharing options...
razaro Posted June 25, 2010 Share Posted June 25, 2010 I think the problem is with relative links with friendly URLs.So try thisIn product.tplreplace <img src="img/m/{$product_manufacturer->id_manufacturer}-prava.png" /> with <img src="{$img_manu_dir}{$product_manufacturer->id_manufacturer}-prava.png" /> Link to comment Share on other sites More sharing options...
dlnhi Posted June 25, 2010 Author Share Posted June 25, 2010 Thanks razaro,but unfortunately it doesn't work. Any product I click leads to a blank product page (attached), no matter if friendly url is on or off..I really hope there is a simple solution, if not I'm willing to kill this link, only logos to be shown. I would need a help with that also, of course Link to comment Share on other sites More sharing options...
razaro Posted June 25, 2010 Share Posted June 25, 2010 Sorry i didn't copied whole codeHere is that part of code should look like <a href= "{$link->getmanufacturerLink($product_manufacturer->id_manufacturer,$product_manufacturer->link_rewrite)|escape:'htmlall':'UTF-8'}" title="{l s='See all products...'}"> <img src="{$img_manu_dir}{$product_manufacturer->id_manufacturer}-prava.png" /> Link to comment Share on other sites More sharing options...
dlnhi Posted June 25, 2010 Author Share Posted June 25, 2010 Bravo razaro,you've nailed it!!!Thank you so much, keep up the good work!Cheers,Urc. Link to comment Share on other sites More sharing options...
Recommended Posts