foreach shopOrderattachPlugi getAttachedFiles as if id order_id if dow

1
2
3
4
5
6
7
{foreach shopOrderattachPlugin::getAttachedFiles() as $a}
{if $o.id == $a.order_id}
{if $a.download != 0}
<p><a href="{$wa->domainUrl()}{$wa_app_url}my/orders/orderattach/{$a.order_id}/{$a.file_name}/{$a.hash}/">{$a.file_name}</a></p>
{/if}
{/if}
{/foreach}