Jump to content

[SOLVED] Manufacturer logo on product page isn’t visible (when friendly url is enabled)


Recommended Posts

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.

25919_889H3FRFXqvUuj5OgoL2_t

25920_7cRI1inKOPqpzgf7Pb4m_t

25921_IoIwxkslrx4k01ET60nR_t

25923_hFR8QOaSmsAscE8qlTqs_t

Product.php

25938_s3VmeesrF6j5l9KGcdtb_t

Link to comment
Share on other sites

I think the problem is with relative links with friendly URLs.So try this
In product.tpl
replace

<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

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 :(

25955_u4J6wnLw6BQFUb3111Vt_t

Link to comment
Share on other sites

Sorry i didn't copied whole code
Here 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

×
×
  • Create New...