[comment] ui_template: Yes ui_template_name: leftonly ui_template_layout: LEFTONLY_TOP, UI_CONTENT, LEFTONLY_BOTTOM ui_template_description: Page with top/left areas. page_title: description: Page title page_banner: description: Page banner help: Defaults to page title members_only: options: 1=Yes,0=No* widget: radio description: Members only component_before: options: =none, specials=Specials, random=Random items widget: select description: Component before content component_after: options: =none, specials=Specials, random=Random items widget: select description: Component after content bgcolor: options: #FFFFFF=White,pink=Pink widget: select description: Background color [/comment] [set page_title]__COMPANY__ -- Returns[/set] [set page_banner]Returns[/set] __LEFTONLY_TOP__ [if session arg] [seti arg][data session arg][/seti] [else] [bounce href="[area special/violation arg_missing]"] [/else] [/if] [value name=test_user set="[data table=transactions col=username key='[scratch arg]' ]" hide=1] [if value test_user] [else] [bounce href="[area special/violation user_missing]&user=[value test_user]&arg=[scratch arg]"] [/else] [/if] [if type=explicit compare=` return 1 if ! $Session->{username}; return 0 if $Session->{username} eq $Values->{test_user}; return 1; `] [bounce href="[area special/user_violation username_no_match]&s=[data session username]&v=[value test_user]"] [/if]

Please verify the information below and select the items you wish to return by checking the corresponding checkboxes and modifying the quantity as needed.

[loop list="[scratch arg]"] [html-table fr='bgcolor="#FEEDD2"'] ORDER NUMBER [scratch arg] Order Date [loop-data transactions order_date] [/html-table]

[perl products userdb] sub get_download { my $sku = shift; return '' unless tag_data('products', 'download', $sku); my $loc = tag_data('products', 'dl_location', $sku); my $save = delete $Scratch->{mv_add_dot_html}; my $url = $Tag->area( { href => "deliver/$loc", arg => $sku } ); $Scratch->{mv_add_dot_html} = $save if $save; return qq{
}; } return; [/perl] [html-table interpolate=1 td="VALIGN=TOP"] Return Qty SKU Description
Price
Extension [query list=1 st=db sql=| SELECT * FROM orderline WHERE order_number = '[scratch arg]' ORDER BY code | ] [sql-param sku] [description [sql-param sku]]
[if-sql-data orderline size]SIZE-->[sql-param size][/if-sql-data][if-sql-data orderline color] COLOR-->[sql-param color][/if-sql-data]
[calc] return unless q{[userdb function=check_file_acl mode=expire location="[sql-param sku]"]}; return get_download(q{[sql-param sku]}); [/calc]
[currency][sql-param price][/currency]
[currency][sql-param subtotal][/currency] [/query] [/html-table]

Contact Information  
[error name=fname std_label="Company" required=1]
[error name=fname std_label="First Name" required=1]
[error name=lname std_label=Last required=1]
[error name=email std_label="Email Address" required=1]
[error name=phone_day std_label="Daytime Phone" required=1]
Evening Phone

[html-table interpolate=1 td="VALIGN=TOP"]
Subtotal:
[currency][loop-data transactions subtotal][/currency]
Sales Tax:
[currency][loop-data transactions salestax][/currency]
Shipping:
[currency][loop-data transactions shipping][/currency]
Order Total:
[currency][loop-data transactions total_cost][/currency] [/html-table]
[/loop]
__LEFTONLY_BOTTOM__