re-work coupons to allow multiple coupon types
[bse.git] / site / templates / checkoutfinal_base.tmpl
CommitLineData
1eee6a64 1<:wrap base.tmpl:>
90e5205e 2<table width="100%" border="0" cellspacing="0" cellpadding="0">
1eee6a64 3 <tr>
27feb834 4 <td width="80%" height="24">&nbsp;&nbsp;<font face="Arial, Helvetica, sans-serif" size="4" color="#FF7F00"><b>Your
1eee6a64
TC
5 Purchase Details</b></font></td>
6 <td height="24">&nbsp;</td>
7 </tr>
8 <tr>
9 <td bgcolor="#999999" colspan="2" height="1"><img src="/images/trans_pixel.gif" width="24" height="1" border="0"></td>
10 </tr>
11 <tr>
12 <td colspan="2">
13 <table width="100%" border="0" cellspacing="0" cellpadding="0">
90e5205e 14 <tr>
1eee6a64 15 <td width="100"><img src="/images/trans_pixel.gif" width="100" height="10" border="0"></td>
27feb834 16 <td bgcolor="#999999" width="100%">&nbsp;<font face="Verdana, Arial, Helvetica, sans-serif" size="-2">/
1eee6a64
TC
17 <a href="<:ifAdmin:>/cgi-bin/admin/admin.pl?id=1<:or:>/<:eif:>"><font color="#FFFFFF">Home</font></a>
18 / <a href="/shop/index.html"><font color="#FFFFFF"><:article title:></font></a>
19 /</font></td>
90e5205e
TC
20 </tr>
21 </table>
1eee6a64
TC
22 </td>
23 </tr>
24</table>
25<p> <b><font face="Verdana, Arial, Helvetica, sans-serif" size="3"> Your order
26 number is: <:order id |%06d:></font></b></p>
31d1ea53 27<:ifMsg:><p class="error"><:msg:></p><:or:><:eif:>
1eee6a64
TC
28<font class="article_body_text" face="Verdana, Arial, Helvetica, sans-serif" size="2">
29<p> The <:siteName:> store is run on a secure encrypted server, your details are
30 safe with us.<br>
31</p>
41e7c841 32<:if Payment CC:><p>Paid by credit card.</p><:if Order ccOnline:><p>Credit Card Receipt Number: <:order ccReceipt:></p><:or Order:><:eif Order:><:or Payment:><:eif Payment:>
d49f56a6 33<:if Payment Cheque:>
08123550
TC
34<p>Please send your cheque to:</p>
35<ul><:cfg shop address1 |h:><br>
36<:cfg shop address2 |h:><br>
37<:cfg shop address3 |h:></ul>
d49f56a6
TC
38<:or Payment:><:eif Payment:>
39<:if Payment CallMe:>
08123550 40<p>We will call you to arrange payment.</p>
d49f56a6 41<:or Payment:><:eif Payment:>
13a986ee
TC
42<:if Payment PayPal:>
43<p>Paid via PayPal, transaction ID <:order paypal_tran_id:></p>
44<:or Payment:><:eif Payment:>
d49f56a6 45<:include custom/checkout_final_payments.include optional:>
1eee6a64
TC
46</font>
47<table width="100%" border="0" cellspacing="0" cellpadding="0">
48 <tr>
27feb834 49 <td align="center" bgcolor="#CCCCCC" width="100%" height="18"> <font size="2" face="Verdana, Arial, Helvetica, sans-serif">
1eee6a64
TC
50 <b>Shopping Cart Items</b></font></td>
51 </tr>
52</table>
27feb834 53<table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#666666">
1eee6a64
TC
54 <tr valign="middle" align="center">
55 <td width="100%">
abf5bbc6 56 <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#EEEEEE">
27feb834 57 <tr valign="middle" align="center" bgcolor="#666666">
1eee6a64
TC
58 <td width="100%" align="left" height="18"> &nbsp;<font face="Verdana, Arial, Helvetica, sans-serif" size="-2" color="#FFFFFF"><b>Item:</b></font>&nbsp;<font face="Verdana, Arial, Helvetica, sans-serif" size="-2" color="#FFFFFF">(All
59 prices in AUD &#150; includes GST and shipping costs where applicable)</font></td>
60 <td nowrap height="18"> &nbsp;<font face="Verdana, Arial, Helvetica, sans-serif" size="-2" color="#FFFFFF"><b>Qty:</b></font>&nbsp;</td>
61 <td height="18"> &nbsp;<font face="Verdana, Arial, Helvetica, sans-serif" size="-2" color="#FFFFFF"><b>Price:</b></font>&nbsp;</td>
90e5205e 62 </tr>
f4f29389
TC
63 <:.set items = [ order.items ] -:>
64 <:.for item in items -:>
1eee6a64 65 <tr valign="middle" align="center" bgcolor="#FFFFFF">
b55d4af1
TC
66 <td width="100%" align="left"> &nbsp;<span class="cartproducttitle"><a href="<:= item.product.link | html :>"><:= item.product.description | html:></a></span> <:= item.nice_options | html :><:.if item.session_id:>(session at <:= item.session.location.description | html:> <:= bse.date("%H:%M %d/%m/%Y", item.session.when_at) | html:>)<:.end if:>
67<:-.if order.coupon_active and !order.coupon_cart_wide and item.product_discount_units > 0 :>
68<br><span class="itemdiscount">
69 <:-.if item.product_discount_units < item.units -:>
70Saved $<:= bse.number("money", item.product_discount) :> on the first <:= item.product_discount_units :> units
71 <:-.else -:>
72Saved $<:= bse.number("money", item.product_discount) :> on each unit
73 <:-.end if -:>
74&nbsp;(total $<:= bse.number("money", item.product_discount * item.product_discount_units) :>)
75</span>
76<:-.end if -:>
77</td>
f4f29389
TC
78 <td nowrap align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><:= item.units | html :></font></td>
79 <td align="right"> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>$<:= bse.number("money", item.price) | html :></b></font></td>
90e5205e 80 </tr>
f4f29389 81 <:.end for -:>
33702eb2 82 <:if Shipping_cost:>
a39d8599 83 <tr valign="middle" align="center" bgcolor="#FFFFFF">
33702eb2 84 <td colspan=2 width="100%" align="left">&nbsp;<font face="Verdana, Arial, Helvetica, sans-serif" size="-2">Shipping charges (for <:shipping_method:><:if Delivery_in:>, delivery in <:delivery_in:> days<:eif:>)</font></td>
d8674b8b 85 <td align="right"> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>$<:money shipping_cost:></b></font></td>
a39d8599 86 </tr>
33702eb2 87 <:or Shipping_cost:><:eif Shipping_cost:>
1eee6a64
TC
88 </table>
89 </td>
90 </tr>
91</table>
abf5bbc6 92<table width="100%" border="0" cellspacing="0" cellpadding="0">
2ced88e0 93<:.if order.coupon -:>
2ace323a 94 <tr>
2ced88e0 95 <td>Coupon code: <:= order.coupon.code -:></td>
2ace323a
TC
96 <td height="20">&nbsp;</td>
97 <td height="20" bgcolor="#666666">&nbsp;</td>
98 <td align="CENTER" height="20" bgcolor="#666666" NOWRAP><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">
99 <b>DISCOUNT</b></font></td>
100 <td height="20" bgcolor="#666666">&nbsp;</td>
101 </tr>
102 <tr>
103 <td colspan="2">&nbsp;</td>
104 <td height="20" style="border-left: 1px solid #666666">&nbsp;</td>
105 <td align="CENTER">$<:= bse.number("money", order.product_cost_discount) -:></td>
106 <td height="20" style="border-right: 1px solid #666666">&nbsp;</td>
107 </tr>
108
109<:.end if -:>
1eee6a64
TC
110 <tr>
111 <td>&nbsp;</td>
112 <td height="20">&nbsp;</td>
27feb834
TC
113 <td height="20" bgcolor="#666666">&nbsp;</td>
114 <td align="CENTER" height="20" bgcolor="#666666" NOWRAP><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">
1eee6a64 115 <b>GRAND TOTAL</b></font></td>
27feb834 116 <td height="20" bgcolor="#666666">&nbsp;</td>
1eee6a64
TC
117 </tr>
118 <tr>
119 <td width="100%" valign="MIDDLE"><a href="/shop/index.html"><img src="/images/store/browse_more.gif" width="133" height="21" border="0" alt="Browse More"></a></td>
120 <td NOWRAP>
121 <table border="0" cellspacing="0" cellpadding="0">
122 <tr></tr>
90e5205e 123 </table>
90e5205e 124 </td>
1eee6a64
TC
125 <td><img src="/images/store/left_bottom_corner_line.gif" width="26" height="31"></td>
126 <td align="center" bgcolor="#FFFFFF" height="100%" NOWRAP> <font size="3" face="Verdana, Arial, Helvetica, sans-serif">
127 <b>$<: money order total :></b></font></td>
128 <td><img src="/images/store/right_bottom_corner_line.gif" width="26" height="31"></td>
129 </tr>
130 <tr>
131 <td width="100%"></td>
132 <td></td>
133 <td></td>
27feb834 134 <td bgcolor="#666666"><img src="/images/trans_pixel.gif" width="1" height="1"></td>
1eee6a64 135 <td></td>
90e5205e
TC
136 </tr>
137</table>
eb9d306d
TC
138<:if Orderpaidfiles:>
139<h3>You've bought access to the following files:</h3>
140 <table>
141 <tr>
142 <th>Description</th>
143 <th>Filename</th>
144 <th>Size</th>
145 </tr>
146 <:iterator begin orderpaidfiles:>
147 <tr>
148 <td><:orderpaidfile description:></td>
149 <td><a href="<:orderpaidfile url:>"><:orderpaidfile displayName:></a></font></td>
150 <td align="right"><:kb orderpaidfile sizeInBytes:></td>
151 </tr>
152 <:iterator end orderpaidfiles:> </table>
153<:or Orderpaidfiles:><:eif Orderpaidfiles:>