account-profile.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <form action="<?php shopp( 'customer.action' ); ?>" method="post" class="shopp validate" autocomplete="off">
  2. <?php if ( shopp( 'customer.password-changed' ) ) : ?>
  3. <p class="success"><?php _e( 'Your password has been changed successfully.', 'Shopp' ); ?></p>
  4. <?php endif; ?>
  5. <?php if ( shopp( 'customer.profile-saved' ) && shopp( 'customer.password-change-fail' ) ) : ?>
  6. <p class="success"><?php _e( 'Your account has been updated.', 'Shopp' ); ?></p>
  7. <?php endif; ?>
  8. <p>
  9. <a href="<?php shopp( 'customer.url' ); ?>">&laquo; <?php _e( 'Return to Account Management', 'Shopp' ); ?></a>
  10. </p>
  11. <ul>
  12. <li>
  13. <label for="firstname"><?php _e( 'Your Account', 'Shopp' ); ?></label>
  14. <span>
  15. <?php shopp( 'customer.firstname', 'required=true&minlength=2&size=8&title=' . __( 'First Name', 'Shopp' ) ); ?>
  16. <label for="firstname"><?php _e( 'First', 'Shopp' ); ?></label>
  17. </span>
  18. <span>
  19. <?php shopp( 'customer.lastname', 'required=true&minlength=3&size=14&title=' . __( 'Last Name', 'Shopp' ) ); ?>
  20. <label for="lastname"><?php _e('Last','Shopp'); ?></label>
  21. </span>
  22. </li>
  23. <li>
  24. <span>
  25. <?php shopp( 'customer.company', 'size=20&title=' . __( 'Company', 'Shopp' ) ); ?>
  26. <label for="company"><?php _e( 'Company', 'Shopp' ); ?></label>
  27. </span>
  28. </li>
  29. <li>
  30. <span>
  31. <?php shopp( 'customer.phone', 'format=phone&size=15&title=' . __( 'Phone', 'Shopp' ) ); ?>
  32. <label for="phone"><?php _e( 'Phone', 'Shopp' ); ?></label>
  33. </span>
  34. </li>
  35. <li>
  36. <span>
  37. <?php shopp( 'customer.email', 'required=true&format=email&size=30&title=' . __( 'Email', 'Shopp' ) ); ?>
  38. <label for="email"><?php _e( 'Email', 'Shopp' ); ?></label>
  39. </span>
  40. </li>
  41. <li>
  42. <div class="inline">
  43. <label for="marketing"><?php shopp( 'customer.marketing', 'title=' . __( 'I would like to continue receiving e-mail updates and special offers!', 'Shopp' ) ); ?> <?php _e('I would like to continue receiving e-mail updates and special offers!','Shopp'); ?></label>
  44. </div>
  45. </li>
  46. <?php while ( shopp( 'customer.hasinfo' ) ) : ?>
  47. <li>
  48. <span>
  49. <?php shopp( 'customer.info' ); ?>
  50. <label><?php shopp( 'customer.info', 'mode=name' ); ?></label>
  51. </span>
  52. </li>
  53. <?php endwhile; ?>
  54. <li>
  55. <label for="password"><?php _e( 'Change Your Password', 'Shopp' ); ?></label>
  56. <span>
  57. <?php shopp( 'customer.password', 'size=14&title=' . __( 'New Password', 'Shopp' ) ); ?>
  58. <label for="password"><?php _e( 'New Password', 'Shopp' ); ?></label>
  59. </span>
  60. <span>
  61. <?php shopp( 'customer.confirm-password', '&size=14&title=' . __( 'Confirm Password', 'Shopp' ) ); ?>
  62. <label for="confirm-password"><?php _e('Confirm Password','Shopp'); ?></label>
  63. </span>
  64. </li>
  65. <li id="billing-address-fields">
  66. <label for="billing-address"><?php _e( 'Billing Address', 'Shopp' ); ?></label>
  67. <div>
  68. <?php shopp( 'customer.billing-address', 'title=' . __( 'Billing street address', 'Shopp' ) ); ?>
  69. <label for="billing-address"><?php _e( 'Street Address', 'Shopp' ); ?></label>
  70. </div>
  71. <div>
  72. <?php shopp( 'customer.billing-xaddress', 'title=' . __( 'Billing address line 2', 'Shopp' ) ); ?>
  73. <label for="billing-xaddress"><?php _e( 'Address Line 2', 'Shopp' ); ?></label>
  74. </div>
  75. <div class="left">
  76. <?php shopp( 'customer.billing-city', 'title=' . __( 'City billing address', 'Shopp' ) ); ?>
  77. <label for="billing-city"><?php _e( 'City', 'Shopp' ); ?></label>
  78. </div>
  79. <div class="right">
  80. <?php shopp( 'customer.billing-state', 'title=' . __( 'State/Province/Region billing address', 'Shopp' ) ); ?>
  81. <label for="billing-state"><?php _e( 'State / Province', 'Shopp' ); ?></label>
  82. </div>
  83. <div class="left">
  84. <?php shopp( 'customer.billing-postcode', 'title=' . __( 'Postal/Zip Code billing address', 'Shopp' ) ); ?>
  85. <label for="billing-postcode"><?php _e( 'Postal / Zip Code', 'Shopp' ); ?></label>
  86. </div>
  87. <div class="right">
  88. <?php shopp( 'customer.billing-country', 'title=' . __( 'Country billing address', 'Shopp' ) ); ?>
  89. <label for="billing-country"><?php _e( 'Country', 'Shopp' ); ?></label>
  90. </div>
  91. </li>
  92. <li id="shipping-address-fields">
  93. <label for="shipping-address"><?php _e( 'Shipping Address', 'Shopp' ); ?></label>
  94. <div>
  95. <?php shopp( 'customer.shipping-address', 'title=' . __( 'Shipping street address', 'Shopp' ) ); ?>
  96. <label for="shipping-address"><?php _e( 'Street Address', 'Shopp' ); ?></label>
  97. </div>
  98. <div>
  99. <?php shopp( 'customer.shipping-xaddress', 'title=' . __( 'Shipping address line 2', 'Shopp' ) ); ?>
  100. <label for="shipping-xaddress"><?php _e('Address Line 2','Shopp'); ?></label>
  101. </div>
  102. <div class="left">
  103. <?php shopp( 'customer.shipping-city', 'title=' . __( 'City shipping address', 'Shopp' ) ); ?>
  104. <label for="shipping-city"><?php _e( 'City', 'Shopp' ); ?></label>
  105. </div>
  106. <div class="right">
  107. <?php shopp( 'customer.shipping-state', 'title=' . __( 'State/Provice/Region shipping address', 'Shopp' ) ); ?>
  108. <label for="shipping-state"><?php _e( 'State / Province', 'Shopp' ); ?></label>
  109. </div>
  110. <div class="left">
  111. <?php shopp( 'customer.shipping-postcode', 'title=' . __( 'Postal/Zip Code shipping address', 'Shopp' ) ); ?>
  112. <label for="shipping-postcode"><?php _e( 'Postal / Zip Code', 'Shopp' ); ?></label>
  113. </div>
  114. <div class="right">
  115. <?php shopp( 'customer.shipping-country', 'title=' . __( 'Country shipping address', 'Shopp' ) ); ?>
  116. <label for="shipping-country"><?php _e( 'Country', 'Shopp' ); ?></label>
  117. </div>
  118. </li>
  119. </ul>
  120. <p><?php shopp( 'customer.save-button', 'label=' . __( 'Save', 'Shopp' ) ); ?></p>
  121. <p><a href="<?php shopp( 'customer.url' ); ?>">&laquo; <?php _e( 'Return to Account Management', 'Shopp' ); ?></a></p>
  122. </form>