View Single Post
  #61  
Old 08-03-2006, 08:43 AM
 
longhorn180 longhorn180 is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Richmond, Virginia
Posts: 187
 

Default

Quote:
Originally Posted by cherie
Quote:
Originally Posted by longhorn180
Has anyone else had this problem? If so do you mind sharing how you fixed it.
One item to note is that /forach should be /foreach. But this code really depends on where you are trying to use it. $products[extra_fields] is only available when you have a list of products such as products.tpl and products_t.tpl. If you are trying to get this information on an individual product page then the array is $extra_fields:
Code:
{section name=field loop=$extra_fields} {if $extra_fields[field].service_name eq "ISBN"} {$extra_fields[field].field}: {$extra_fields[field].value} {/if} {/section}


Thank you this worked, although there is one correction I had to make. To display the extra field value the code is:
Code:
{$extra_fields[field].field_value}

Thanks again for the quick response this really helps a lot.
__________________
4.1.9 (Linux) Live Store
www.thecrackedbook.com
Find used books and out of print books.
Reply With Quote