re-work coupons to allow multiple coupon types
[bse.git] / site / templates / checkoutfinal_base.tmpl
1 <:wrap base.tmpl:> 
2 <table width="100%" border="0" cellspacing="0" cellpadding="0">
3   <tr> 
4     <td width="80%" height="24">&nbsp;&nbsp;<font face="Arial, Helvetica, sans-serif" size="4" color="#FF7F00"><b>Your 
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">
14         <tr> 
15           <td width="100"><img src="/images/trans_pixel.gif" width="100" height="10" border="0"></td>
16           <td bgcolor="#999999" width="100%">&nbsp;<font face="Verdana, Arial, Helvetica, sans-serif" size="-2">/ 
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>
20         </tr>
21       </table>
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>
27 <:ifMsg:><p class="error"><:msg:></p><:or:><:eif:>
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>
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:>
33 <:if Payment Cheque:>
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>
38 <:or Payment:><:eif Payment:>
39 <:if Payment CallMe:>
40 <p>We will call you to arrange payment.</p>
41 <:or Payment:><:eif Payment:>
42 <:if Payment PayPal:>
43 <p>Paid via PayPal, transaction ID <:order paypal_tran_id:></p>
44 <:or Payment:><:eif Payment:>
45 <:include custom/checkout_final_payments.include optional:>
46 </font> 
47 <table width="100%" border="0" cellspacing="0" cellpadding="0">
48   <tr> 
49     <td align="center" bgcolor="#CCCCCC" width="100%" height="18"> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
50       <b>Shopping Cart Items</b></font></td>
51   </tr>
52 </table>
53 <table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#666666">
54   <tr valign="middle" align="center"> 
55     <td width="100%"> 
56       <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#EEEEEE">
57         <tr valign="middle" align="center" bgcolor="#666666"> 
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>
62         </tr>
63         <:.set items = [ order.items ] -:>
64         <:.for item in items -:>
65         <tr valign="middle" align="center" bgcolor="#FFFFFF"> 
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 -:>
70 Saved $<:= bse.number("money", item.product_discount) :> on the first <:= item.product_discount_units :> units
71   <:-.else -:>
72 Saved $<:= 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>
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>
80         </tr>
81         <:.end for -:>
82         <:if Shipping_cost:>
83         <tr valign="middle" align="center" bgcolor="#FFFFFF"> 
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>
85           <td align="right"> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>$<:money shipping_cost:></b></font></td>
86         </tr>
87         <:or Shipping_cost:><:eif Shipping_cost:>
88       </table>
89     </td>
90   </tr>
91 </table>
92 <table width="100%" border="0" cellspacing="0" cellpadding="0">    
93 <:.if order.coupon -:>
94     <tr>
95       <td>Coupon code: <:= order.coupon.code -:></td>
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 -:>
110   <tr> 
111     <td>&nbsp;</td>
112     <td height="20">&nbsp;</td>
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"> 
115       <b>GRAND TOTAL</b></font></td>
116     <td height="20" bgcolor="#666666">&nbsp;</td>
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>
123       </table>
124     </td>
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>
134     <td bgcolor="#666666"><img src="/images/trans_pixel.gif" width="1" height="1"></td>
135     <td></td>
136   </tr>
137 </table>
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:>