Changeset 1792738
- Timestamp:
- 12/26/2017 05:19:19 PM (8 years ago)
- Location:
- woo-easy-codice-fiscale-partita-iva/trunk
- Files:
-
- 6 edited
-
admin/class-mdt-wc-easy-cf-piva-admin.php (modified) (11 diffs)
-
admin/partials/mdt-wc-easy-cf-piva-admin-display.php (modified) (2 diffs)
-
madaritech-woocommerce-easy-codice-fiscale-partita-iva.php (modified) (1 diff)
-
public/class-mdt-wc-easy-cf-piva-public.php (modified) (10 diffs)
-
public/js/mdt-wc-easy-cf-piva-public.js (modified) (1 diff)
-
readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-easy-codice-fiscale-partita-iva/trunk/admin/class-mdt-wc-easy-cf-piva-admin.php
r1748351 r1792738 91 91 add_settings_section( 92 92 'mdt_wc_easy_cf_piva_settings_section', 93 '<h2><strong>' . __( ' Configura le etichette dei campi che verranno visualizzati', 'mdt_wc_easy_cf_piva' ) . '</strong></h2>',93 '<h2><strong>' . __( 'impostazioni di configurazione', 'mdt_wc_easy_cf_piva' ) . '</strong></h2>', 94 94 array( &$this, 'mdt_wc_easy_cf_piva_settings_section_cb' ), 95 95 'mdt_wc_easy_cf_piva_settings_page' … … 109 109 $placeholder['settings_field'] = __( 'CF o PIVA', 'mdt_wc_easy_cf_piva' ); 110 110 $placeholder['settings_select'] = __( 'Tipo Emissione Richiesta', 'mdt_wc_easy_cf_piva' ); 111 $placeholder['disable_select'] = ''; 111 112 112 113 $label['checkout_select'] = __( 'Menù pagina Checkout', 'mdt_wc_easy_cf_piva' ); … … 117 118 $label['settings_field'] = __( 'Campo pagina Utente', 'mdt_wc_easy_cf_piva' ); 118 119 $label['settings_select'] = __( 'Menù pagina Utente', 'mdt_wc_easy_cf_piva' ); 120 $label['disable_select'] = __( 'Disabilita Menù', 'mdt_wc_easy_cf_piva' ); 119 121 120 122 $description['checkout_select'] = __( 'Etichetta visualizzata nel front-end, al checkout, per la selezione del tipo di dettaglio di fatturazione desiderato', 'mdt_wc_easy_cf_piva' ); … … 125 127 $description['settings_field'] = __( 'Etichetta visualizzata nel back-end nella sezione dei Settings degli utenti WordPress', 'mdt_wc_easy_cf_piva' ); 126 128 $description['settings_select'] = __( 'Etichetta visualizzata nel back-end nella sezione dei Settings degli utenti WordPress', 'mdt_wc_easy_cf_piva' ); 127 128 foreach ( $placeholder as $setting_key => $plc_value ) { 129 $value = isset( $setting[ $setting_key ] ) ? esc_attr( $setting[ $setting_key ] ) : ''; 129 $description['disable_select'] = __( 'Seleziona la checkbox per nascondere il menù di scelta e visualizzare solamente il campo per il Codice Fiscale/Partita Iva', 'mdt_wc_easy_cf_piva' ); 130 131 foreach ( $label as $setting_key => $lbl_value ) { 132 $value = isset( $setting[ $setting_key ] ) ? $setting[ $setting_key ] : ''; 133 134 $callback = ( 'disable_select' == $setting_key) ? 'mdt_wc_easy_cf_piva_settings_field_select_disabled_cb' : 'mdt_wc_easy_cf_piva_settings_field_etichette_cb'; 130 135 131 136 // Register a new field in the "mdt_wc_easy_cf_piva_settings_section" section, inside the "mdt_wc_easy_cf_piva_settings_page". 132 137 add_settings_field( 133 138 'mdt_wc_easy_cf_piva_settings_field' . $setting_key, 134 $l abel[ $setting_key ],135 array( &$this, 'mdt_wc_easy_cf_piva_settings_field_cb'),139 $lbl_value, 140 array( &$this, $callback ), 136 141 'mdt_wc_easy_cf_piva_settings_page', 137 142 'mdt_wc_easy_cf_piva_settings_section', … … 140 145 'key' => $setting_key, 141 146 'desc' => $description[ $setting_key ], 142 'placeholder' => $pl c_value,147 'placeholder' => $placeholder[ $setting_key ], 143 148 ] 144 149 ); … … 160 165 $options_array['settings_field'] = sanitize_text_field( $options_array['settings_field'] ); 161 166 $options_array['settings_select'] = sanitize_text_field( $options_array['settings_select'] ); 167 $options_array['disable_select'] = sanitize_text_field( $options_array['disable_select'] ); 162 168 163 169 return $options_array; … … 170 176 */ 171 177 public function mdt_wc_easy_cf_piva_settings_section_cb() { 172 echo '<p>' . esc_html( __( 'Se si desidera modificare i valori di default delle etichette per ciascun campo, utilizzare i campi qui sotto riportati', 'mdt_wc_easy_cf_piva' ) ) . ':</p>'; 178 179 echo '<p>' . esc_html( __( 'Mediante i campi sotto riportati è possibile modificare i valori di default delle etichette. ', 'mdt_wc_easy_cf_piva' ) ) . '<br>' . esc_html( __( 'Il campo "Disabilita Menù" permette invece di disabilitare il menù a tendina di scelta "Ricevuta" o "Fattura": in tal caso verrà mantenuto solamente il campo per l\'inserimento del Codice Fiscale o Partita IVA.', 'mdt_wc_easy_cf_piva' ) ) . '</p>'; 180 173 181 } 174 182 … … 179 187 * @since 1.0.1 180 188 */ 181 public function mdt_wc_easy_cf_piva_settings_field_ cb( $args ) {189 public function mdt_wc_easy_cf_piva_settings_field_etichette_cb( $args ) { 182 190 ?> 183 191 184 192 <input type="text" name="mdt_wc_easy_cf_piva_options[<?php echo esc_attr( $args['key'] ); ?>]" placeholder="<?php echo esc_attr( $args['placeholder'] ); ?>" value= "<?php echo esc_attr( $args['value'] ); ?>" class="regular-text" /><span class="description"><?php echo esc_attr( $args['desc'] ); ?></span><br></br> 193 194 <?php 195 } 196 197 /** 198 * The Admin Setting Field Callback for Disable Menù field. 199 * 200 * @param array $args Parameters defined in the add_settings_field function call. 201 * @since 1.1.0 202 */ 203 public function mdt_wc_easy_cf_piva_settings_field_select_disabled_cb( $args ) { 204 $checked = $args['value']; 205 $current = 'dis_sel_opt'; 206 ?> 207 208 <input type="checkbox" name="mdt_wc_easy_cf_piva_options[<?php echo esc_attr( $args['key'] ); ?>]" value="<?php echo esc_attr( $current ); ?>" <?php checked( $checked, $current ); ?>/><span class="description"><?php echo esc_attr( $args['desc'] ); ?></span><br></br> 185 209 186 210 <?php … … 212 236 $this->log->debug( 'Setting customer meta fields [ fields :: ' . var_export( $fields, true ) . ' ]...' ); 213 237 238 $options = get_option( 'mdt_wc_easy_cf_piva_options' ); 239 240 $opts = ''; 241 214 242 // Compatibility check: in old version 1.0.0 need serialization. 215 $options = get_option( 'mdt_wc_easy_cf_piva_options' );216 217 $opts = '';218 219 243 if ( ! empty( $options ) && ! is_wp_error( $options ) ) { 220 244 $opts = is_serialized( $options ) ? unserialize( $options ) : $options; … … 226 250 ); 227 251 228 $fields['billing']['fields']['billing_ricfatt'] = array( 229 'type' => 'select', 230 'label' => $opts['settings_select'], 231 'description' => __( 'Tipo di ricevuta per il cliente', 'mdt_wc_easy_cf_piva' ), 232 'options' => array( 233 'RICEVUTA' => 'Ricevuta', 234 'FATTURA' => 'Fattura', 235 ), 236 ); 252 // Check that the select menu is not disabled on the plugin settings page. 253 if ( empty( $opts['disable_select'] ) || ( 'dis_sel_opt' != $opts['disable_select'] ) ) { 254 255 $fields['billing']['fields']['billing_ricfatt'] = array( 256 'type' => 'select', 257 'label' => $opts['settings_select'], 258 'description' => __( 'Tipo di ricevuta per il cliente', 'mdt_wc_easy_cf_piva' ), 259 'options' => array( 260 'RICEVUTA' => 'Ricevuta', 261 'FATTURA' => 'Fattura', 262 ), 263 ); 264 265 } 237 266 238 267 $this->log->debug( 'Set customer meta fields [ fields :: ' . var_export( $fields, true ) . ' ]...' ); … … 262 291 ); 263 292 264 $fields['ricfatt'] = array( 265 'label' => $opts['order_select'], // __('Tipo Emissione Richiesta', 'mdt_wc_easy_cf_piva'), 266 'show' => true, 267 ); 293 // Check that the select menu is not disabled on the plugin settings page. 294 if ( empty( $opts['disable_select'] ) || ( 'dis_sel_opt' != $opts['disable_select'] ) ) { 295 296 $fields['ricfatt'] = array( 297 'label' => $opts['order_select'], // __('Tipo Emissione Richiesta', 'mdt_wc_easy_cf_piva'), 298 'show' => true, 299 ); 300 301 } 268 302 269 303 $this->log->debug( 'Labels set [ fields :: ' . var_export( $fields, true ) . ' ]...' ); -
woo-easy-codice-fiscale-partita-iva/trunk/admin/partials/mdt-wc-easy-cf-piva-admin-display.php
r1748351 r1792738 94 94 <p> 95 95 96 <?php esc_attr_e( 'Nel caso il cliente selezioni la fattura, al checkout viene aggiunto un appositocampo obbligatorio nel quale il cliente può specificare la Partita Iva o il Codice Fiscale', 'mdt_wc_easy_cf_piva' ); ?>96 <?php esc_attr_e( 'Nel caso il cliente selezioni la fattura, al checkout viene aggiunto un campo obbligatorio nel quale il cliente può specificare la Partita Iva o il Codice Fiscale', 'mdt_wc_easy_cf_piva' ); ?> 97 97 98 98 </p> … … 101 101 <p> 102 102 103 <?php esc_attr_e( 'Nel caso il cliente selezioni la fattura, nell\'ordine verrà specificata la scelta operata e il valore del Codice Fiscale e/o della Partita Iva', 'mdt_wc_easy_cf_piva' ); ?> 103 <?php esc_attr_e( 'Nel caso il cliente selezioni la fattura, nell\'ordine viene specificata la scelta operata e il valore del Codice Fiscale e/o della Partita Iva', 'mdt_wc_easy_cf_piva' ); ?> 104 105 </p> 106 </li> 107 <li> 108 <p> 109 110 <?php esc_attr_e( 'Il menù a tendina può essere opzionalmente disabilitato nelle impostazioni del plugin: in tal caso il campo nel quale il cliente può specificare la Partita Iva o il Codice Fiscale viene sempre mostrato e la sua compilazione è obbligatoria per la riuscita dell\'ordine', 'mdt_wc_easy_cf_piva' ); ?> 104 111 105 112 </p> -
woo-easy-codice-fiscale-partita-iva/trunk/madaritech-woocommerce-easy-codice-fiscale-partita-iva.php
r1748351 r1792738 16 16 * Plugin URI: http://www.madaritech.com/mdt-wc-easy-cf-piva 17 17 * Description: Add the "Partita IVA" e "Codice Fiscale" fields in WooCommerce for the italian market. 18 * Version: 1. 0.218 * Version: 1.1.0 19 19 * Author: Madaritech 20 20 * Author URI: http://www.madaritech.com -
woo-easy-codice-fiscale-partita-iva/trunk/public/class-mdt-wc-easy-cf-piva-public.php
r1748351 r1792738 77 77 $opts = is_serialized( $options ) ? unserialize( $options ) : $options; 78 78 79 $fields['billing_ricfatt'] = array( 80 'type' => 'select', 81 'label' => $opts['checkout_select'], 82 'required' => false, 83 'class' => array( 'form-row-wide' ), 84 'clear' => true, 85 'priority' => 8, 86 'options' => array( 87 'RICEVUTA' => 'Ricevuta', 88 'FATTURA' => 'Fattura', 89 ), 90 ); 79 // Check that the select menu is not disabled on the plugin settings page. 80 if ( empty( $opts['disable_select'] ) || ( 'dis_sel_opt' != $opts['disable_select'] ) ) { 81 82 $fields['billing_ricfatt'] = array( 83 'type' => 'select', 84 'label' => $opts['checkout_select'], 85 'required' => false, 86 'class' => array( 'form-row-wide' ), 87 'clear' => true, 88 'priority' => 8, 89 'options' => array( 90 'RICEVUTA' => 'Ricevuta', 91 'FATTURA' => 'Fattura', 92 ), 93 ); 94 95 } 91 96 92 97 $fields['billing_cfpiva'] = array( 93 98 'label' => $opts['checkout_field'], 94 99 'placeholder' => $opts['checkout_field'], // _x('Codice Fiscale o Partita IVA', 'placeholder', 'wp_cf_piva'), 95 'required' => false,96 'class' => array( 'form-row-wide' ),97 'clear' => true,98 'priority' => 21,100 'required' => false, 101 'class' => array( 'form-row-wide' ), 102 'clear' => true, 103 'priority' => 21, 99 104 ); 100 105 … … 133 138 $cfpiva = ''; 134 139 135 if ( isset( $_POST['billing_ricfatt'] ) ) { 136 $ricfatt = sanitize_text_field( wp_unslash( $_POST['billing_ricfatt'] ) ); 137 } 140 // Check that the select menu is not disabled on the plugin settings page. 141 if ( empty( $opts['disable_select'] ) || ( 'dis_sel_opt' != $opts['disable_select'] ) ) { 142 143 if ( isset( $_POST['billing_ricfatt'] ) ) { 144 $ricfatt = sanitize_text_field( wp_unslash( $_POST['billing_ricfatt'] ) ); 145 } 146 } else { 147 /** If select menu is disabled on the plugin settings page, defaults to "FATTURA": on the next lines of code we have to check that CF or PIVA is a valid. */ 148 149 $ricfatt = 'FATTURA'; 150 } 151 138 152 if ( isset( $_POST['billing_cfpiva'] ) ) { 139 153 $cfpiva = sanitize_text_field( wp_unslash( $_POST['billing_cfpiva'] ) ); … … 188 202 $cfpiva = ''; 189 203 190 if ( isset( $_POST['billing_ricfatt'] ) ) { 191 $ricfatt = sanitize_text_field( wp_unslash( $_POST['billing_ricfatt'] ) ); 192 update_post_meta( $order_id, 'billing_ricfatt', $ricfatt ); 193 } 204 // Check that the select menu is not disabled on the plugin settings page. 205 if ( empty( $opts['disable_select'] ) || ( 'dis_sel_opt' != $opts['disable_select'] ) ) { 206 207 if ( isset( $_POST['billing_ricfatt'] ) ) { 208 $ricfatt = sanitize_text_field( wp_unslash( $_POST['billing_ricfatt'] ) ); 209 update_post_meta( $order_id, 'billing_ricfatt', $ricfatt ); 210 } 211 212 $this->log->debug( "Order meta updated with type field value [ ricfatt :: $ricfatt ]..." ); 213 } 214 194 215 if ( isset( $_POST['billing_cfpiva'] ) ) { 195 216 $cfpiva = sanitize_text_field( wp_unslash( $_POST['billing_cfpiva'] ) ); … … 197 218 } 198 219 199 $this->log->debug( "Order meta updated with CF PIVA field value [ ricfatt :: $ricfatt ][cfpiva :: $cfpiva ]..." );220 $this->log->debug( "Order meta updated with CF PIVA field value [ cfpiva :: $cfpiva ]..." ); 200 221 } 201 222 … … 214 235 $cfpiva = ''; 215 236 216 if ( $user_id && isset( $_POST['billing_ricfatt'] ) ) { 217 $ricfatt = sanitize_text_field( wp_unslash( $_POST['billing_ricfatt'] ) ); 218 update_user_meta( $user_id, 'billing_ricfatt', $ricfatt ); 219 } 237 // Check that the select menu is not disabled on the plugin settings page. 238 if ( empty( $opts['disable_select'] ) || ( 'dis_sel_opt' != $opts['disable_select'] ) ) { 239 240 if ( $user_id && isset( $_POST['billing_ricfatt'] ) ) { 241 $ricfatt = sanitize_text_field( wp_unslash( $_POST['billing_ricfatt'] ) ); 242 update_user_meta( $user_id, 'billing_ricfatt', $ricfatt ); 243 } 244 245 $this->log->debug( "User meta updated with type field value [ ricfatt :: $ricfatt ]..." ); 246 247 } 248 220 249 if ( $user_id && isset( $_POST['billing_cfpiva'] ) ) { 221 250 $cfpiva = sanitize_text_field( wp_unslash( $_POST['billing_cfpiva'] ) ); … … 223 252 } 224 253 225 $this->log->debug( "User meta updated with CF PIVA and type fields value [ ricfatt :: $ricfatt ][ cfpiva :: $cfpiva ]..." );254 $this->log->debug( "User meta updated with CF PIVA field value [ cfpiva :: $cfpiva ]..." ); 226 255 } 227 256 … … 239 268 $this->log->debug( 'Updating CF PIVA and type fields value from order [ fields :: ' . var_export( $fields, true ) . ' ][ order :: ' . var_export( $order, true ) . ' ]...' ); 240 269 270 // Check that the select menu is not disabled on the plugin settings page. 271 if ( empty( $opts['disable_select'] ) || ( 'dis_sel_opt' != $opts['disable_select'] ) ) { 272 $fields['ricfatt'] = get_post_meta( $order->get_id(), '_billing_ricfatt', true ); 273 274 $this->log->debug( 'Updated type field value from order [ ricfatt :: ' . $fields['ricfatt'] . ' ]...' ); 275 } 276 241 277 $fields['cfpiva'] = get_post_meta( $order->get_id(), '_billing_cfpiva', true ); 242 $fields['ricfatt'] = get_post_meta( $order->get_id(), '_billing_ricfatt', true ); 243 244 $this->log->debug( 'Updated CF PIVA and type fields value from order [ cfpiva :: ' . $fields['cfpiva'] . ' ][ ricfatt :: ' . $fields['ricfatt'] . ' ]...' ); 278 279 $this->log->debug( 'Updated CF PIVA field value from order [ cfpiva :: ' . $fields['cfpiva'] . ' ]...' ); 245 280 246 281 return $fields; … … 263 298 if ( 'billing' == $type ) { 264 299 $fields['cfpiva'] = get_user_meta( $customer_id, 'billing_cfpiva', true ); 265 $fields['ricfatt'] = get_user_meta( $customer_id, 'billing_ricfatt', true ); 300 301 // Check that the select menu is not disabled on the plugin settings page. 302 if ( empty( $opts['disable_select'] ) || ( 'dis_sel_opt' != $opts['disable_select'] ) ) { 303 304 $fields['ricfatt'] = get_user_meta( $customer_id, 'billing_ricfatt', true ); 305 } 266 306 } 267 307 … … 305 345 } 306 346 307 if ( ! isset( $address['billing_ricfatt'] ) ) { 308 $address['billing_ricfatt'] = array( 309 'type' => 'select', 310 'label' => __( 'Tipo Emissione', 'wp_cf_piva' ), 311 'placeholder' => _x( 'Tipo Emissione', 'placeholder', 'wp_cf_piva' ), 312 'required' => true, // Change to false if you do not need this field to be required. 313 'class' => array( 'form-row-first' ), 314 'value' => get_user_meta( get_current_user_id(), 'billing_ricfatt', true ), 315 ); 316 } 317 318 $this->log->debug( "Updated CF PIVA and type address fields value from user meta [ address['billing_cfpiva'] :: " . var_export( $address['billing_cfpiva'], true ) . " ][ address['billing_ricfatt'] :: " . var_export( $address['billing_ricfatt'], true ) . ' ]...' ); 347 // Check that the select menu is not disabled on the plugin settings page. 348 if ( empty( $opts['disable_select'] ) || ( 'dis_sel_opt' != $opts['disable_select'] ) ) { 349 350 if ( ! isset( $address['billing_ricfatt'] ) ) { 351 $address['billing_ricfatt'] = array( 352 'type' => 'select', 353 'label' => __( 'Tipo Emissione', 'wp_cf_piva' ), 354 'placeholder' => _x( 'Tipo Emissione', 'placeholder', 'wp_cf_piva' ), 355 'required' => true, // Change to false if you do not need this field to be required. 356 'class' => array( 'form-row-first' ), 357 'value' => get_user_meta( get_current_user_id(), 'billing_ricfatt', true ), 358 ); 359 } 360 361 $this->log->debug( "Updated type address field value from user meta [ address['billing_ricfatt'] :: " . var_export( $address['billing_ricfatt'], true ) . ' ]...' ); 362 } 363 364 $this->log->debug( "Updated CF PIVA address field value from user meta [ address['billing_cfpiva'] :: " . var_export( $address['billing_cfpiva'], true ) . ' ]...' ); 319 365 320 366 return $address; … … 344 390 345 391 if ( in_array( 'customer', (array) $user->roles ) ) { 392 346 393 // $address['{ssn}'] = ''; 347 if ( ! empty( $args['cfpiva'] ) && ! empty( $args['ricfatt'] ) && ( 'FATTURA' == $args['ricfatt'] ) ) { 348 $address['{cfpiva}'] = $opts['profile_field'] . ' ' . $args['cfpiva']; 394 if ( ! empty( $args['cfpiva'] ) ) { 395 396 // Check that the select menu is not disabled on the plugin settings page. 397 if ( empty( $opts['disable_select'] ) || ( 'dis_sel_opt' != $opts['disable_select'] ) ) { 398 399 if ( ! empty( $args['ricfatt'] ) && ( 'FATTURA' == $args['ricfatt'] ) ) { 400 $address['{cfpiva}'] = $opts['profile_field'] . ' ' . $args['cfpiva']; 401 } 402 } else { 403 $address['{cfpiva}'] = $opts['profile_field'] . ' ' . $args['cfpiva']; 404 } 349 405 } 350 406 } -
woo-easy-codice-fiscale-partita-iva/trunk/public/js/mdt-wc-easy-cf-piva-public.js
r1733119 r1792738 9 9 $('#billing_cfpiva_field').addClass( "validate-required" ); 10 10 $('#billing_cfpiva_field').find("label").append( ' <abbr class="required" title="obbligatorio">*</abbr>' ); 11 if ($('#billing_ricfatt').val().toUpperCase() == "RICEVUTA") 12 $('#billing_cfpiva_field').hide(); 11 12 if ($('#billing_ricfatt').val() !== undefined ) { 13 if ($('#billing_ricfatt').val().toUpperCase() == "RICEVUTA") 14 $('#billing_cfpiva_field').hide(); 13 15 14 $('#billing_ricfatt').live('change', function() { 15 if ($('#billing_ricfatt').val().toUpperCase() == 'RICEVUTA') { 16 $('#billing_cfpiva_field').fadeOut(); 17 } 18 else { 19 $('#billing_cfpiva_field').fadeIn(); 20 } 21 }); 16 $('#billing_ricfatt').live('change', function() { 17 if ($('#billing_ricfatt').val().toUpperCase() == 'RICEVUTA') { 18 $('#billing_cfpiva_field').fadeOut(); 19 } 20 else { 21 $('#billing_cfpiva_field').fadeIn(); 22 } 23 }); 24 } 22 25 23 26 $('#billing_cfpiva').keyup(function(){ -
woo-easy-codice-fiscale-partita-iva/trunk/readme.txt
r1775787 r1792738 5 5 Tags: partita, iva, codice, fiscale, woocommerce, easy, italia 6 6 Requires at least: 4.8 7 Tested up to: 4.9 8 Stable tag: 1. 0.27 Tested up to: 4.9.1 8 Stable tag: 1.1.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 14 == Description == 15 15 16 WC tested up to: 3.2. 116 WC tested up to: 3.2.6 17 17 Requires at least: 3.1.2 18 18 … … 29 29 * nel caso il cliente selezioni la ricevuta, il cliente non è tenuto ad inserire informazioni sul Codice Fiscale o la Partita Iva. L'ordine riporta tale scelta operata dal cliente 30 30 31 * il menu a tendina può essere disabilitato dalla pagina delle impostazioni: in tal caso il tipo di fatturazione è sempre "Fattura", viene aggiunto un apposito campo obbligatorio nel quale il cliente può specificare la Partita Iva o il Codice Fiscale 32 31 33 = English = 32 34 … … 38 40 39 41 * in case the customer selects the invoice, the order will specify the choice made and the value of the Tax Code and/or VAT Code 42 43 * the drop-down menu can be disabled from the settings page: in this case the type of invoicing is always "Invoice", a mandatory field is added in which the customer can specify the VAT number or the Tax Code 40 44 41 45 == Installation == … … 55 59 == Screenshots == 56 60 57 1. Nella pagina delle impostazioni del plugin è possibile configurare le varie etichette .61 1. Nella pagina delle impostazioni del plugin è possibile configurare le varie etichette e/o disabilitare la il menu a tendina. 58 62 59 63 2. Al checkout un menu a tendina permette di scegliere il tipo di fatturazione che si preferisce. … … 76 80 == Changelog == 77 81 82 = 1.1.0 = 83 * Added checkbox to disable the drop-down menu and always show a mandatory field for the VAT number or the Tax Code 84 78 85 = 1.0.1 = 79 86 * Refactored settings page with Settings API and Options API
Note: See TracChangeset
for help on using the changeset viewer.