{assign "displayTotalToday" true}
<p><strong>Order Information</strong></p>
<p>Order ID: {$order_id}<br />
Order Number: {$order_number}<br />
Date/Time: {$order_date}<br />
Invoice Number: {if $custom_invoice_number}{$custom_invoice_number}{else}{$invoice_id}{/if}<br />
Payment Method: {$order_payment_method}</p>
<p><strong>Customer Information</strong></p>
<p>Customer ID: {$client_id}<br />
Name: {$client_first_name} {$client_last_name}<br />
Email: {$client_email}<br />
Company: {$client_company_name}<br />
Address 1: {$client_address1}<br />
Address 2: {$client_address2}<br />
City: {$client_city}<br />
State: {$client_state}<br />
Postcode: {$client_postcode}<br />
Country: {$client_country}<br />
Phone Number: {$client_phonenumber}</p>
<p><strong>Order Items</strong></p>
<p>{foreach $order_items_array as $key => $value}
    {if $value.service}
        Product/Service: {$value.service}<br>
        {if $value.domain}Domain: {$value.domain}<br>{/if}
        {foreach $value.extra as $extra}{$extra}<br>{/foreach}
        First Payment Amount: {$value.firstPayment}<br>
        {if $value.recurringPayment}Recurring Amount: {$value.recurringPayment}<br>{/if}
        Billing Cycle: {$value.cycle}<br>
        {if $value.qty}
            Quantity: {$value.qty}<br>
            Total: {$value.totalDue}<br>
        {/if}<br>
    {elseif $value.domain}
        Domain Action: {$value.type}<br>
        Domain: {$value.domain}<br>
        {if $value.firstPayment}First Payment Amount: {$value.firstPayment}<br>{/if}
        {if $value.recurringPayment}Recurring Amount: {$value.recurringPayment}<br>{/if}
        Registration Period: {$value.registrationPeriod}<br>
        {if $value.dnsManagement}DNS Management<br>{/if}
        {if $value.emailForwarding}Email Forwarding<br>{/if}
        {if $value.idProtection}ID Protection<br>{/if}
    {elseif $value.addon}
        {if $value.qty}{$value.qty} x {/if}Addon: {$value.addon}<br>
        Setup Fee: {$value.setupFee}<br>
        {if $value.recurringPayment}Recurring Amount: {$value.recurringPayment}<br>{/if}
        Billing Cycle: {$value.cycle}<br>
    {elseif $value.upgrade}
{$value.upgrade}
{$displayTotalToday = false}
{/if}<br>
{/foreach}
{if $displayTotalToday eq true}Total Due Today: {$total_due_today}{/if}</p>
{if $order_notes}<p><strong>Order Notes</strong></p>
<p>{$order_notes}</p>{/if}
<p><strong>ISP Information</strong></p>
<p>IP: {$client_ip}<br />
Host: {$client_hostname}</p><p><a href="{$whmcs_admin_url}orders.php?action=view&id={$order_id}">{$whmcs_admin_url}orders.php?action=view&id={$order_id}</a></p>