{* @var array $set array of available sets @var array $types array of available product types @var array $hint array of hash hints @var string $hash @var boolean $subcategory *}
{_wd('shop',"Select products")}
{$hash = shopImportexportHelper::parseHash($hash, ['show_top_level' => true])}
{if !empty($hints.all)}
{$hints.all}{/if}
{if !empty($hints.set)}
{$hints.set}{/if}
{if !empty($hints.type)}
{$hints.type}{/if}
{if $hash.type eq 'id'} {if !empty($hints.id)}
{$hints.id}{/if} {else}
[`No products are selected`]

[`Select products and execute a corresponding action using the menu on the right in “Products” section.`]

{/if}
{if !empty($hash.data.categories) || !empty($hints.category)}
{if !empty($hash.data.categories)} {wa_print_tree tree=$hash.data.categories elem='' class="menu-v with-icons"} {/if} {if !empty($hints.category)}
{$hints.category}{/if}
{/if} {if $hash.type == 'custom'}
{if !empty($hash.plugin_names)}

{sprintf( _wd( 'shop', 'Products collection generated by plugin %s.', 'Products collection generated by plugins %s.', count($hash.plugin_names), false ), sprintf( _w('“%s”'), implode(_w('”, “'), $hash.plugin_names) ) )}

{else}
{$wa_app_url}?action=products#/products/hash={$hash.hash|default:''}

[`Invalid link to a products collection, probably generated by a plugin which has been deleted.`]

{/if}
{/if}