[comment] ui_template: Yes ui_template_name: leftonly [/comment] [tmp members_only]1[/tmp] [tmp page_title]__COMPANY__ -- Returns[/tmp] [control reset=1] [control-set] [component]search_box_small[/component] [/control-set] [control-set] [component]category_vertical[/component] [/control-set] [control-set] [component]cart_tiny[/component] [/control-set] [control reset=1] @_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] [seti order_status][data table=transactions column=status key='[scratch arg]'][/seti] [if scratch order_status eq shipped]

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='class="contentbar1"'] 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] [set return_items][/set] [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__MVC_FIELDMUNGE__]SIZE-->[sql-param size__MVC_FIELDMUNGE__][/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] [else] You may only return items from orders that have been fully shipped. Please contact Customer Service for assistance. [/else] [/if]
@_LEFTONLY_BOTTOM_@