account-orders.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <p>
  2. <a href="<?php shopp( 'customer.url' ); ?>">&laquo; <?php _e( 'Return to Account Management', 'Shopp' ); ?></a>
  3. </p>
  4. <?php if ( shopp( 'purchase.get-id' ) ) : ?>
  5. <?php shopp( 'purchase.receipt' ); ?>
  6. <?php return; ?>
  7. <?php endif; ?>
  8. <form action="<?php shopp( 'customer.action' ); ?>" method="post" class="shopp validate" autocomplete="off">
  9. <?php if ( shopp( 'customer.has-purchases' ) ) : ?>
  10. <table cellspacing="0" cellpadding="0">
  11. <thead>
  12. <tr>
  13. <th scope="col"><?php _e( 'Date', 'Shopp' ); ?></th>
  14. <th scope="col"><?php _e( 'Order', 'Shopp' ); ?></th>
  15. <th scope="col"><?php _e( 'Status', 'Shopp' ); ?></th>
  16. <th scope="col"><?php _e( 'Total', 'Shopp' ); ?></th>
  17. </tr>
  18. </thead>
  19. <?php while( shopp( 'customer.purchases' ) ) : ?>
  20. <tr>
  21. <td><?php shopp( 'purchase.date' ); ?></td>
  22. <td><?php shopp( 'purchase.id' ); ?></td>
  23. <td><?php shopp( 'purchase.status' ); ?></td>
  24. <td><?php shopp( 'purchase.total' ); ?></td>
  25. <td><a href="<?php shopp( 'customer.order' ); ?>"><?php _e( 'View Order', 'Shopp' ); ?></a></td>
  26. </tr>
  27. <?php endwhile; ?>
  28. </table>
  29. <?php else: ?>
  30. <p><?php _e( 'You have no orders, yet.', 'Shopp' ); ?></p>
  31. <?php endif; // end 'has-purchases' ?>
  32. </form>
  33. <p>
  34. <a href="<?php shopp( 'customer.url' ); ?>">&laquo; <?php _e( 'Return to Account Management', 'Shopp' ); ?></a>
  35. </p>