-
Notifications
You must be signed in to change notification settings - Fork 1
/
p2_previous_event_portal.html.htm
82 lines (80 loc) · 2.77 KB
/
p2_previous_event_portal.html.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="cart.css">
<title></title>
</head>
<body>
<h1>Shopping Cart</h1>
{if #cart.updateForm.errors}
<ul class="errors">
{loop items="#cart.updateForm.errors" value="error"}
<li>{#error.message}</li>
{/loop}
</ul>
{/if}
{#cart.updateForm.tag.open}
<a href="{#cart.urls.continueShopping}" class="continue-shopping">Continue Shopping</a>
<a href="{#cart.urls.checkout}" class="checkout-button">Checkout</a>
<table cellspacing="0" class="shopping-cart">
<thead>
<tr class="headings">
<th class="link"> </td>
<th class="product">Item</td>
<th class="price">Price</td>
<th class="quantity">Quantity</td>
<th class="price">Total</td>
</tr>
</thead>
<tbody>
{loop items="#cart.products" value="product"}
<tr>
<td class="link"><label>{#product.fields.remove.tag} remove</label></td>
<td class="product">
<div class="product-img"><a href="{#product.url}">{#product.primaryImages.thumb.tag}</a></div>
<div class="product-name">
<a href="{#product.url}">{#product.productName}</a>
{loop items="#product.options" value="option"}
<br />{#option.label}: {#option.value}
{/loop}
</div>
</td>
<td class="price">
{#product.currentPrice.value}{if #product.pricePerUnit exists && #product.pricePerUnit != "None"} / {#product.pricePerUnit}{/if}
</td>
<td class="quantity">
{#product.fields.quantity.tag}{#product.fields.partialQuantity.tag}
</td>
<td class="price">{#product.totalPrice.value}</td>
</tr>
{/loop}
{if #cart.coupons}
<tr>
<td class="quantity-span" colspan="4">Subtotal</td>
<td class="price">{#cart.cartTotalBeforeDiscounts.value}</td>
</tr>
{loop items="#cart.coupons" value="coupon"}
<tr>
<td class="quantity-span" colspan="4">{#coupon.name} ({#coupon.code})</td>
<td class="price">-{#coupon.savingsValue}</td>
</tr>
{/loop}
{/if}
<tr class="totals">
<td colspan="2"><input type="submit" name="submit" value="Update cart" /></td>
<td class="quantity-span" colspan="2">Total</td>
<td class="price">{#cart.cartTotal.value}</td>
</tr>
</tbody>
</table>
{#cart.updateForm.tag.close}
{#cart.updateForm.tag.open}
<div class="coupon">
Have a coupon? {#cart.updateForm.fields.coupon.tag} <input type="submit" value="Apply" />
</div>
{#cart.updateForm.tag.close}
<div style="clear: both;"></div>
<a href="{#cart.urls.continueShopping}" class="continue-shopping">Continue Shopping</a>
<a href="{#cart.urls.checkout}" class="checkout-button">Checkout</a>
</body>
</html>