{strip} {$categories_rights = $wa->userRights('setscategories')} {* id of a set or category *} {if $collection_hash !== null} {$id = ifset($collection_hash[1])} {else} {$id = null} {/if} {if $info && ( ($info.hash == 'set' && $info.type == shopSetModel::TYPE_STATIC) || ($info.hash == 'category' && $info.type == shopCategoryModel::TYPE_STATIC) ) } {$manual = true} {else} {$manual = false} {/if} {$default_sort = $sort} {$default_order = $order} {if !empty($info) && array_key_exists('sort_products', $info)} {if empty($info.type)} {$default_sort = explode(' ', ifempty($info.sort_products, 'sort asc'), 2)} {else} {$default_sort = explode(' ', ifempty($info.sort_products, 'create_datetime desc'), 2)} {/if} {$default_order = strtolower($default_sort[1])} {$default_sort = $default_sort[0]} {/if} {/strip}

{if !empty($title)}{$title|escape}{else}[`Untitled`]{/if} {* @event backend_products.%plugin_id%.title_suffix *} {if !empty($backend_products)}{foreach $backend_products as $_}{ifset($_.title_suffix)}{/foreach}{/if} {if $collection_hash && ($info.hash == 'category' || $info.hash == 'set') && $wa->userRights('setscategories')} {if $info.hash == 'category'}[`Category settings`]{else}[`Set settings`]{/if} {if $info.hash == 'category'}[`Delete category`]{else}[`Delete set`]{/if} {/if}

{if $default_sort != $sort || $default_order != $order} {/if} {$include_name = './product_list_'|cat:$view:'.html'} {include file=$include_name} {if !$total_count && empty($info.type)} {if $info.hash == 'category'}
× [`To add products into this category, find and select them in some product list view and either drag to this category in the left sidebar or click “Add to category” on the right.`]
{elseif $info.hash == 'set'}
× [`To add products into this product set, find and select them in some product list view and either drag to this category in the left sidebar or click “Add to set” on the right.`]
{/if} {/if} {if $lazy_loading}
{_w('%d product','%d products', $count)} {sprintf(_w('of %d'), $total_count)}

= $total_count}style="display:none;"{/if}>[`Show more products`]
{else} {if isset($pages_count) && $pages_count > 1} {/if} {/if}
{* * Dialog to confirm product deletion *}

{if $info.hash == 'category'}[`Delete category`]{else}[`Delete set`]{/if}

{if $info.hash == 'set'}


[`It is highly advisable to keep product sets with IDs promo and bestsellers, as these set IDs are used by most Shop-Script frontend design themes.`]

{/if}
{$wa->csrf()} [`or`] [`cancel`]
{* * Error dialog for products duplicate *}

[`Error`]

{* * Dialog with embedding code for sets *} {if $info.hash == 'set'} {include '../dialog/DialogProductListEmbed.html' inline} {/if}
{$title = $title|cat:" — ":{$wa->accountName(false)}}