Plugin Directory

Changeset 1707472


Ignore:
Timestamp:
08/03/2017 06:19:31 AM (9 years ago)
Author:
sepanet
Message:

CHG: BIC hinzugefügt.

Location:
sepanet/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sepanet/trunk/readme.txt

    r1706405 r1707472  
    55Requires at least: 4.6
    66Tested up to: 4.8
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    9393== Changelog ==
    9494
     95= 1.1 =
     96
    9597= 1.0 =
    9698
  • sepanet/trunk/woocommerce-sepanet.php

    r1706694 r1707472  
    130130                <label for="' . esc_attr( $this->id ) . '-iban">' . __( 'IBAN', 'sepanet' ) . ' <span class="required">*</span></label>
    131131                <input id="' . esc_attr( $this->id ) . '-iban" class="input-text wc-sepanet-iban" type="text" autocomplete="off" placeholder="•••• •••••••• ••••••••••" name="' . ( $args['fields_have_names'] ? $this->id . '-iban' : '' ) . '" />
     132            </p>',
     133            'bic-field' => '<p class="form-row form-row-wide">
     134                <label for="' . esc_attr( $this->id ) . '-bic">' . __( 'BIC', 'sepanet' ) . ' <span class="required">*</span></label>
     135                <input id="' . esc_attr( $this->id ) . '-bic" class="input-text wc-sepanet-bic" type="text" autocomplete="off" placeholder="•••••••••••" name="' . ( $args['fields_have_names'] ? $this->id . '-bic' : '' ) . '" />
    132136            </p>',
    133137            'tan-button' => '<p class="form-row form-row-wide">'.__('SEPA.net benötigt für die Validierung eine TAN-Nummer. Bitte tragen Sie Ihre Handy-Nr ein und klicken anschließend auf den "Tan anfordern"-Button. Sie bekommen von SEPA.net eine SMS zugeschickt, welche die TAN beinhaltet, welche in das dazugehörige Feld eingetragen werden muss.', 'sepanet').'</p><p class="form-row form-row-first">
     
    158162    public function validate_fields() {
    159163        $valid = true;
    160         if(empty($_POST['spyr_sepanet-tan']))
     164        if(empty($_POST['sepanet-tan']))
    161165        {
    162166            wc_add_notice( __('Bitte Tan angeben.', 'sepanet'), 'error' );
    163167            $valid = false;
    164168        }
    165         if(empty($_POST['spyr_sepanet-iban']))
     169        if(empty($_POST['sepanet-iban']))
    166170        {
    167171            wc_add_notice( __('Bitte IBAN angeben.', 'sepanet'), 'error' );
     172            $valid = false;
     173        }
     174        if(empty($_POST['sepanet-bic']))
     175        {
     176            wc_add_notice( __('Bitte BIC angeben.', 'sepanet'), 'error' );
    168177            $valid = false;
    169178        }
     
    253262                'customer_email' => $address['email'],
    254263                'customer_name' => $address['first_name'].' '.$address['last_name'],
    255                 'customer_iban' => $_POST['spyr_sepanet-iban'],
    256                 'customer_tan' => $_POST['spyr_sepanet-tan'],
    257                 'customer_tan' => $_POST['spyr_sepanet-tan'],
     264                'customer_iban' => $_POST['sepanet-iban'],
     265                'customer_tan' => $_POST['sepanet-tan'],
     266                'customer_bic' => $_POST['sepanet-bic'],
    258267                'shopDomain' => $blog_title,
    259268                'productName' => $productName,
Note: See TracChangeset for help on using the changeset viewer.