re-work coupons to allow multiple coupon types
[bse.git] / site / templates / checkoutpay_base.tmpl
CommitLineData
41e7c841
TC
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><:title:></b></font></td>
5 <td height="24">&nbsp;</td>
6 </tr>
7 <tr>
8 <td bgcolor="#999999" colspan="2" height="1"><img src="/images/trans_pixel.gif" width="24" height="1" border="0"></td>
9 </tr>
10 <tr>
11 <td colspan="2">
12 <table width="100%" border="0" cellspacing="0" cellpadding="0">
13 <tr>
14 <td width="100"><img src="/images/trans_pixel.gif" width="100" height="10" border="0"></td>
15 <td bgcolor="#999999" width="100%">&nbsp;<font face="Verdana, Arial, Helvetica, sans-serif" size="-2">/
16 <a href="<:ifAdmin:>/cgi-bin/admin/admin.pl?id=1<:or:>/<:eif:>"><font color="#FFFFFF">Home</font></a>
17 / <a href="/shop/index.html"><font color="#FFFFFF"><:article title:></font></a>
18 /</font></td>
19 </tr>
20 </table>
21 </td>
22 </tr>
23</table>
14604ada
TC
24<:if Order id:>
25<h2>Payment for order <:arithmetic sprintf("%06d", [order id] ) :></h2>
26<:or Order:>
41e7c841
TC
27<p> <b><font face="Verdana, Arial, Helvetica, sans-serif" size="3"> Thank you
28 for shopping at <:siteName:></font></b></p>
14604ada 29<:eif Order:>
41e7c841
TC
30<font class="article_body_text" face="Verdana, Arial, Helvetica, sans-serif" size="2">
31<p> The <:siteName:> store is run on a secure encrypted server, your details are
32 safe with us.</p></font>
33<table width="100%" border="0" cellspacing="0" cellpadding="0">
34 <tr>
35 <td align="center" bgcolor="#CCCCCC" width="100%" height="18"> <font size="2" face="Verdana, Arial, Helvetica, sans-serif">
36 <b>Shopping Cart Items</b></font></td>
37 </tr>
38</table>
39<table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#666666">
40 <tr valign="middle" align="center">
41 <td width="100%">
42 <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#EEEEEE">
43 <tr valign="middle" align="center" bgcolor="#666666">
44 <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
45 prices in AUD &#150; includes GST and shipping costs where applicable)</font></td>
46 <td nowrap height="18"> &nbsp;<font face="Verdana, Arial, Helvetica, sans-serif" size="-2" color="#FFFFFF"><b>Qty:</b></font>&nbsp;</td>
47 <td height="18"> &nbsp;<font face="Verdana, Arial, Helvetica, sans-serif" size="-2" color="#FFFFFF"><b>Price:</b></font>&nbsp;</td>
48 </tr>
023761bd
TC
49 <:-.set items = [ ordercart.items ] -:>
50 <:.if items.size -:>
51 <:.for item in items -:>
9a3d402d 52 <:.set options = [ item.option_list ] -:>
023761bd
TC
53 <:.set session = item.session -:>
54 <tr valign="middle" align="center" bgcolor="#FFFFFF">
b55d4af1
TC
55 <td width="100%" align="left"> &nbsp;<span class="cartproducttitle"><a href="<:= item.link | html:>"><:= item.product.description | html :></a></span> <:.if options.size:>(<:.for option in options:><:= loop.index ? ", " : "" :><:= option.desc | html:>:
56 <:= option.display |html :><:.end for:>)<:.end if -:><:.if item.session_id:>(session at <:= session.location.description | html:> <:= bse.date("%H:%M %d/%m/%Y", session.when_at) -:>)<:.end if:>
57<:-.if ordercart.coupon_active and !ordercart.coupon_cart_wide and item.product_discount_units > 0 :>
58<br><span class="itemdiscount">
59 <:-.if item.product_discount_units < item.units -:>
60Saved $<:= bse.number("money", item.product_discount) :> on the first <:= item.product_discount_units :> units
61 <:-.else -:>
62Saved $<:= bse.number("money", item.product_discount) :> on each unit
63 <:-.end if -:>
64&nbsp;(total $<:= bse.number("money", item.product_discount * item.product_discount_units) :>)
65</span>
66<:-.end if -:>
67</td>
68</td>
023761bd
TC
69 <td nowrap align="center">
70 <input type="text" name="quantity_<:= loop.index :>" size="2" value="<:= item.units :>">
71 </td>
72 <td align="right"> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>$<:= bse.number("money", item.price) | html :></b></font></td>
73 </tr>
74 <:.end for -:>
75 <:.else -:>
76 <tr valign="middle" align="center" bgcolor="#FFFFFF">
77 <td width="100%" height="20" align="center" colspan="4"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">You have no items in your shopping cart!</font></td>
78 </tr>
79 <:.end if -:>
33702eb2 80 <:if Shipping_cost:>
53107448 81 <tr valign="middle" align="center" bgcolor="#FFFFFF">
33702eb2 82 <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<:or Delivery_in:><:eif Delivery_in:>)</font></td>
d8674b8b 83 <td align="right"> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>$<:money shipping_cost:></b></font></td>
53107448 84 </tr>
33702eb2 85 <:or Shipping_cost:><:eif Shipping_cost:>
41e7c841
TC
86 </table>
87 </td>
88 </tr>
89</table>
023761bd 90<table width="100%" border="0" cellspacing="0" cellpadding="0">
9a3d402d 91<:.if ordercart.coupon_active -:>
023761bd
TC
92 <tr>
93 <td>Coupon code: <:= ordercart.coupon_code -:>
94</td>
95 <td height="20">&nbsp;</td>
96 <td height="20" bgcolor="#666666">&nbsp;</td>
97 <td align="CENTER" height="20" bgcolor="#666666" NOWRAP><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">
98 <b>DISCOUNT</b></font></td>
99 <td height="20" bgcolor="#666666">&nbsp;</td>
100 </tr>
101 <tr>
102 <td colspan="2">&nbsp;</td>
103 <td height="20" style="border-left: 1px solid #666666">&nbsp;</td>
104 <td align="CENTER">$<:= bse.number("money", ordercart.product_cost_discount) -:></td>
105 <td height="20" style="border-right: 1px solid #666666">&nbsp;</td>
106 </tr>
107<:.end if -:>
41e7c841
TC
108 <tr>
109 <td>&nbsp;</td>
110 <td height="20">&nbsp;</td>
111 <td height="20" bgcolor="#666666">&nbsp;</td>
112 <td align="CENTER" height="20" bgcolor="#666666" NOWRAP><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">
113 <b>GRAND TOTAL</b></font></td>
114 <td height="20" bgcolor="#666666">&nbsp;</td>
115 </tr>
116 <tr>
be28d40c 117 <td width="50%" valign="MIDDLE"><a href="/shop/index.html"><img src="/images/store/browse_more.gif" width="133" height="21" border="0" alt="Browse More"></a> <a href="<:target shop checkout:>">Return to Checkout</a></td>
41e7c841
TC
118 <td NOWRAP width="50%">
119 <table border="0" cellspacing="0" cellpadding="0">
120 <tr></tr>
121 </table>
122 </td>
123 <td><img src="/images/store/left_bottom_corner_line.gif" width="26" height="31"></td>
124 <td align="center" bgcolor="#FFFFFF" height="100%" NOWRAP> <font size="3" face="Verdana, Arial, Helvetica, sans-serif">
125 <b>$<:money total:></b></font></td>
126 <td><img src="/images/store/right_bottom_corner_line.gif" width="26" height="31"></td>
127 </tr>
128 <tr>
129 <td width="50%"></td>
130 <td width="50%"></td>
131 <td></td>
132 <td bgcolor="#666666"><img src="/images/trans_pixel.gif" width="1" height="1"></td>
133 <td></td>
134 </tr>
135</table>
796809d1 136<form action="<:dyntarget shop:>" method="post">
14604ada 137<:ifOrder id:><input type="hidden" name="order_id" value="<:order id:>" /><:or:><:eif:>
41e7c841
TC
138 <font face="Verdana, Arial, Helvetica, sans-serif" size="3"> <b>Payment Details:</b></font>
139 <hr size="1" noshade>
140<:ifMsg:><p><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><:msg:></font></b></p><:or:><:eif:>
141 <:if Payments CC :>
13a986ee 142 <:if MultPaymentTypes:><p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><input type="radio" name="paymentType" value="<:paymentTypeId CC:>" <:checkedPayment CC:>> Credit Card</font></p><:or MultPaymentTypes:><input type=hidden name=paymentType value="<:paymentTypeId CC:>" <:checkedPayment CC:>><:eif MultPaymentTypes:>
41e7c841
TC
143 <table border="0" cellspacing="0" cellpadding="0">
144 <tr>
145 <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> Name on
146 Card: </font></td>
147 <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">
6abd8ce8 148 <input type="Text" name="ccName" size=30 value="<:old ccName:>"><:error_img ccName:>
41e7c841
TC
149 (As per card) *</font></td>
150 </tr>
151 <tr>
152 <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> Card Number:</font></td>
153 <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">
154 <input type="Text" name="cardNumber" size=16 maxlength="16" value="<:old cardNumber:>"><:error_img cardNumber:>*
155 CVV: <input type="text" name="cardVerify" size="4" maxlength="4" value="<:old cardVerify:>" /><:error_img cardVerify:> (no spaces)</font></td>
156 </tr>
157 <tr>
158 <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> Expiry
159 Date:</font></td>
160 <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">
161 <input type="Text" name="cardExpiry" size=5 maxlength="5" value="<:old cardExpiry:>"><:error_img cardExpiry:>
2cc81811 162 (eg: <:dyntoday "%m/%y":>) *</font></td>
41e7c841 163 </tr>
745a6c13
TC
164<:if Cfg shop show_card_type:>
165 <tr>
166 <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> Card Type:</font></td>
167 <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">
1546e1f0 168 <select name="ccType">
745a6c13
TC
169 <option value="MC">Mastercard</option>
170 <option value="VI">Visa</option>
745a6c13 171 </select>
1546e1f0 172 <:error_img ccType:> *</font></td>
745a6c13
TC
173 </tr>
174<:or Cfg:><:eif Cfg:>
41e7c841
TC
175 </table>
176 <:or Payments:><:eif Payments:>
177 <:if Payments Cheque:>
13a986ee
TC
178 <:if MultPaymentTypes:><p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> <input type="radio" name="paymentType" value="<:paymentTypeId Cheque:>" <:checkedPayment Cheque:>/>
179 Cheque</font></p><:or MultPaymentTypes:><input type="hidden" name="paymentType" value="<:paymentTypeId Cheque:>"><:eif MultPaymentTypes:>
41e7c841
TC
180 <p> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> Please send your cheque to:</font></p>
181 <ul> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> <:cfg shop address1:><br />
182 <:cfg shop address2:><br />
183 <:cfg shop address3:></font></ul>
184 <:or Payments:><:eif Payments:>
185 <:if Payments CallMe:>
13a986ee 186 <:if MultPaymentTypes:><p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><input type="radio" name="paymentType" value="<:paymentTypeId CallMe:>" <:checkedPayment CallMe:>/> Contact me for billing details</font></p>
41e7c841 187 <:or MultPaymentTypes:>
13a986ee 188 <input type="hidden" name="paymentType" value="<:paymentTypeId CallMe:>">
41e7c841
TC
189 <p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">We will call you to arrange for payment.</font></p>
190 <:eif MultPaymentTypes:>
191 <:or Payments:>
192
193 <:eif Payments:>
13a986ee
TC
194 <:if Payments PayPal:>
195<:if MultPaymentTypes:><p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> <input type=radio name=paymentType value="<:paymentTypeId PayPal:>" <:checkedPayment PayPal:>/>
196<img src="https://www.paypal.com/en_AU/i/logo/PayPal_mark_37x23.gif" align="absmiddle" style="margin-right:7px;"><span style="font-size:11px; font-family: Arial, Verdana;">The safer, easier way to pay.</span></font></p><:or MultPaymentTypes:><input type=hidden name=paymentType value=1><:eif MultPaymentTypes:>
197
198 <:or Payments:><:eif Payments:>
41e7c841
TC
199 <:include custom/payment_type.include optional:>
200 <p>&nbsp; </p>
201 <font face="Verdana, Arial, Helvetica, sans-serif" size="3"> <b>Tax Invoice
202 / Receipt &amp; Delivery Costs:</b></font>
203 <hr size="1" noshade>
204 <table border="0" cellspacing="0" cellpadding="0" width="375">
205 <tr>
206 <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">We will
207 include a tax invoice / receipt with your order, clearly showing the GST
208 and delivery components of the purchase price.</font></td>
209 </tr>
210 </table>
211 <p>
212 <input type="submit" value="Update" name="checkupdate" />
213 <input type="submit" value="Purchase Now" name="payment">
214 <input type="reset" value="Reset Form" name="reset">
215 </p>
216 </form>