I created a template called pimage.tpl that will call a product image based on the product's isbn (extra field) and here is the code for the template.
Code:
{section name=field loop=$extra_fields}
{if $extra_fields[field].service_name eq "ISBN"}
<img src="files/pimages/{$extra_fields[field].field_value}.jpg">
{/if}
{/section}
I would like to use an if then function on the product page that would check the image folder in this template for an image and if it returned empty then the thumbnail.tpl would be called. I know I need to assign a variable to this template for the if then function to work but I'm not sure of the proper way to do this. Does anyone know how I might accomplish this?