View Single Post
  #10  
Old 02-21-2008, 08:01 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Add extra field to Featured Products

Quote:
Originally Posted by longhorn180
If you want the author's name to appear beneath the title for a featured product you can edit customer/main/products_t.tpl and add this code right below the product title
Code:
{if $products[product].extra_fields ne ''} {foreach from=$products[product].extra_fields item=extra_field} {if $extra_field.service_name eq "author"} {if $extra_field.value ne ""} <b>by: {$extra_field.value}</b><br /> {/if} {/if} {/foreach} {/if}
This works just as well.

"Products_s.tpl" will work only if the following conditions are met:
- it is the customer;
- specified rate (Display products list in multiple columns (1-3));
- Module "Featured Products" is active or not active option "Display only featured products list in multicolumn format. "

If any one condition is not fulfilled, "producst_t.tpl" will not be called.

Consider this.
Reply With Quote