PluginProbe
Welcart e-Commerce / 1.4.10
Welcart e-Commerce v1.4.10
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.4.10, at templates/cart/confirm.php

270 lines 10.2 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 if( !empty($usces_entries['order']['tax']) && 'products' == usces_get_tax_target() ) {
65 $html .= '<tr>
66 <td colspan="5" class="aright">'.__('consumption tax', 'usces').'</td>
67 <td class="aright">' . usces_crform($usces_entries['order']['tax'], true, false, 'return') . '</td>
68 <td>&nbsp;</td>
69 </tr>';
70 }
71 $html .= '<tr>
72 <td colspan="5" class="aright">'.__('Shipping', 'usces').'</td>
73 <td class="aright">' . usces_crform($usces_entries['order']['shipping_charge'], true, false, 'return') . '</td>
74 <td>&nbsp;</td>
75 </tr>';
76 if( !empty($usces_entries['order']['cod_fee']) ) {
77 $html .= '<tr>
78 <td colspan="5" class="aright">'.apply_filters('usces_filter_cod_label', __('COD fee', 'usces')).'</td>
79 <td class="aright">' . usces_crform($usces_entries['order']['cod_fee'], true, false, 'return') . '</td>
80 <td>&nbsp;</td>
81 </tr>';
82 }
83 if( !empty($usces_entries['order']['tax']) && 'all' == usces_get_tax_target() ) {
84 $html .= '<tr>
85 <td colspan="5" class="aright">'.__('consumption tax', 'usces').'</td>
86 <td class="aright">' . usces_crform($usces_entries['order']['tax'], true, false, 'return') . '</td>
87 <td>&nbsp;</td>
88 </tr>';
89 }
90 $html .= '<tr>
91 <th colspan="5" class="aright">'.__('Total Amount', 'usces').'</th>
92 <th class="aright">' . usces_crform($usces_entries['order']['total_full_price'], true, false, 'return') . '</th>
93 <th>&nbsp;</th>
94 </tr>
95 </tfoot>
96 </table>';
97
98 if( $this->options['membersystem_state'] == 'activate' && $this->options['membersystem_point'] == 'activate' && $this->is_member_logged_in() ) {
99 $html .= '<form action="' . USCES_CART_URL . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}">
100 <div class="error_message">' . $this->error_message . '</div>
101 <table cellspacing="0" id="point_table">
102 <tr>
103 <td>'.__('The current point', 'usces').'</td>
104 <td><span class="point">' . $member['point'] . '</span>pt</td>
105 </tr>
106 <tr>
107 <td>'.__('Points you are using here', 'usces').'</td>
108 <td><input name="offer[usedpoint]" class="used_point" type="text" value="' . esc_attr($usces_entries['order']['usedpoint']) . '" />pt</td>
109 </tr>
110 <tr>
111 <td colspan="2"><input name="use_point" type="submit" class="use_point_button" value="'.__('Use the points', 'usces').'" /></td>
112 </tr>
113 </table>';
114 $html = apply_filters('usces_filter_confirm_point_inform', $html);
115 $html .= wp_nonce_field( 'use_point', 'wc_nonce', true, false );
116 $html .= '</form>';
117 }
118 $html .= apply_filters('usces_filter_confirm_after_form', NULL);
119 $html .= '</div>
120 <table id="confirm_table">
121 <tr class="ttl">
122 <td colspan="2"><h3>'.__('Customer Information', 'usces').'</h3></td>
123 </tr>
124 <tr>
125 <th>'.__('e-mail adress', 'usces').'</th>
126 <td>' . esc_html($usces_entries['customer']['mailaddress1']) . '</td>
127 </tr>';
128
129 $html .= uesces_addressform( 'confirm', $usces_entries );
130
131 ////20100818ysk start
132 //$html .= usces_custom_field_info($usces_entries, 'customer', 'name_pre', 'return');
133 ////20100818ysk end
134 //$html .= '<tr class="bdc">
135 // <th>'.__('Full name', 'usces').'</th>
136 // <td>' . esc_html($usces_entries['customer']['name1']) . ' ' . esc_html($usces_entries['customer']['name2']) . '</td>
137 // </tr>';
138 //if( USCES_JP ){
139 // $html .= '<tr>
140 // <th>'.__('furigana', 'usces').'</th>
141 // <td>' . esc_html($usces_entries['customer']['name3']) . ' ' . esc_html($usces_entries['customer']['name4']) . '</td>
142 // </tr>';
143 //}
144 ////20100818ysk start
145 //$html .= usces_custom_field_info($usces_entries, 'customer', 'name_after', 'return');
146 ////20100818ysk end
147 //$html .= '<tr class="bdc">
148 // <th>'.__('Zip/Postal Code', 'usces').'</th>
149 // <td>' . esc_html($usces_entries['customer']['zipcode']) . '</td>
150 // </tr>
151 // <tr>
152 // <th>'.__('Province', 'usces').'</th>
153 // <td>' . esc_html($usces_entries['customer']['pref']) . '</td>
154 // </tr>
155 // <tr class="bdc">
156 // <th>'.__('city', 'usces').'</th>
157 // <td>' . esc_html($usces_entries['customer']['address1']) . '</td>
158 // </tr>
159 // <tr>
160 // <th>'.__('numbers', 'usces').'</th>
161 // <td>' . esc_html($usces_entries['customer']['address2']) . '</td>
162 // </tr>
163 // <tr class="bdc">
164 // <th>'.__('building name', 'usces').'</th>
165 // <td>' . esc_html($usces_entries['customer']['address3']) . '</td>
166 // </tr>
167 // <tr>
168 // <th>'.__('Phone number', 'usces').'</th>
169 // <td>' . esc_html($usces_entries['customer']['tel']) . '</td>
170 // </tr>
171 // <tr class="bdc">
172 // <th>'.__('FAX number', 'usces').'</th>
173 // <td>' . esc_html($usces_entries['customer']['fax']) . '</td>
174 // </tr>';
175 ////20100818ysk start
176 //$html .= usces_custom_field_info($usces_entries, 'customer', 'fax_after', 'return');
177 ////20100818ysk end
178 //$html .= '<tr class="ttl">';
179 //
180 //$html .= '<td colspan="2"><h3>'.__('Shipping address information', 'usces').'</h3></td>
181 // </tr>';
182 //
183 ////20100818ysk start
184 //$html .= usces_custom_field_info($usces_entries, 'delivery', 'name_pre', 'return');
185 ////20100818ysk end
186 //$html .= '<tr>
187 // <th>'.__('Full name', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['name1']) . ' ' . esc_html($usces_entries['delivery']['name2']) . '</td>
188 // </tr>';
189 //if( USCES_JP ){
190 // $html .= '<tr class="bdc">
191 // <th>'.__('furigana', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['name3']) . ' ' . esc_html($usces_entries['delivery']['name4']) . '</td>
192 // </tr>';
193 //}
194 ////20100818ysk start
195 //$html .= usces_custom_field_info($usces_entries, 'delivery', 'name_after', 'return');
196 ////20100818ysk end
197 //$html .= '<tr>
198 // <th>'.__('Zip/Postal Code', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['zipcode']) . '</td>
199 // </tr>
200 // <tr class="bdc">
201 // <th>'.__('Province', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['pref']) . '</td>
202 // </tr>
203 // <tr>
204 // <th>'.__('city', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['address1']) . '</td>
205 // </tr>
206 // <tr class="bdc">
207 // <th>'.__('numbers', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['address2']) . '</td>
208 // </tr>
209 // <tr>
210 // <th>'.__('building name', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['address3']) . '</td>
211 // </tr>
212 // <tr class="bdc">
213 // <th>'.__('Phone number', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['tel']) . '</td>
214 // </tr>
215 // <tr>
216 // <th>'.__('FAX number', 'usces').'</th><td>' . esc_html($usces_entries['delivery']['fax']) . '</td>
217 // </tr>';
218 ////20100818ysk start
219 //$html .= usces_custom_field_info($usces_entries, 'delivery', 'fax_after', 'return');
220 ////20100818ysk end
221
222
223
224 $html .= '<tr>';
225 $html .= '<td class="ttl" colspan="2"><h3>'.__('Others', 'usces').'</h3></td>
226 </tr>';
227 //20101208ysk start
228 /*
229 $html .= '<tr>
230 <th>'.__('shipping option', 'usces').'</th><td>' . esc_html(usces_delivery_method_name( $usces_entries['order']['delivery_method'], 'return' )) . '</td>
231 </tr>
232 <tr class="bdc">
233 <th>'.__('Delivery Time', 'usces').'</th><td>' . esc_html($usces_entries['order']['delivery_time']) . '</td>
234 </tr>';
235 */
236 $shipping_info = '<tr>
237 <th>'.__('shipping option', 'usces').'</th><td>' . esc_html(usces_delivery_method_name( $usces_entries['order']['delivery_method'], 'return' )) . '</td>
238 </tr>
239 <tr>
240 <th>'.__('Delivery date', 'usces').'</th><td>' . esc_html($usces_entries['order']['delivery_date']) . '</td>
241 </tr>
242 <tr class="bdc">
243 <th>'.__('Delivery Time', 'usces').'</th><td>' . esc_html($usces_entries['order']['delivery_time']) . '</td>
244 </tr>';
245 $html .= apply_filters('usces_filter_confirm_shipping_info', $shipping_info);
246 //20101208ysk end
247
248 $html .= '<tr>
249 <th>'.__('payment method', 'usces').'</th><td>' . esc_html($usces_entries['order']['payment_name'] . usces_payment_detail($usces_entries)) . '</td>
250 </tr>';
251 //20100818ysk start
252 //require_once( USCES_PLUGIN_DIR . "/includes/confirm_custom_order_form.php");
253 $html .= usces_custom_field_info($usces_entries, 'order', '', 'return');
254 $html .= '<tr>
255 <th>'.__('Notes', 'usces').'</th><td>' . nl2br(esc_html($usces_entries['order']['note'])) . '</td>
256 </tr>';
257 //20100818ysk end
258 $html .= '</table>';
259
260 require( USCES_PLUGIN_DIR . "/includes/purchase_button.php");
261
262
263 $html .= '<div class="footer_explanation">';
264 $footer = '';
265 $html .= apply_filters('usces_filter_confirm_page_footer', $footer);
266 $html .= '</div>';
267
268 $html .= '</div>';
269 ?>
270