{if !empty($codes)}
{$_title = _w('To delete this product code, disable or delete the corresponding plugin.')}
{$_disabled = "is-disabled"}
[`No product codes matching the search criteria`]
{foreach $codes as $_code}
{strip}
{if !empty($_code.icon) && $_code.code_plugin_enabled}

{else}
{/if}
{/strip}
{strip}
{$_code.name|escape}
{$_code.code|escape}
{/strip}
{/foreach}
{else}
{if $type_url_id == 'empty'}
[`There are no product codes that are not available for any product type.`]
{elseif $type_url_id == 'all_existing'}
[`There are no product codes available for all product types.`]
{else}
[`No product codes.`]
{/if}
{/if}