Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (35 sloc) 0.963 kb
ad_page_contract {
Displays an order for the user
@param order_id:integer
@param usca_p:optional
@author
@creation-date
@author ported by Jerry Asher (jerry@theashergroup.com)
@author revised by Bart Teeuwisse (bart.teeuwisse@thecodemill.biz)
@revision-date April 2002
} {
order_id:integer
usca_p:optional
}
# we need them to be logged in
set user_id [ad_conn user_id]
if {$user_id == 0} {
set return_url "[ad_conn url]"
ad_returnredirect "/register?[export_url_vars return_url]"
ad_script_abort
}
# user session tracking
set user_session_id [ec_get_user_session_id]
ec_create_new_session_if_necessary [export_url_vars order_id]
ec_log_user_as_user_id_for_this_session
set title "Your Order"
set context [list $title]
set ec_system_owner [ec_system_owner]
set order_summary "
<pre>
Order #:
$order_id
Status:
[ec_order_status $order_id]
</pre>
[ec_order_summary_for_customer $order_id $user_id "t"]"
Jump to Line
Something went wrong with that request. Please try again.