Changeset 1707472
- Timestamp:
- 08/03/2017 06:19:31 AM (9 years ago)
- Location:
- sepanet/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
woocommerce-sepanet.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sepanet/trunk/readme.txt
r1706405 r1707472 5 5 Requires at least: 4.6 6 6 Tested up to: 4.8 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 93 93 == Changelog == 94 94 95 = 1.1 = 96 95 97 = 1.0 = 96 98 -
sepanet/trunk/woocommerce-sepanet.php
r1706694 r1707472 130 130 <label for="' . esc_attr( $this->id ) . '-iban">' . __( 'IBAN', 'sepanet' ) . ' <span class="required">*</span></label> 131 131 <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' : '' ) . '" /> 132 136 </p>', 133 137 '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"> … … 158 162 public function validate_fields() { 159 163 $valid = true; 160 if(empty($_POST['s pyr_sepanet-tan']))164 if(empty($_POST['sepanet-tan'])) 161 165 { 162 166 wc_add_notice( __('Bitte Tan angeben.', 'sepanet'), 'error' ); 163 167 $valid = false; 164 168 } 165 if(empty($_POST['s pyr_sepanet-iban']))169 if(empty($_POST['sepanet-iban'])) 166 170 { 167 171 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' ); 168 177 $valid = false; 169 178 } … … 253 262 'customer_email' => $address['email'], 254 263 'customer_name' => $address['first_name'].' '.$address['last_name'], 255 'customer_iban' => $_POST['s pyr_sepanet-iban'],256 'customer_tan' => $_POST['s pyr_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'], 258 267 'shopDomain' => $blog_title, 259 268 'productName' => $productName,
Note: See TracChangeset
for help on using the changeset viewer.