{* HEADER *}

[`Follow-ups`]

{* Submitted via XHR *}
{if !empty($followup.id)}

{$followup.name|escape}

{else}

[`New follow-up`]

{/if}
[`Follow-up name`]

[`This name is for your convenience only. It will never be shown to customers.`]
[`Transport`]
{if $followup.id} {$wa->shop->getIcon($transports[$followup.transport].icon)} {$transports[$followup.transport].name} {else}
    {foreach $transports as $t_id => $t}
  • {/foreach}
{/if}
[`Enabled`]
[`Sending rules`]
[`Source`]

[`Test follow-up`]

{if empty($test_orders)}

[`Follow-up testing requires at least one paid or complete order for sample data.`]

{else}
[`Send to`]

[`Select an order to fetch sample data from`]

{foreach $test_orders as $o} {/foreach}
{$wa->shop->getIcon($o.icon)} {$o.id_str} {$o.create_datetime|wa_date:'humandate'} {foreach $o.items as $i} {$i.name|escape} x {$i.quantity}
{/foreach}
{$o.total_formatted}
{/if}
{capture assign="_cron_dialog"}

[`Follow-ups require CRON to be properly setup for the Shop-Script app, which is currently not the case.`] {sprintf( '[`Set up cron with the following command (cron setup instructions):`]', '[`https://developers.webasyst.com/installation/tips/cron/`]' )}

{$cron_command}

{/capture} {foreach $backend_followup_edit as $plugin_id => $_} {/foreach}
{$wa->getCheatSheetButton(["app" => {$wa->app()}, 'key' => 'followups'])} {if !empty($followup.id)} {/if}