[include pages/logobar] [if session logged_in] [then] [set [L]Log out[/L]] mv_todo=return mv_nextpage=ord/checkout [userdb function=logout clear=1] [/set]

[L]Hi[/L] [value name]! [L]You are logged in as user[/L] [value mv_username].
| Change your password [if type=data term="userdb::acl::[data session username]"] Check order status [/if]

[/then] [else] [set Login] mv_todo=return mv_nextpage=ord/checkout [userdb login] [/set] [if session failure]

[data session failure]

[/if] [L]If you have an account with us, please enter your user name and password[/L]. (test/test for testing)

[L]Username[/L] | [page new_account][L]Create a new account[/L][/page]
[L]Password[/L] |

[/else][/if]
[if items] [then]

[L]Order details[/L]
[item-list]
remove | [item-description] | [item-quantity] @ [item-price] | [item-subtotal]
[/item-list]
Back to cart | [L]Subtotal[/L] | [subtotal]
| [L]Sales Tax[/L] | [salestax]
| [L]Shipping[/L] | [shipping]
| [L]TOTAL[/L] | [total-cost]

[/then] [else]

## [L]No items in your basket.[/L]

[L]You can enter information, and it will be saved, but no checkout will happen until you order something![/L] [/else] [/if]

[L]Shipping Address[/L]

| [L]Name[/L] |
| [L]Address[/L] |
| [L]City[/L] |
|  | [L]State/Province[/L] |  | [L]Zip/Postal Code[/L]
| [L]Email Address[/L] |
| [L]Country[/L] | [if value country =~ /(^$|US|CA)/] [else] [/else] [/if] (will update display)
| [L]Daytime Phone[/L] |
|  | [L]Evening[/L] |
| [L]We need these fields to process your order[/L]

[if session logged_in] [userdb function=get_shipping_names] [set [L]Save shipping[/L]] mv_todo=return mv_nextpage=ord/checkout [userdb function=set_shipping] [/set] [set [L]Recall shipping[/L]] mv_todo=return mv_nextpage=ord/checkout [userdb function=get_shipping] [/set] [set [L]DELETE shipping[/L]] mv_todo=return mv_nextpage=ord/checkout [userdb function=delete_shipping] [/set]

You can create a new entry for the shipping address in your address book. Nickname: [if value address_book] | You can save the shipping address to an entry in your address book. [loop arg="[value address_book]" ] [loop-code] [/loop]
You can recall a shipping address from your address book. [loop arg="[value address_book]" ] [loop-code] [/loop] | You can DELETE a shipping address from your address book. [loop arg="[value address_book]" ] [loop-code] [/loop] [/if]

[/if]

[L]Choose your shipping method[/L]

[if session ship_message] [L]Note[/L]: [data session ship_message] [/if]

[L]Credit Card Information[/L]

[L]Card Number[/L] (test number 4111 1111 1111 1111) | [L]Expires[/L]

[L]Pay by credit card[/L]
[L]I will call with payment information[/L]
[if value tried_credit_card] [L]Force this card number to be taken[/L]
[/if]

[L]Billing Address (if different)[/L]

[L]Name[/L] |
[L]Address[/L] |
[L]City[/L], [L]State[/L], [L]Postal Code[/L] |

[if session logged_in] [userdb function=get_billing_names] [set [L]Save billing[/L]] mv_todo=return mv_nextpage=ord/checkout [userdb function=set_billing] [/set] [set [L]Recall billing[/L]] mv_todo=return mv_nextpage=ord/checkout [userdb function=get_billing] [/set] [set [L]DELETE billing[/L]] mv_todo=return mv_nextpage=ord/checkout [userdb function=delete_billing] [/set]

You can create a new entry for the billing address in your account book. Nickname: [if value accounts] | You can save the billing address to an entry in your account book. [loop arg="[value accounts]" ] [loop-code] [/loop]
You can recall a billing address from your account book. [loop arg="[value accounts]" ] [loop-code] [/loop] | You can DELETE a billing address from your account book. [loop arg="[value accounts]" ] [loop-code] [/loop] [/if]

[/if] [set [L]Place Order![/L]] mv_todo=submit [if config CyberCash]mv_cyber_mode=__CYBER_MODE__ [/if] [/set]

Yes No | Send an email copy of my receipt
[if session logged_in]
| Save my information in the database [set Save_database] [userdb save] [/set] [/if]

Gift note or Special Instructions
[value gift_note]

Return to __COMPANY__ home page (make sure you save first!)
[include pages/menubar] [include pages/copyright]
[set checkout_profile] name=required address=required city=required country=required [calc] my $country = q{[cgi country]}; $country =~ s/\W+//g; return 'phone_day=phone' unless $country =~ /^(US|CA|USA|UnitedStates|Canada)$/i; return "state=state_province\nzip=zip\nphone_day=phone_us"; [/calc] email=required email=email &fatal = yes [if value fax_order] &set = mv_payment Call Us [elsif config CyberCash] &set=mv_payment CyberCash Credit Card [/elsif] [elsif config CreditCardAuto] &set=mv_payment Credit Card ([default mv_credit_card_type unknown]) mv_credit_card_info=required [/elsif] [else] &set=mv_payment Will Call [/else] [/if] &final = yes &set=mv_email [value email] [/set]