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> </td>
<td>{if $extra_fields[field].service_name eq "products_manual"}
{$extra_fields[field].field_value eq "products_manual"}
{/if}</td>
<td> </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".
|