checkout.php 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <form action="<?php shopp( 'checkout.url' ); ?>" method="post" class="shopp validate" id="checkout">
  2. <?php shopp( 'checkout.cart-summary' ); ?>
  3. <?php if ( shopp( 'cart.hasitems' ) ) : ?>
  4. <?php shopp( 'checkout.function' ); ?>
  5. <ul>
  6. <?php if ( shopp( 'customer.notloggedin' ) ) : ?>
  7. <li>
  8. <label for="login"><?php _e('Login to Your Account','Shopp'); ?></label>
  9. <span><label for="account-login"><?php _e('Email','Shopp'); ?></label><?php shopp('customer','account-login','size=20&title='.__('Login','Shopp')); ?></span>
  10. <span><label for="password-login"><?php _e('Password','Shopp'); ?></label><?php shopp('customer','password-login','size=20&title='.__('Password','Shopp')); ?></span>
  11. <span><?php shopp('customer','login-button','context=checkout&value=Login'); ?></span>
  12. </li>
  13. <?php endif; ?>
  14. <li>
  15. <label for="firstname"><?php _e('Contact Information','Shopp'); ?></label>
  16. <span><label for="firstname"><?php _e('First','Shopp'); ?></label><?php shopp('checkout','firstname','required=true&minlength=2&size=8&title='.__('First Name','Shopp')); ?></span>
  17. <span><label for="lastname"><?php _e('Last','Shopp'); ?></label><?php shopp('checkout','lastname','required=true&minlength=2&size=14&title='.__('Last Name','Shopp')); ?></span>
  18. <span><label for="company"><?php _e('Company/Organization','Shopp'); ?></label><?php shopp('checkout','company','size=22&title='.__('Company/Organization','Shopp')); ?></span>
  19. </li>
  20. <li>
  21. <span><label for="phone"><?php _e('Phone','Shopp'); ?></label><?php shopp('checkout','phone','format=phone&size=15&title='.__('Phone','Shopp')); ?></span>
  22. <span><label for="email"><?php _e('Email','Shopp'); ?></label><?php shopp('checkout','email','required=true&format=email&size=30&title='.__('Email','Shopp')); ?></span>
  23. </li>
  24. <?php if ( shopp( 'customer.notloggedin' ) ) : ?>
  25. <li>
  26. <span><label for="password"><?php _e('Password','Shopp'); ?></label>
  27. <?php shopp('checkout','password','required=true&format=passwords&size=16&title='.__('Password','Shopp')); ?></span>
  28. <span><label for="confirm-password"><?php _e('Confirm Password','Shopp'); ?></label>
  29. <?php shopp('checkout','confirm-password','required=true&format=passwords&size=16&title='.__('Password Confirmation','Shopp')); ?></span>
  30. </li>
  31. <?php endif; ?>
  32. <?php if ( shopp( 'cart.needs-shipped' ) ) : ?>
  33. <li class="half" id="billing-address-fields">
  34. <?php else: ?>
  35. <li>
  36. <?php endif; ?>
  37. <label for="billing-address"><?php _e( 'Billing Address', 'Shopp' ); ?></label>
  38. <div>
  39. <label for="billing-name"><?php _e( 'Name', 'Shopp' ); ?></label>
  40. <?php shopp( 'checkout.billing-name', 'required=false&title=' . __( 'Bill to', 'Shopp' ) ); ?>
  41. </div>
  42. <div>
  43. <label for="billing-address"><?php _e( 'Street Address', 'Shopp' ); ?></label>
  44. <?php shopp( 'checkout.billing-address', 'required=true&title=' . __( 'Billing street address', 'Shopp' ) ); ?>
  45. </div>
  46. <div>
  47. <label for="billing-xaddress"><?php _e( 'Address Line 2', 'Shopp' ); ?></label>
  48. <?php shopp( 'checkout.billing-xaddress', 'title=' . __( 'Billing address line 2', 'Shopp' ) ); ?>
  49. </div>
  50. <div class="left">
  51. <label for="billing-city"><?php _e( 'City', 'Shopp' ); ?></label>
  52. <?php shopp( 'checkout.billing-city', 'required=true&title=' . __( 'City billing address', 'Shopp' ) ); ?>
  53. </div>
  54. <div class="right">
  55. <label for="billing-state"><?php _e( 'State / Province', 'Shopp' ); ?></label>
  56. <?php shopp( 'checkout.billing-state', 'required=auto&title=' . __( 'State/Province/Region billing address', 'Shopp' ) ); ?>
  57. </div>
  58. <div class="left">
  59. <label for="billing-postcode"><?php _e( 'Postal / Zip Code', 'Shopp' ); ?></label>
  60. <?php shopp( 'checkout.billing-postcode', 'required=true&title=' . __( 'Postal/Zip Code billing address', 'Shopp' ) ); ?>
  61. </div>
  62. <div class="right">
  63. <label for="billing-country"><?php _e( 'Country', 'Shopp' ); ?></label>
  64. <?php shopp( 'checkout.billing-country', 'required=true&title=' . __( 'Country billing address', 'Shopp' ) ); ?>
  65. </div>
  66. <?php if ( shopp( 'cart.needs-shipped' ) ) : ?>
  67. <div class="inline">
  68. <?php shopp( 'checkout.same-shipping-address' ); ?>
  69. </div>
  70. </li>
  71. <li class="half right" id="shipping-address-fields">
  72. <label for="shipping-address"><?php _e( 'Shipping Address', 'Shopp' ); ?></label>
  73. <div>
  74. <label for="shipping-address"><?php _e( 'Name', 'Shopp' ); ?></label>
  75. <?php shopp( 'checkout.shipping-name', 'required=false&title=' . __( 'Ship to', 'Shopp' ) ); ?>
  76. </div>
  77. <div>
  78. <label for="shipping-address"><?php _e( 'Street Address', 'Shopp' ); ?></label>
  79. <?php shopp( 'checkout.shipping-address', 'required=true&title=' . __( 'Shipping street address', 'Shopp' ) ); ?>
  80. </div>
  81. <div>
  82. <label for="shipping-xaddress"><?php _e( 'Address Line 2', 'Shopp' ); ?></label>
  83. <?php shopp( 'checkout.shipping-xaddress', 'title=' . __( 'Shipping address line 2', 'Shopp' ) ); ?>
  84. </div>
  85. <div class="left">
  86. <label for="shipping-city"><?php _e( 'City', 'Shopp' ); ?></label>
  87. <?php shopp( 'checkout.shipping-city', 'required=true&title=' . __( 'City shipping address', 'Shopp' ) ); ?>
  88. </div>
  89. <div class="right">
  90. <label for="shipping-state"><?php _e( 'State / Province', 'Shopp' ); ?></label>
  91. <?php shopp( 'checkout.shipping-state', 'required=auto&title=' . __( 'State/Provice/Region shipping address', 'Shopp' ) ); ?>
  92. </div>
  93. <div class="left">
  94. <label for="shipping-postcode"><?php _e( 'Postal / Zip Code', 'Shopp' ); ?></label>
  95. <?php shopp( 'checkout.shipping-postcode', 'required=true&title=' . __( 'Postal/Zip Code shipping address', 'Shopp' ) ); ?>
  96. </div>
  97. <div class="right">
  98. <label for="shipping-country"><?php _e( 'Country', 'Shopp' ); ?></label>
  99. <?php shopp( 'checkout.shipping-country', 'required=true&title=' . __( 'Country shipping address', 'Shopp' ) ); ?>
  100. </div>
  101. </li>
  102. <?php else: ?>
  103. </li>
  104. <?php endif; ?>
  105. <?php if ( shopp( 'checkout.billing-localities' ) ) : ?>
  106. <li class="half locale hidden">
  107. <div>
  108. <label for="billing-locale"><?php _e( 'Local Jurisdiction', 'Shopp' ); ?></label>
  109. <?php shopp( 'checkout.billing-locale' ); ?>
  110. </div>
  111. </li>
  112. <?php endif; ?>
  113. <li>
  114. <?php shopp( 'checkout.payment-options' ); ?>
  115. <?php shopp( 'checkout.gateway-inputs' ); ?>
  116. </li>
  117. <?php if ( shopp( 'checkout.card-required' ) ) : ?>
  118. <li class="payment">
  119. <label for="billing-card"><?php _e( 'Payment Information', 'Shopp' ); ?></label>
  120. <span>
  121. <label for="billing-card"><?php _e( 'Credit/Debit Card Number', 'Shopp' ); ?></label>
  122. <?php shopp( 'checkout.billing-card', 'required=true&size=30&title=' . __( 'Credit/Debit Card Number', 'Shopp' ) ); ?>
  123. </span>
  124. <span>
  125. <label for="billing-cvv"><?php _e( 'Security ID', 'Shopp' ); ?></label>
  126. <?php shopp( 'checkout.billing-cvv', 'size=7&minlength=3&maxlength=4&title=' . __( 'Card\'s security code (3-4 digits on the back of the card)', 'Shopp' ) ); ?>
  127. </span>
  128. </li>
  129. <li class="payment">
  130. <span>
  131. <label for="billing-cardexpires-mm"><?php _e('MM','Shopp'); ?></label>
  132. <?php shopp( 'checkout.billing-cardexpires-mm', 'required=true&minlength=2&maxlength=2&title=' . __( 'Card\'s 2-digit expiration month', 'Shopp' ) ); ?> /
  133. </span>
  134. <span>
  135. <label for="billing-cardexpires-yy"><?php _e( 'YY', 'Shopp' ); ?></label>
  136. <?php shopp( 'checkout.billing-cardexpires-yy', 'required=true&minlength=2&maxlength=2&title=' . __( 'Card\'s 2-digit expiration year', 'Shopp' ) ); ?>
  137. </span>
  138. <span>
  139. <label for="billing-cardtype"><?php _e( 'Card Type', 'Shopp' ); ?></label>
  140. <?php shopp( 'checkout.billing-cardtype', 'required=true&title=' . __( 'Card Type', 'Shopp' ) ); ?>
  141. </span>
  142. </li>
  143. <?php if ( shopp( 'checkout.billing-xcsc-required' ) ) : // Extra billing security fields ?>
  144. <li class="payment">
  145. <span>
  146. <label for="billing-xcsc-start"><?php _e( 'Start Date', 'Shopp' ); ?></label>
  147. <?php shopp( 'checkout.billing-xcsc', 'input=start&size=7&minlength=5&maxlength=5&title=' . __( 'Card\'s start date (MM/YY)', 'Shopp' ) ); ?>
  148. </span>
  149. <span>
  150. <label for="billing-xcsc-issue"><?php _e( 'Issue #', 'Shopp' ); ?></label>
  151. <?php shopp( 'checkout.billing-xcsc', 'input=issue&size=7&minlength=3&maxlength=4&title=' . __( 'Card\'s issue number', 'Shopp' ) ); ?>
  152. </span>
  153. </li>
  154. <?php endif; ?>
  155. <?php endif; ?>
  156. <li>
  157. <div class="inline">
  158. <label for="marketing"><?php shopp('checkout','marketing'); ?> <?php _e( 'Yes, I would like to receive e-mail updates and special offers!', 'Shopp' ); ?></label>
  159. </div>
  160. </li>
  161. </ul>
  162. <p class="submit"><?php shopp( 'checkout.submit', 'value=' . __( 'Submit Order', 'Shopp' ) ); ?></p>
  163. <?php endif; ?>
  164. </form>