123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <?php if ( shopp( 'cart.hasitems' ) ) : ?>
- <div id="cart" class="shopp">
- <table>
- <tr>
- <th scope="col" class="item"><?php _e( 'Cart Items', 'Shopp' ); ?></th>
- <th scope="col"><?php _e( 'Quantity', 'Shopp' ); ?></th>
- <th scope="col" class="money"><?php _e( 'Item Price', 'Shopp' ); ?></th>
- <th scope="col" class="money"><?php _e( 'Item Total', 'Shopp' ); ?></th>
- </tr>
- <?php while ( shopp( 'cart.items' ) ) : ?>
- <tr>
- <td>
- <a href="<?php shopp( 'cartitem.url' ); ?>"><?php shopp( 'cartitem.name' ); ?></a>
- <?php shopp( 'cartitem.options', 'show=selected&before= (&after=)' ); ?>
- <?php shopp( 'cartitem.inputs-list' ); ?>
- <?php shopp( 'cartitem.addons-list' ); ?>
- </td>
- <td><?php shopp( 'cartitem.quantity' ); ?></td>
- <td class="money"><?php shopp( 'cartitem.unitprice' ); ?></td>
- <td class="money"><?php shopp( 'cartitem.total' ); ?></td>
- </tr>
- <?php endwhile; ?>
- <?php while ( shopp( 'cart.promos' ) ) : ?>
- <tr>
- <td colspan="4" class="money"><?php shopp( 'cart.promo-name' ); ?><strong><?php shopp( 'cart.promo-discount', array( 'before' => ' — ' ) ); ?></strong></td>
- </tr>
- <?php endwhile; ?>
- <tr class="totals">
- <td colspan="2" rowspan="5">
- <?php if ( ( shopp( 'cart.has-shipping-methods' ) ) ) : ?>
- <small><?php _e( 'Select a shipping method:', 'Shopp' ); ?></small>
- <form action="<?php shopp( 'shipping.url' ); ?>" method="post">
- <ul id="shipping-methods">
- <?php while ( shopp( 'shipping.methods' ) ) : ?>
- <li>
- <label>
- <?php shopp( 'shipping.method-selector' ); ?>
- <?php shopp( 'shipping.method-name' ); ?> —
- <strong><?php shopp( 'shipping.method-cost' ); ?></strong><br />
- <small><?php shopp( 'shipping.method-delivery' ); ?></small>
- </label>
- </li>
- <?php endwhile; ?>
- </ul>
- <?php shopp( 'shipping.update-button' ); ?>
- </form>
- <?php endif; ?>
- </td>
- <th scope="row"><?php _e( 'Subtotal', 'Shopp' ); ?></th>
- <td class="money"><?php shopp( 'cart.subtotal' ); ?></td>
- </tr>
- <?php if ( shopp( 'cart.hasdiscount' ) ) : ?>
- <tr class="totals">
- <th scope="row"><?php _e( 'Discount', 'Shopp' ); ?></th>
- <td class="money">-<?php shopp( 'cart.discount' ); ?></td>
- </tr>
- <?php endif; ?>
- <?php if ( shopp( 'cart.needs-shipped' ) ) : ?>
- <tr class="totals">
- <th scope="row"><?php shopp( 'cart.shipping', 'label=' . __( 'Shipping', 'Shopp' ) ); ?></th>
- <td class="money"><?php shopp( 'cart.shipping' ); ?></td>
- </tr>
- <?php endif; ?>
- <tr class="totals">
- <th scope="row"><?php shopp( 'cart.tax', 'label=' . __( 'Taxes', 'Shopp' ) ); ?></th>
- <td class="money"><?php shopp('cart','tax' ); ?></td>
- </tr>
- <tr class="totals total">
- <th scope="row"><?php _e( 'Total', 'Shopp' ); ?></th>
- <td class="money"><?php shopp( 'cart.total' ); ?></td>
- </tr>
- </table>
- <?php if ( shopp( 'checkout.hasdata' ) ) : ?>
- <ul>
- <?php while ( shopp( 'checkout.orderdata' ) ) : ?>
- <li><strong><?php shopp( 'checkout.data', 'name' ); ?>:</strong> <?php shopp( 'checkout.data' ); ?></li>
- <?php endwhile; ?>
- </ul>
- <?php endif; ?>
- </div>
- <?php else : ?>
- <p class="notice"><?php _e( 'There are currently no items in your shopping cart.', 'Shopp' ); ?></p>
- <p><a href="<?php shopp( 'storefront.url' ); ?>">« <?php _e( 'Continue Shopping', 'Shopp' ); ?></a></p>
- <?php endif; ?>
|