Jump to content

manifacturer tab in product page


Recommended Posts

up?

 

i found this code for show the manifacturer name, but not the logo

<span id="product_manufacturer"><a href="{$link->getmanufacturerLink($product->id_manufacturer, $product->link_rewrite)}"}">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}</a></span>

and what about the manifacturer tab?

Edited by alfredopacino (see edit history)
Link to comment
Share on other sites

i solved for the manifacturer logo

{if $product_manufacturer->name}
<a href="{$link->getmanufacturerLink($product->id_manufacturer, $product->link_rewrite)}"}">
<img src="/img/m/{$product->id_manufacturer}.jpg" />
</a>
{/if}	

there is a way to ADD a manifacturer tab to the products like the link?

Edited by alfredopacino (see edit history)
Link to comment
Share on other sites

Hi, there was a hack for 1.5.6 but it does not work anymore in 1.6, see this post : http://www.prestashop.com/forums/topic/35207-show-manufacturer-in-product-listing/page-2?do=findComment&comment=1607911

 

Where do you insert your code ? in wich file ?

 

Thanks

 

what you what to do exactly? show the manifacturer logo/name in the product page, in product list or a manifacturer tab in product page?

Edited by alfredopacino (see edit history)
Link to comment
Share on other sites

Yes, thanks for the code, but WHERE do you insert it ?

 

in product.tpl where you want to show the logo :)

for example i added the logo above the product name

<h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1>

so you have to paste the code BEFORE this ~150-155th row

Edited by alfredopacino (see edit history)
Link to comment
Share on other sites

if you want to display manufacturer tab it's necessary to creat it first ;)

in product.tpl use this code:
 

			<section class="page-product-box">
				<h3 class="page-product-heading">{l s='Manufacturer'}</h3>{/if}					<div  class="rte">{$product_manufacturer->name}</div>
			</section>

right after

			<!-- More info -->
		...
			<!--end  More info -->
Link to comment
Share on other sites

 

if you want to display manufacturer tab it's necessary to creat it first ;)

in product.tpl use this code:

 

			<section class="page-product-box">
				<h3 class="page-product-heading">{l s='Manufacturer'}</h3>{/if}					<div  class="rte">{$product_manufacturer->name}</div>
			</section>

right after

			<!-- More info -->
		...
			<!--end  More info -->

 

i get this error

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template ...

@felixdpg i guess you mean the manufacturers, i post the code in this thread.

Edited by alfredopacino (see edit history)
Link to comment
Share on other sites

i solved for the manifacturer logo

{if $product_manufacturer->name}
<a href="{$link->getmanufacturerLink($product->id_manufacturer, $product->link_rewrite)}"}">
<img src="/img/m/{$product->id_manufacturer}.jpg" />
</a>
{/if}	

there is a way to ADD a manifacturer tab to the products like the link?

This hack works, but I have a broken image in my product page : e.g.

Not Found

The requested URL /img/m/23.jpg was not found on this server.

I tried to generate new thumbnails but no more logo displayed ;(

up?

 

i found this code for show the manifacturer name, but not the logo

<span id="product_manufacturer"><a href="{$link->getmanufacturerLink($product->id_manufacturer, $product->link_rewrite)}"}">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}</a></span>

and what about the manifacturer tab?

I cannot insert this code part, it breaks the syntax of the product.tpl file

Link to comment
Share on other sites

about your broken image, my code show the original manifacturer image file you uploaded, you have to check via ftp if /img/m/23.jpg exists

please note if your PS is on a third domain o a different folder from root you have to change the image source:

<img src="PSFOLDER/img/m/{$product->id_manufacturer}.jpg" />
 
maybe vekia knows a better solution for a relative source.
Edited by alfredopacino (see edit history)
Link to comment
Share on other sites

That works now, there was a directory before "img"; and I have changed the image size to show a smaller logo :

<img src="/boutique/img/m/{$product->id_manufacturer}-small_default.jpg" />

Next step that I need is to display the manufacturer's name in the characteristics in the product page, any idea please ?

Link to comment
Share on other sites

  • 1 month later...
insert this code



<a href="{$link->getPageLink('manufacturer.php')}?id_manufacturer={$product.id_manufacturer}" title="{$product.manufacturer_name}"><!--{$product.manufacturer_name}</a>-->
<img src="{$img_manu_dir}{$product.id_manufacturer}-medium_default.jpg" alt="{$product.manufacturer_name}" title="{$product.manufacturer_name}" /></a>

Edited by Ron morales (see edit history)
Link to comment
Share on other sites

  • 1 month later...

with the latest PS update this link doesn't work anymore (the ron morales one neither)

<a href="{$link->getmanufacturerLink($product->id_manufacturer, $product->link_rewrite)}"}">MANIFACTURER</a>

i get this page

[Debug] This page has moved
Please use the following URL instead: http://zarrillosport.it/21_arnold
Edited by alfredopacino (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...