[set name=mv_order_number interpolate=1][fcounter file="[dv order_dir]/order.number"][/set][tag flag write]transactions userdb[/tag][set name=import_results interpolate=1] [if session logged_in] [data table=userdb column=acl key="[data session username]" value="query/check_orders" ] [data table=userdb column=order_numbers key="[data session username]" value=" [value mv_order_number]" append=1] [/if] [set name=order_log interpolate=1][tabbed] [value mv_order_number] __STORE_ID__ [scratch mv_order_number] [data session id] [data session username] [shipping-desc] - [shipping] [nitems] [subtotal noformat=1] [value mv_payment] Tax: [salestax] [value city] [value state] [value zip] [value name=order_date set="[tag time]%d-%b-%Y[/tag]"] pending __PARENT__[/tabbed] [item-list][tabbed] [value mv_order_number]-[item-increment] __STORE_ID__ [scratch mv_order_number] [data session id] [data session username] [item-code] [item-quantity] [item-price noformat] [item-description] [item-modifier size] [item-modifier color] [item-modifier options] [value order_date] __PARENT__[/tabbed] [/item-list][/set] [tag op=import base="transactions"][scratch order_log][/tag] [tag op=log file="products/transactions.raw"][scratch order_log][/tag] [tag op=log file="[dv order_dir]/transactions.txt"][scratch order_log][/tag] [/set][set name=order_text interpolate=1] - ORDER DATE: [calc]localtime[/calc] ORDER NUMBER: [scratch mv_order_number] LEAD SOURCE: [data session source] REFERRING URL: [data session referer] Name: [value name] [if value company] Company: [value company][/if] Email address: [value email] Address: [value address] City, State, Zip: [value city], [value state] [value zip] Country: [value country] [if value mv_credit_card_info] Credit Card Info: [value mv_credit_card_info] [else] Payment Method: [value mv_payment] [/else][/if] Shipping Method: [shipping_desc] Daytime Phone: [value phone_day] Evening Phone: [value phone_night] [if value s_address] Shipping Name: [value s_name] Shipping Address: [value s_address] City, State, Zip: [value s_city][/if][if value s_state], [value s_state] [value s_zip][/if] [if value s_country]Shipping Country: [value s_country][/if] Quan Item No. Description Price Extension ---- ----------- -------------------------------- ------------- --------------- [item-list][row 82] [column width=5 gutter=1 align=right] [item-quantity] [/column] [column width=12 gutter=1] [item-code] [/column] [column width=32 align=left gutter=1 wrap=1] [item-description] [if-modifier size]SIZE-->[item-modifier size][/if-modifier][if-modifier color] COLOR-->[item-modifier color][/if-modifier] [/column] [column width=14 align=right gutter=1][item-price][/column] [column width=15 align=right gutter=0][item-subtotal][/column] [/row] [/item-list] [row 82] [column width=5 align=right][/column] [column width=12 gutter=1][/column] [column width=32 align=right gutter=1 wrap=1][/column] [column width=14 gutter=1]SUBTOTAL[/column] [column width=15 align=right gutter=0][subtotal][/column] [/row] [row 82] [column width=5 align=right][/column] [column width=12 gutter=1][/column] [column width=32 align=right gutter=1 wrap=1][/column] [column width=14 gutter=1]SALES TAX[/column] [column width=15 align=right gutter=0][salestax][/column] [/row] [row 82] [column width=5 align=right][/column] [column width=12 gutter=1][/column] [column width=32 align=right gutter=1 wrap=1][/column] [column width=14 gutter=1]SHIPPING[/column] [column width=15 align=right gutter=0][shipping][/column] [/row] [row 82] [column width=5 align=right][/column] [column width=12 gutter=1][/column] [column width=32 align=right gutter=1 wrap=1][/column] [column width=14 gutter=1]ORDER TOTAL[/column] [column width=15 align=right gutter=0][total-cost][/column] [/row] [if value gift_note] Gift Note or Special Instructions: --------------------------------------------------- [value gift_note] [/if] [/set] [tag mime type TEXT/PLAIN; CHARSET=US-ASCII][/tag] [tag op=mime type="Order Text" interpolate=1] [scratch order_text] [/tag] [tag op=log file="[dv order_dir]/[scratch mv_order_number]" interpolate=1] [scratch order_text] [/tag] [if value mv_credit_card_info] [tag mime type application/pgp-encrypted][/tag] [tag op=mime type="CreditCard_[scratch mv_order_number]"] [value mv_credit_card_info] [/tag] [/if]