View Single Post
  #20  
Old 01-31-2009, 10:09 AM
 
ChristineP ChristineP is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 310
 

Default Re: Display an extra field on products.tpl

I tried this, but I'm still not having any luck. I created a new pdf_button.tpl so that the PDF button that I created will be clickable to the desired product pdf. My problem is I can get one extra field to show on the product side, but I have 3 seperate extra fields that I need to make into a clickable custom button for each product. I did look at a mod that someone suggested, but after emailing with the company it's determined that the mod is not what we will be using. Ashley do you have any suggestions for me to try?


Quote:
Originally Posted by Ashley
try this..

{if $products[product].extra_fields ne ''}
{foreach from=$products[product].extra_fields item=extra_field}
{if $extra_field.service_name eq "nameofextrafield"}
{if $extra_field.value ne ""}
{$extra_field.value}
{/if}
{/if}
{/foreach}
{/if}
{if $extra_field.service_name eq "nameofextrafield"}button code here{/if}
__________________
______________
version 4.1.9 Gold
Reply With Quote