View Single Post
  #25  
Old 02-24-2009, 11:12 AM
 
ChristineP ChristineP is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 310
 

Default Re: Extra Fields 4.1.x products_t.tpl

Awesome! I have one more piece to this that I need working. I have a custom button that I'm trying to get working for 3 of my extra fields. Here's what I've done with trying to add my custom button .tpl:

In customer/main/product.tpl I commented out
<!--{if $active_modules.Extra_Fields ne ""}
{include file="modules/Extra_Fields/product.tpl"}
{/if}-->

and added from your code suggestion
<table align="left" cellspacing="0" cellpadding="0">
{section name=field loop=$extra_fields}
<td>{if $extra_fields[field].service_name eq "products_PDF"}
{include file="buttons/pdf_button.tpl" href="javascript:window.open $extra_fields[field].field_value=products_PDF" style="button"}
{/if}</td>
<td>&nbsp;&nbsp;</td>
<td>{if $extra_fields[field].service_name eq "products_manual"}
{$extra_fields[field].field_value eq "products_manual"}
{/if}</td>
<td>&nbsp;&nbsp;</td>
<td>{if $extra_fields[field].service_name eq "product_image"}
{$extra_fields[field].field_value eq "product_image"}
{/if}</td>
{/section}
</table>

The bold is my attempt for my custom button. The image of my custom button is now showing, though it's not clickable to my product.

Do you have any suggestions?

Christine

Quote:
Originally Posted by toltion
In customer/main/product.tpl, you have to replace -

{include file="modules/Extra_Fields/product.tpl"}

With the code I suggested.

You are basically looping through the extra fields directly on product.tpl instead of including "modules/Extra_Fields/product.tpl".
__________________
______________
version 4.1.9 Gold
Reply With Quote