PluginProbe
Welcart e-Commerce / 1.3.8
Welcart e-Commerce v1.3.8
2.12.4 2.12.3 2.11.35 2.12.2 2.12.1 2.11.34 2.11.33 2.11.32 2.11.31 2.11.30 1.3.16 1.3.17 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 All 292 releases
usc-e-shop / templates / cart / confirm.php

confirm.php in Welcart e-Commerce 1.3.8, at templates/cart/confirm.php

262 lines 9.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 global $usces_entries, $usces_carts, $usces_members;
3 usces_get_members();
4 usces_get_entries();
5 usces_get_carts();
6 $html = '<div id="info-confirm">
7
8 <div class="usccart_navi">
9 <ol class="ucart">
10 <li class="ucart usccart">' . __('1.Cart','usces') . '</li>
11 <li class="ucart usccustomer">' . __('2.Customer Info','usces') . '</li>
12 <li class="ucart uscdelivery">' . __('3.Deli. & Pay.','usces') . '</li>
13 <li class="ucart uscconfirm usccart_confirm">' . __('4.Confirm','usces') . '</li>
14 </ol>
15 </div>';
16
17 $html .= '<div class="header_explanation">';
18 $header = '';
19 $html .= apply_filters('usces_filter_confirm_page_header', $header);
20 $html .= '</div>';
21 $html .= '<div class="error_message">' . $this->error_message . '</div>';
22
23 $html .= '<div id="cart">
24 <div class="currency_code">' . __('Currency','usces') . ' : ' . __(usces_crcode( 'return' ), 'usces') . '</div>
25 <table cellspacing="0" id="cart_table">
26 <thead>
27 <tr>
28 <th scope="row" class="num">' . __('No.','usces') . '</th>
29 <th class="thumbnail">&nbsp;&nbsp;</th>
30 <th>' . __('Items','usces') . '</th>
31 <th class="price">' . __('Unit price','usces') . '</th>
32 <th class="quantity">'.__('Quantity', 'usces').'</th>
33 <th class="subtotal">'.__('Amount', 'usces').'</th>
34 <th class="action"></th>
35 </tr>
36 </thead>
37 <tbody>';
38
39 $member = $this->get_member();
40
41 $html .= usces_get_confirm_rows('return');
42
43 $html .= '</tbody>
44 <tfoot>
45 <tr>
46 <th colspan="5" class="aright">'.__('total items', 'usces').'</th>
47 <th class="aright">' . usces_crform($usces_entries['order']['total_items_price'], true, false, 'return') . '</th>
48 <th>&nbsp;</th>
49 </tr>';
50 if( $this->options['membersystem_state'] == 'activate' && $this->options['membersystem_point'] == 'activate' && !empty($usces_entries['order']['usedpoint']) ) {
51 $html .= '<tr>
52 <td colspan="5" class="aright">'.__('Used points', 'usces').'</td>
53 <td class="aright" style="color:#FF0000">' . number_format($usces_entries['order']['usedpoint']) . '</td>
54 <td>&nbsp;</td>
55 </tr>';
56 }
57 if( !empty($usces_entries['order']['discount']) ) {
58 $html .= '<tr>
59 <td colspan="5" class="aright">'.apply_filters('usces_confirm_discount_label', __('Campaign disnount', 'usces')).'</td>
60 <td class="aright" style="color:#FF0000">' . usces_crform($usces_entries['order']['discount'], true, false, 'return') . '</td>
61 <td>&nbsp;</td>
62 </tr>';
63 }
64 $html .= '<tr>
65 <td colspan="5" class="aright">'.__('Shipping', 'usces').'</td>
66 <td class="aright">' . usces_crform($usces_entries['order']['shipping_charge'], true, false, 'return') . '</td>
67 <td>&nbsp;</td>
68 </tr>';
69 if( !empty($usces_entries['order']['cod_fee']) ) {
70 $html .= '<tr>
71 <td colspan="5" class="aright">'.apply_filters('usces_filter_cod_label', __('COD fee', 'usces')).'</td>
72 <td class="aright">' . usces_crform($usces_entries['order']['cod_fee'], true, false, 'return') . '</td>
73 <td>&nbsp;</td>
74 </tr>';
75 }
76 if( !empty($usces_entries['order']['tax']) ) {
77 $html .= '<tr>
78 <td colspan="5" class="aright">'.__('consumption tax', 'usces').'</td>
79 <td class="aright">' . usces_crform($usces_entries['order']['tax'], true, false, 'return') . '</td>
80 <td>&nbsp;</td>
81 </tr>';
82 }
83 $html .= '<tr>
84 <th colspan="5" class="aright">'.__('Total Amount', 'usces').'</th>
85 <th class="aright">' . usces_crform($usces_entries['order']['total_full_price'], true, false, 'return') . '</th>
86 <th>&nbsp;</th>
87 </tr>
88 </tfoot>
89 </table>';
90
91 if( $this->options['membersystem_state'] == 'activate' && $this->options['membersystem_point'] == 'activate' && $this->is_member_logged_in() ) {
92 $html .= '<form action="' . USCES_CART_URL . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}">
93 <div class="error_message">' . $this->error_message . '</div>
94 <table cellspacing="0" id="point_table">
95 <tr>
96 <td>'.__('The current point', 'usces').'</td>
97 <td><span class="point">' . $member['point'] . '</span>pt</td>
98 </tr>
99 <tr>
100 <td>'.__('Points you are using here', 'usces').'</td>
101 <td><input name="offer[usedpoint]" class="used_point" type="text" value="' . esc_attr($usces_entries['order']['usedpoint']) . '" />pt</td>
102 </tr>
103 <tr>
104 <td colspan="2"><input name="use_point" type="submit" class="use_point_button" value="'.__('Use the points', 'usces').'" /></td>
105 </tr>
106 </table>';
107 $html = apply_filters('usces_filter_confirm_point_inform', $html);
108 $html .= '</form>';
109 }
110
111 $html .= '</div>
112 <table id="confirm_table">
113 <tr class="ttl">
114 <td colspan="2"><h3>'.__('Customer Information', 'usces').'</h3></td>
115 </tr>
116 <tr>
117 <th>'.__('e-mail adress', 'usces').'</th>
118 <td>' . esc_html($usces_entries['customer']['mailaddress1']) . '</td>
119 </tr>';
120
121 $html .= uesces_addressform( 'confirm', $usces_entries );
122
123 ////20100818ysk start
124 //$html .= usces_custom_field_info($usces_entries, 'customer', 'name_pre', 'return');
125 ////20100818ysk end
126 //$html .= '<tr class="bdc">
127 // <th>'.__('Full name', 'usces').'</th>
128 // <td>' . esc_html($usces_entries['customer']['name1']) . ' ' . esc_html($usces_entries['customer']['name2']) . '</td>
129 // </tr>';
130 //if( USCES_JP ){
131 // $html .= '<tr>
132 // <th>'.__('furigana', 'usces').'</th>
133 // <td>' . esc_html($usces_entries['customer']['name3']) . ' ' . esc_html($usces_entries['customer']['name4']) . '</td>
134 // </tr>';
135 //}
136 ////20100818ysk start
137 //$html .= usces_custom_field_info($usces_entries, 'customer', 'name_after', 'return');
138 ////20100818ysk end
139 //$html .= '<tr class="bdc">
140 // <th>'.__('Zip/Postal Code', 'usces').'</th>
141 // <td>' . esc_html($usces_entries['customer']['zipcode']) . '</td>
142 // </tr>
143 // <tr>
144 // <th>'.__('Province', 'usces').'</th>
145 // <td>' . esc_html($usces_entries['customer']['pref']) . '</td>
146 // </tr>
147 // <tr class="bdc">
148 // <th>'.__('city', 'usces').'</th>
149 // <td>' . esc_html($usces_entries['customer']['address1']) . '</td>
150 // </tr>
151 // <tr>
152 // <th>'.__('numbers', 'usces').'</th>
153 // <td>' . esc_html($usces_entries['customer']['address2']) . '</td>
154 // </tr>
155 // <tr class="bdc">
156 // <th>'.__('building name', 'usces').'</th>
157 // <td>' . esc_html($usces_entries['customer']['address3']) . '</td>
158 // </tr>
159 // <tr>
160 // <th>'.__('Phone number', 'usces').'</th>
161 // <td>' . esc_html($usces_entries['customer']['tel']) . '</td>
162 // </tr>
163 // <tr class="bdc">
164 // <th>'.__('FAX number', 'usces').'</th>
165 // <td>' . esc_html($usces_entries['customer']['fax']) . '</td>
166 // </tr>';
167 ////20100818ysk start
168 //$html .= usces_custom_field_info($usces_entries, 'customer', 'fax_after', 'return');
169 ////20100818ysk end
170 //$html .= '<tr class="ttl">';
171 //
172 //$html .= '<td colspan="2"><h3>'.__('Shipping address information', 'usces').'</h3></td>
173 // </tr>';
174 //
175 ////20100818ysk start
176 //$html .= usces_custom_field_info($usces_entries, 'delivery', 'name_pre', 'return');
177 ////20100818ysk end
178 //$html .= '<tr>
179 // <th>'.__('Full name', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['name1']) . ' ' . esc_html($usces_entries['delivery']['name2']) . '</td>
180 // </tr>';
181 //if( USCES_JP ){
182 // $html .= '<tr class="bdc">
183 // <th>'.__('furigana', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['name3']) . ' ' . esc_html($usces_entries['delivery']['name4']) . '</td>
184 // </tr>';
185 //}
186 ////20100818ysk start
187 //$html .= usces_custom_field_info($usces_entries, 'delivery', 'name_after', 'return');
188 ////20100818ysk end
189 //$html .= '<tr>
190 // <th>'.__('Zip/Postal Code', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['zipcode']) . '</td>
191 // </tr>
192 // <tr class="bdc">
193 // <th>'.__('Province', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['pref']) . '</td>
194 // </tr>
195 // <tr>
196 // <th>'.__('city', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['address1']) . '</td>
197 // </tr>
198 // <tr class="bdc">
199 // <th>'.__('numbers', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['address2']) . '</td>
200 // </tr>
201 // <tr>
202 // <th>'.__('building name', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['address3']) . '</td>
203 // </tr>
204 // <tr class="bdc">
205 // <th>'.__('Phone number', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['tel']) . '</td>
206 // </tr>
207 // <tr>
208 // <th>'.__('FAX number', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['fax']) . '</td>
209 // </tr>';
210 ////20100818ysk start
211 //$html .= usces_custom_field_info($usces_entries, 'delivery', 'fax_after', 'return');
212 ////20100818ysk end
213
214
215
216 $html .= '<tr>';
217 $html .= '<td class="ttl" colspan="2"><h3>'.__('Others', 'usces').'</h3></td>
218 </tr>';
219 //20101208ysk start
220 /*
221 $html .= '<tr>
222 <th>'.__('shipping option', 'usces').'</th><td>' . esc_html(usces_delivery_method_name( $usces_entries['order']['delivery_method'], 'return' )) . '</td>
223 </tr>
224 <tr class="bdc">
225 <th>'.__('Delivery Time', 'usces').'</th><td>' . esc_html($usces_entries['order']['delivery_time']) . '</td>
226 </tr>';
227 */
228 $shipping_info = '<tr>
229 <th>'.__('shipping option', 'usces').'</th><td>' . esc_html(usces_delivery_method_name( $usces_entries['order']['delivery_method'], 'return' )) . '</td>
230 </tr>
231 <tr>
232 <th>'.__('Delivery date', 'usces').'</th><td>' . esc_html($usces_entries['order']['delivery_date']) . '</td>
233 </tr>
234 <tr class="bdc">
235 <th>'.__('Delivery Time', 'usces').'</th><td>' . esc_html($usces_entries['order']['delivery_time']) . '</td>
236 </tr>';
237 $html .= apply_filters('usces_filter_confirm_shipping_info', $shipping_info);
238 //20101208ysk end
239
240 $html .= '<tr>
241 <th>'.__('payment method', 'usces').'</th><td>' . esc_html($usces_entries['order']['payment_name'] . usces_payment_detail($usces_entries)) . '</td>
242 </tr>';
243 //20100818ysk start
244 //require_once( USCES_PLUGIN_DIR . "/includes/confirm_custom_order_form.php");
245 $html .= usces_custom_field_info($usces_entries, 'order', '', 'return');
246 $html .= '<tr>
247 <th>'.__('Notes', 'usces').'</th><td>' . nl2br(esc_html($usces_entries['order']['note'])) . '</td>
248 </tr>';
249 //20100818ysk end
250 $html .= '</table>';
251
252 require( USCES_PLUGIN_DIR . "/includes/purchase_button.php");
253
254
255 $html .= '<div class="footer_explanation">';
256 $footer = '';
257 $html .= apply_filters('usces_filter_confirm_page_footer', $footer);
258 $html .= '</div>';
259
260 $html .= '</div>';
261 ?>
262