PluginProbe
Welcart e-Commerce / 2.11.30
Welcart e-Commerce v2.11.30
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 / includes / delivery_secure_form.php

delivery_secure_form.php in Welcart e-Commerce 2.11.30, at includes/delivery_secure_form.php

46 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if(isset($this))
3 $usces = &$this;
4
5 $payments = usces_get_system_option( 'usces_payment_method', 'sort' );
6 $payments = apply_filters( 'usces_filter_available_payment_method', $payments );
7 foreach ( (array)$payments as $id => $payment ) {
8 if( !empty( $payment['settlement'] ) ){
9
10 switch( $payment['settlement'] ){
11 case 'acting_remise_card':
12 $paymod_id = 'remise';
13 $have_continue_charge = usces_have_continue_charge();
14 $have_regular_order = usces_have_regular_order();
15
16 if( 'on' != $usces->options['acting_settings'][$paymod_id]['card_activate']
17 || 'on' != $usces->options['acting_settings'][$paymod_id]['howpay']
18 || 'on' != $usces->options['acting_settings'][$paymod_id]['activate']
19 || 'activate' != $payment['use']
20 || ( $have_continue_charge || $have_regular_order ) ){
21 break;
22 }
23
24 $div = isset( $_POST['div'] ) ? esc_html($_POST['div']) : '0';
25
26 $html .= '
27 <table class="customer_form" id="' . $paymod_id . '">
28 <tr>
29 <th scope="row">'.__('payment method', 'usces').'</th>
30 <td colspan="2">
31 <select name="offer[div]" id="div_remise">
32 <option value="0"' . (('0' === $div) ? ' selected="selected"' : '') . '>'.__('Single payment', 'usces').'</option>
33 <option value="1"' . (('1' === $div) ? ' selected="selected"' : '') . '>2'.__('-time payment', 'usces').'</option>
34 <option value="2"' . (('2' === $div) ? ' selected="selected"' : '') . '>'.__('Libor Funding pay', 'usces').'</option>
35 </select>
36 </td>
37 </tr>
38 </table>';
39 break;
40 }
41 $html .= apply_filters( 'usces_filter_delivery_secure_form_loop', '', $payment );
42 }
43 }
44 $html = apply_filters( 'usces_filter_delivery_secure_form', $html, $payments );
45 $html .= wp_nonce_field( 'wc_delivery_secure_nonce', 'wc_nonce', false, false );
46