Mike,
Thank you for the detailed reply. I know you are busy and the help is greatly appreciated. I have watched a few of your videos and I will definitely give the smarty one a try.
As for this code, this is what I have ended up with.
Code:
{assign var=ordered817 value=0}
{foreach from=$products item=product}
{if $product.productid eq 8 or $product.productid eq 1 or $product.productid eq 7}
{assign var=ordered8 value=1}
{/if}
{/foreach}
{if $ordered817 eq 1}
extra thank you
{else}
{/if}
{assign var=ordered234 value=0}
{foreach from=$products item=product}
{if $product.productid eq 2 or $product.productid eq 3 or $product.productid eq 4}
{assign var=ordered8 value=1}
{/if}
{/foreach}
{if $ordered234 eq 1}
some other thank you
{else}
{/if}
This code appears to have the desired effect; however, is there a better way to condense the two? The only way I can see doing it is by using a few ifelse statements, but that causes its own issue. Doing it that way would mean that I would have to define all of the possible combinations and all of the outputs.
Thanks again!