{strip} {* ДАННЫЕ *} {$_page_title = _w("PREMIUM license compatibility")} {$_inst_title = _w("This section works only with the Installer app available")} {$_sprite_url = "`$wa_url`wa-apps/shop/img/backend/settings/compatibility/icons.svg?v=`$wa->version()`"} {* ПОДСКАЗКИ *} {$_locales = [ "on" => _w("Enabled"), "off" => _w("Disabled"), "show" => _w("Details"), "hide" => _w("Hide") ]} {$_tooltips = []} {* ШАБЛОНЫ *} {$_templates = []} {/strip}
{* HEADER *}

{$_page_title}

{* BODY *}
{function name="_render_item" _item=[] _type="" _system_type="" _app_id=""} {if !in_array($_system_type, ['shipping', 'payment']) && isset($_item["enabled"]) && $_item["enabled"] !== "1"} {$gray_class = 'color-gray'} {else} {$gray_class = ''} {/if}
{if $_type === "plugin"} {else} {/if}
{if $_type === "plugin"}
[`Plugin`]
{/if}
{if version_compare($_item['version_installed'], $_item['version_latest']) >= 0}
{$_item['version_installed']}
[`Up-to-date version is installed.`]
{else}
{$_item["version_installed"]}
[`Outdated version is installed.`]
{$_item["version_latest"]}
[`Up-to-date version`] [`Update`]
{/if}
{if $_item["compatibility"] === "0"} {elseif $_item["compatibility"] === "1"} {elseif $_item["compatibility"] === "2"} {else} {/if}
{if $_item["compatibility"] === "0"} [`No support`] {elseif $_item["compatibility"] === "1"} [`Full support`] {elseif $_item["compatibility"] === "2"} [`Partial support`] {else} [`No information`] {/if}
{if !empty($_item["compatibility_description"])}
{$_item["compatibility_description"]}
{/if}
{if $_type === "plugin" && $_system_type} {if $_item["compatibility"] === '1'}
[`Quantity is passed on without conversion.`]
[`Quantity units are passed on.`]
{else} {if $is_premium}
{if $_item["frac_mode"] == shopFrac::PLUGIN_TRANSFER_DISABLED} [`Unavailable for fractional quantity.`] {elseif $_item["frac_mode"] == shopFrac::PLUGIN_TRANSFER_CONVERT} [`Fractional quantity is converted to integer values.`] {else} [`Quantity is passed on without conversion.`] {/if}
{if $_item["units_mode"] == shopFrac::PLUGIN_TRANSFER_DISABLED} [`Unavailable for products with quantity units.`] {else} [`Quantity units are passed on.`] {/if}
{/if}
[`Change`]
{/if} {else}
[`No settings`]
{/if}
{if !in_array($_system_type, ['shipping', 'payment']) && isset($_item["enabled"]) && $_type === "plugin"}
{if $_item["enabled"] === "1"} {$_locales["on"]} {else} {$_locales["off"]} {/if}
{/if} {/function} {if $installer_enable} {if !empty($groups["delivery"])} {foreach $groups["delivery"] as $_plugin} {_render_item _item=$_plugin _type="plugin" _system_type="shipping"} {/foreach} {/if} {if !empty($groups["payment"])} {foreach $groups["payment"] as $_plugin} {_render_item _item=$_plugin _type="plugin" _system_type="payment"} {/foreach} {/if} {if !empty($groups["apps"])} {foreach $groups["apps"] as $_app} {if $_app.id === 'shop'} {else} {/if} {foreach $_app["plugins"] as $_plugin} {_render_item _item=$_plugin _type="plugin" _system_type="" _app_id=$_app["id"]} {/foreach} {/foreach} {/if} {if !empty($groups["themes"])} {foreach $groups["themes"] as $_theme} {_render_item _item=$_theme _type="theme"} {/foreach} {/if}
[`Version`] [`Functionality support`] [`Interaction`]
[`Shipping`]
[`Payment`]
{if version_compare($_app['version_installed'], $_app['version_latest']) >= 0}
{$_app['version_installed']}
[`Up-to-date version is installed.`]
{else}
{$_app["version_installed"]}
[`Outdated version is installed.`]
{$_app["version_latest"]}
[`Up-to-date version`] [`Update`]
{/if}
{if $_app.id !== 'shop'}
{if $_app["compatibility"] === "0"} {elseif $_app["compatibility"] === "1"} {elseif $_app["compatibility"] === "2"} {else} {/if}
{if $_app["compatibility"] === "0"} [`No support`] {elseif $_app["compatibility"] === "1"} [`Full support`] {elseif $_app["compatibility"] === "2"} [`Partial support`] {else} [`No information`] {/if}
{if !empty($_app["compatibility_description"])}
{$_app["compatibility_description"]}
{/if}
{/if}
[`No settings`]
{if $_app["enabled"] === true} {$_locales["on"]} {else} {$_locales["off"]} {/if}
[`Design themes`]
{else} {$_inst_title} {/if}