Thank you! I got this working on my product.tpl page as:
{if $product[product].extra_fields ne ''}
{foreach from=$product[product].extra_fields item=extra_field}
{if $extra_field.service_name eq "service_name goes here"}
{if $extra_field.value eq "20"}
{$extra_field.value}
{/if}
{/if}
{/foreach}
{/if}
{if $product[product].extra_fields ne ''}
{foreach from=$product[product].extra_fields item=extra_field}
{if $extra_field.service_name eq "service _name goes here"}
{if $extra_field.value eq "30"}
{$extra_field.value}
{/if}
{/if}
{/foreach}
{/if}
I've been trying to get this into 2 column (side by side) and I want to add a button to each extra field. Can someone point me in the right direction to achieve this?
Quote:
Originally Posted by longhorn180
Here is the code to show an extra field on products.tpl in 4.1.xx. You just have to put the name of the extra field that you want to display in place of nameofextrafield.
Code:
{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}
|