1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <?php if ( shopp( 'cart.hasitems' ) ) : ?>
- <form id="cart" action="<?php shopp( 'cart.url' ); ?>" method="post">
- <div>
- <a href="<?php shopp( 'cart.referrer' ); ?>" class="button">« <?php _e( 'Continue Shopping', 'Shopp' ); ?></a>
- <a href="<?php shopp( 'checkout.url' ); ?>" class="right button"><?php _e( 'Proceed to Checkout', 'Shopp' ); ?> »</a>
- </div>
- <?php shopp( 'cart.function' ); ?>
- <table class="cart">
- <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' ); ?>
- <?php shopp( 'cartitem.addons-list' ); ?>
- <?php shopp( 'cartitem.inputs-list' ); ?>
- </td>
- <td>
- <?php shopp( 'cartitem.quantity', 'input=text' ); ?>
- <?php shopp( 'cartitem.remove', 'input=button' ); ?>
- </td>
- <td class="money"><?php shopp( 'cartitem.unitprice' ); ?></td>
- <td class="money"><?php shopp( 'cartitem.total' ); ?></td>
- </tr>
- <?php endwhile; ?>
- <?php while ( shopp( 'cart.discounts' ) ) : ?>
- <tr>
- <td colspan="4" class="money">
- <?php shopp( 'cart.discount-name' ); ?>
- <strong><?php shopp( 'cart.discount-applied', array( 'before' => ' — ' ) ); ?></strong>
- </td>
- </tr>
- <?php endwhile; ?>
- <tr class="totals">
- <td colspan="2" rowspan="5">
- <?php if ( shopp( 'cart.needs-shipping-estimates' ) ) : ?>
- <small><?php _e( 'Estimate shipping & taxes for:', 'Shopp' ); ?></small>
- <?php shopp( 'cart.shipping-estimates' ); ?>
- <?php endif; ?>
- <?php shopp( 'cart.apply-code' ); ?>
- </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=' . __( 'Estimated 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=' . __( 'Tax', '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>
- <tr class="buttons">
- <td colspan="4"><?php shopp( 'cart.update-button' ); ?></td>
- </tr>
- </table>
- <div>
- <a href="<?php shopp( 'cart.referrer' ); ?>" class="button">« <?php _e( 'Continue Shopping', 'Shopp' ); ?></a>
- <a href="<?php shopp( 'checkout.url' ); ?>" class="right button"><?php _e( 'Proceed to Checkout', 'Shopp' ); ?> »</a>
- </div>
- </form>
- <?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; ?>
|