{sprintf("[`Deletion of product type ā€œ%sā€`]", $type.name|escape)}

{if $products_count > 0}

{sprintf( _w( 'This product type cannot be deleted because %d product belongs to this type.', 'This product type cannot be deleted because %d products belong to this type.', $products_count, false ), "{$wa_app_url}?action=products#/products/type_id={$type.id}", $products_count )}

[`To delete this product type, first either assign another type to all its products or delete them.`]

{else}

[`Are you sure you want to delete this product type?`]

{/if}
{if $products_count > 0} {else} [`or`] [`cancel`] {/if}