class: SmartyResource mimetype: text {if $resource->test neq ''} {$resource->test_message} {/if} --- Mary Jane Messenger --- {if $resource->cash eq 'Y'} $$$ CASH ORDER $$$ $$$ CASH ORDER $$$ $$$ CASH ORDER $$$ {else} **** PREPAID ORDER **** {/if} Order For: {$resource->first_name} {$resource->last_name} {if $resource->brand_loyalty_number neq ''} Loyalty No: {$resource->brand_loyalty_number} {/if} Order Id: {$resource->order_id} Placed On: {$resource->order_day} at {$resource->order_time} {if $resource->order_type eq 'D'} ----- DELIVERY ------ {assign var=delivery_location_info value=$resource->delivery_info} {if $delivery_location_info->name neq ''} Delivery To: {$delivery_location_info->name} {/if} Time: {$resource->requested_delivery_time} {$delivery_location_info->address1} {if $delivery_location_info->address2 neq ''} {$delivery_location_info->address2} {/if} {$delivery_location_info->city}, {$delivery_location_info->state} Phone: {$delivery_location_info->phone_no} {if $delivery_location_info->instructions neq ''} {$delivery_location_info->instructions} {/if} {else} Pickup: {$resource->pickup_date} {$resource->pickup_time} Phone: {$resource->user_phone_no} {/if} ------- PRODUCT INFO -------- Num of Items: {$resource->order_qty} {if $resource->test neq ''} {$resource->test_message} {/if} {foreach from=$resource->order_summary.cart_items key=index item=menu_item} {assign var=item_name value=$menu_item.item_name} {assign var=item_size value=$menu_item.size_name} {assign var=item_quant value=$menu_item.item_quantity} {assign var=item_price value=$menu_item.item_price} -{if $item_quant neq '1'}(x{$item_quant}) {/if}{$item_name} {$item_price} {/foreach} ------- ORDER TOTALS -------- {foreach from=$resource->receipt_items_for_merchant_printout key=index item=receipt_item}{assign var=label value=$receipt_item.title}{assign var=amount value=$receipt_item.amount} {if $label eq 'Grand Total'}{assign var=amount value=$resource->grand_total}{/if} {if $label eq 'Total'}{math assign=amount equation='x+y' x=$resource->grand_total_to_merchant y=$resource->trans_fee_amt} {if $resource->cash eq 'Y'}{assign var=label value='TOTAL TO COLLECT'}{/if} {/if} {$label}: {$amount} {/foreach} {if $resource->cash eq 'Y'} $$$ CASH ORDER $$$ $$$ CASH ORDER $$$ $$$ CASH ORDER $$$ {/if} {if $resource->note neq ''} Instructions: {$resource->note} {/if}