[body 1]
[ __COMPANY__ Logo ]
[if items] [then] [item-list] [/item-list]
[L]Order details[/L]
[item-code] [L]remove[/L] [page [item-code]][item-description]
[item-accessories size][item-accessories color]
[item-quantity] x [item-price] [item-subtotal]
[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 adress[/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] [help country_select]
[L]Daytime Phone[/L]
[L]Evening[/L]
[L]We need these fields to process your order[/L]
[L]Choose your shipping method[/L]

[if session ship_message]
Note: [data session ship_message]
[/if]
[L]Credit Card Information[/L]
[if value mv_credit_card_info]

[L](A valid[/L] [help name="[default mv_credit_card_type]"] [L]number is on file.[/L]
[L]If you need to change it, re-enter the number. Otherwise, leave it blank and[/L]
[L]press[/L] [L]Save[/L]
.)

[/if]

[L]Card Number[/L]
[if value mv_credit_card_valid] [else] [/else] [/if]
[L]Expires[/L]
[L]Pay by credit card[/L]
[L]I order by Post[/L]
[L]Force this card number to be taken[/L]
[L]Billing address (if different)[/L]
[L]Name[/L]
[L]Address[/L]
[L]City, State, Postal Code[/L]
[if session logged_in] [then] [L]Save my information in the database[/L] [set Save_database] [userdb save] mv_username=[value mv_username] [/set] [/then] [else] [L]I plan on returning, save my information[/L] [if config EncryptProgram =~ /pgp/] ([L]credit card is encrypted with PGP![/L]) [else] ([L]OOPS! credit card not encrypted with PGP[/L]) [/else][/if]
[/else][/if]


[include pages/buttonbar.html]
[set Buy Me] mv_todo=submit [/set] [set checkout_profile] name=required address=required city=required country=required [perl values config] $state = $Safe{'values'}->{state}; $country = $Safe{'values'}->{country}; $zip = $Safe{'values'}->{zip}; $state_ok = $state =~ /^\s*[A-Za-z][A-Za-z]\s*$/; $country =~ s/\W//g; $zip_ok = ($zip =~ /^\s*\d\d\d\d\d(-\d\d\d\d)?\s*$/); $us = ($country =~ /^(usa?|unitedstates)$/i); if (! $us) { return ''; } $out = <