[set page_title][L]Order Entry[/L][/set] [set ui_class]Orders[/set] [set help_name]order_entry.main[/set] [set icon_name]icon_orders.gif[/set] [seti meta_header] [/seti] @_UI_STD_HEAD_@
[item-list] [/item-list]

[L]SKU[/L]

 

[L]Description[/L]

[L]Quantity[/L]

[L]Price[/L]

 

[L]Extension[/L]

[search-region prefix=sku] [if value mv_search_match_count] [/else] [/if] [search-list] [/if] [/search-region]        
remove   [item-code]   [page [item-code]][item-description] [if-item-field weight]    WEIGHT: [summary amount=`[item-quantity] * [item-field weight]`] [/if-item-field]     [if-item-data options o_enable]
[table-organize cols=2] [item-options td=1] [/table-organize]
[/if-item-data]
[discount-price] [if discount [item-code]]
Item is discounted [item-discount] [/if]
  [item-subtotal]
                [summary format="Shipping weight: %s" total=1]
Subtotal   [subtotal]
Shipping   [shipping]
Tax   [salestax]
TOTAL   [total-cost]
[if type=explicit compare="[error all=1 show_var=1 keep=1]"]

There were errors in your last entry. They are shown in this color below.

[/if] [comment] [/comment]
Shipping Address
[calc] return unless $CGI->{customer}; $Values->{customer_id} = $CGI->{customer} unless $CGI->{customer} eq 'NEW'; for (qw/ username password company fname lname address1 address2 address3 city state zip country phone_day mv_shipmode b_nickname b_fname b_lname b_address1 b_address2 b_address3 b_city b_state b_zip b_country b_phone mv_credit_card_type mv_credit_card_exp_month mv_credit_card_exp_year mv_credit_card_info email fax phone_night fax_order order_numbers email_copy mail_list /) { $Values->{$_} = ''; } [/calc] [loop list=`$Values->{customer_id} || 'NEW'`] [set Find] mv_nextpage=__UI_BASE__/entry_select mv_change_frame=select mv_todo=back [/set] [set Clear] customer_id= customer=NEW mv_todo=return [/set]
Customer ID New customer
[error name=fname std_label="First Name" required=1] [error name=lname std_label=Last required=1] 
[error name=address1 std_label=Address required=1]
 
[error name=city std_label="City" required=1]
[error name=state std_label="State/Province" required=1] [error name=zip std_label="Zip/Postal Code" required=1]
[error name=email std_label="Email Address" required=1]
Country [value name=country set="[value name=country default='[loop-data userdb country]']" hide=1] [if value country =~ /(^$|US|CA)/] [else] [/else] [/if] (will update display)
[error name=phone_day std_label="Daytime Phone" required=1]
[error name=phone_night std_label="Evening Phone" required=0]
 
  Bold fields needed to process the order
[set only_downloadable]1[/set] [set some_downloadable][/set] [item-list] [if-item-field weight][set only_downloadable][/set][/if-item-field] [if-item-field download][set some_downloadable]1[/set][/if-item-field] [/item-list] [if !scratch only_downloadable]

Choose your shipping method

[if session ship_message]
Note: [data session ship_message]
[/if]
[/if] [if variable CREDIT_CARDS_ACCEPTED =~ /\S/]
[error std_label="Credit Card Information" name=mv_credit_card_valid]

Card Number
[if variable MV_PAYMENT_MODE =~ /minivend_test/]
Interchange test should yield: Success Failure [/if]
Expires
Charge credit card
[if variable CHECK_ACCEPTED] Call customer for payment information
[/if] [if variable PO_ACCEPTED] I will pay by purchase order [error name=credit_limit_ok std_label="PO Number" required=1]  [if type=data term="userdb::credit_limit::[value customer_id]" op=">" compare=0.01]
Current credit limit: [currency] [data table=userdb col=credit_limit key="[value customer_id]"] [/currency] [if type=data term="userdb::credit_limit::[value customer_id]" op=< compare="[total-cost noformat=1]" ]
Order total [total-cost] exceeds credit limit, please call. [/if]
[/if]
[/if] [if variable COD_ACCEPTED] I will pay by COD ([handling cod] extra charge will be added)
[/if]
Billing Address (if different)
Name: First Last
Address
City State Postal Code
Country

[set Place Order!] mv_todo=submit [/set]
Email preferences
Yes No Send an email copy of my receipt
Yes No Put customer on email information list

[set Place Order] mv_todo=submit [/set]

Gift note or Special Instructions
[/loop] [error all=1 hide=1 comment="Clear errors"] __MENUBOTTOM__ __COPYRIGHT__ @_UI_STD_FOOTER_@