{* * Sidebar with list of couriers *} {* * Main content with editor form *}
{* * One-time help block above the editor *}
× {* TODO: DEPRECATE PERMANENTlY *} {if $wa->locale() == 'ru_RU'} Раздел упразднен в Shop-Script 10.0. Новая инструкция по подключению курьеров в Shop-Script 10.0 и выше: https://support.webasyst.ru/shop-script/44882/shop-couriers-mobile-app/ {else} Deprecated in Shop-Script 10.0. Please follow these guides on how to invite a courier in Shop-Script 10.0+: https://support.webasyst.com/shop-script/44941/shop-couriers-mobile-app/ {/if}
[`Courier name`]

[`Courier real or nick name. Linking couriers with real contacts or backend users is optional.`]
[`Note`]

[`Any kind of useful information about this courier, e.g. contact information, preferred delivery hours and locations.`]
{if $courier.storefronts}
[`Storefronts`]
{foreach $courier.storefronts as $url => $enabled}
{/foreach}
[`This courier assignment will be available for orders placed on selected storefronts only.`]
{else} {/if}
[`Status`]
{if $courier.api_last_use || $courier.id != 'new'}
[`Edit orders`]

[`If enabled, a courier can edit order items, discount amount, and shipping cost via the mobile app.`]
[`Payment and shipping methods selected by a customer and values of default shipping address fields “Country”, “ZIP”, “State”, “City” cannot be changed via mobile app.`]
[`A courier can change order status, shipping address in an order, except for fields “Country”, “ZIP”, “State”, and “City”, and other shipping parameters regardless of this setting’s value.`]
[`Edit customers`]

[`Courier can edit customers’ contact details in mobile app.`]
[`Last seen`]
{if $courier.api_last_use} {$courier.api_last_use|wa_date:humandatetime} {else} [`Never`] {/if}
{/if} {if $courier.id != 'new'}
[`Auth code`]
{$pin_is_valid = $courier.api_pin && strtotime($courier.api_pin_expire) > time()} {if $pin_is_valid} {sprintf("%02d", $courier.id)}-{$courier.api_pin|escape} {elseif $courier.api_pin_expire} {if $courier.api_last_use} {else} [`Expired`] {/if} {else} [`Not set`] {/if} [`Re-generate the code`] {if $pin_is_valid && !$courier.api_last_use}
[`Expires:`] {$courier.api_pin_expire|wa_date:humandatetime} {/if}
{if $pin_is_valid && !$courier.api_last_use} [`Auth code must be entered by the courier in the mobile app to authorize it with your online store. Once authorized with the code, the mobile app may then use the connection indefinitely. In case the code was not entered, it will automatically expire in 24 hours.`] {/if}
{/if}
{if $courier.id != 'new'} {/if}