Jump to content

How do display product reference in product search result list?


Recommended Posts

Hi to all,

 

When I search for some product on my website I eventually get the list with the results.

I noticed that when the products are displayed in that list there is no reference number displayed.

 

Here is the screenshot:

 

aqjg.jpg

 

Thank you.

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

You can do this by add reference tag in product-list.tpl

 

 

 {$product.reference}

 

See in action

  <div class="center_block">
<a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}">
 <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} />
 {if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}</span>{/if}
</a>
<h3><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'|truncate:35:'...'}</a></h3>
<p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}" >{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}</a></p>
  {$product.reference}
			</div>

 

After modified this it will show like the images.

post-460779-0-23999500-1375557766_thumb.png

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...