summary.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php if ( shopp( 'cart.hasitems' ) ) : ?>
  2. <div id="cart" class="shopp">
  3. <table>
  4. <tr>
  5. <th scope="col" class="item"><?php _e( 'Cart Items', 'Shopp' ); ?></th>
  6. <th scope="col"><?php _e( 'Quantity', 'Shopp' ); ?></th>
  7. <th scope="col" class="money"><?php _e( 'Item Price', 'Shopp' ); ?></th>
  8. <th scope="col" class="money"><?php _e( 'Item Total', 'Shopp' ); ?></th>
  9. </tr>
  10. <?php while ( shopp( 'cart.items' ) ) : ?>
  11. <tr>
  12. <td>
  13. <a href="<?php shopp( 'cartitem.url' ); ?>"><?php shopp( 'cartitem.name' ); ?></a>
  14. <?php shopp( 'cartitem.options', 'show=selected&before= (&after=)' ); ?>
  15. <?php shopp( 'cartitem.inputs-list' ); ?>
  16. <?php shopp( 'cartitem.addons-list' ); ?>
  17. </td>
  18. <td><?php shopp( 'cartitem.quantity' ); ?></td>
  19. <td class="money"><?php shopp( 'cartitem.unitprice' ); ?></td>
  20. <td class="money"><?php shopp( 'cartitem.total' ); ?></td>
  21. </tr>
  22. <?php endwhile; ?>
  23. <?php while ( shopp( 'cart.promos' ) ) : ?>
  24. <tr>
  25. <td colspan="4" class="money"><?php shopp( 'cart.promo-name' ); ?><strong><?php shopp( 'cart.promo-discount', array( 'before' => '&nbsp;&mdash;&nbsp;' ) ); ?></strong></td>
  26. </tr>
  27. <?php endwhile; ?>
  28. <tr class="totals">
  29. <td colspan="2" rowspan="5">
  30. <?php if ( ( shopp( 'cart.has-shipping-methods' ) ) ) : ?>
  31. <small><?php _e( 'Select a shipping method:', 'Shopp' ); ?></small>
  32. <form action="<?php shopp( 'shipping.url' ); ?>" method="post">
  33. <ul id="shipping-methods">
  34. <?php while ( shopp( 'shipping.methods' ) ) : ?>
  35. <li>
  36. <label>
  37. <?php shopp( 'shipping.method-selector' ); ?>
  38. <?php shopp( 'shipping.method-name' ); ?> &mdash;
  39. <strong><?php shopp( 'shipping.method-cost' ); ?></strong><br />
  40. <small><?php shopp( 'shipping.method-delivery' ); ?></small>
  41. </label>
  42. </li>
  43. <?php endwhile; ?>
  44. </ul>
  45. <?php shopp( 'shipping.update-button' ); ?>
  46. </form>
  47. <?php endif; ?>
  48. </td>
  49. <th scope="row"><?php _e( 'Subtotal', 'Shopp' ); ?></th>
  50. <td class="money"><?php shopp( 'cart.subtotal' ); ?></td>
  51. </tr>
  52. <?php if ( shopp( 'cart.hasdiscount' ) ) : ?>
  53. <tr class="totals">
  54. <th scope="row"><?php _e( 'Discount', 'Shopp' ); ?></th>
  55. <td class="money">-<?php shopp( 'cart.discount' ); ?></td>
  56. </tr>
  57. <?php endif; ?>
  58. <?php if ( shopp( 'cart.needs-shipped' ) ) : ?>
  59. <tr class="totals">
  60. <th scope="row"><?php shopp( 'cart.shipping', 'label=' . __( 'Shipping', 'Shopp' ) ); ?></th>
  61. <td class="money"><?php shopp( 'cart.shipping' ); ?></td>
  62. </tr>
  63. <?php endif; ?>
  64. <tr class="totals">
  65. <th scope="row"><?php shopp( 'cart.tax', 'label=' . __( 'Taxes', 'Shopp' ) ); ?></th>
  66. <td class="money"><?php shopp('cart','tax' ); ?></td>
  67. </tr>
  68. <tr class="totals total">
  69. <th scope="row"><?php _e( 'Total', 'Shopp' ); ?></th>
  70. <td class="money"><?php shopp( 'cart.total' ); ?></td>
  71. </tr>
  72. </table>
  73. <?php if ( shopp( 'checkout.hasdata' ) ) : ?>
  74. <ul>
  75. <?php while ( shopp( 'checkout.orderdata' ) ) : ?>
  76. <li><strong><?php shopp( 'checkout.data', 'name' ); ?>:</strong> <?php shopp( 'checkout.data' ); ?></li>
  77. <?php endwhile; ?>
  78. </ul>
  79. <?php endif; ?>
  80. </div>
  81. <?php else : ?>
  82. <p class="notice"><?php _e( 'There are currently no items in your shopping cart.', 'Shopp' ); ?></p>
  83. <p><a href="<?php shopp( 'storefront.url' ); ?>">&laquo; <?php _e( 'Continue Shopping', 'Shopp' ); ?></a></p>
  84. <?php endif; ?>