Plugin Directory

Changeset 1792738


Ignore:
Timestamp:
12/26/2017 05:19:19 PM (8 years ago)
Author:
madaritech
Message:

Nuova release

Location:
woo-easy-codice-fiscale-partita-iva/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • woo-easy-codice-fiscale-partita-iva/trunk/admin/class-mdt-wc-easy-cf-piva-admin.php

    r1748351 r1792738  
    9191        add_settings_section(
    9292            '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>',
    9494            array( &$this, 'mdt_wc_easy_cf_piva_settings_section_cb' ),
    9595            'mdt_wc_easy_cf_piva_settings_page'
     
    109109        $placeholder['settings_field']  = __( 'CF o PIVA', 'mdt_wc_easy_cf_piva' );
    110110        $placeholder['settings_select'] = __( 'Tipo Emissione Richiesta', 'mdt_wc_easy_cf_piva' );
     111        $placeholder['disable_select'] = '';
    111112
    112113        $label['checkout_select'] = __( 'Menù pagina Checkout', 'mdt_wc_easy_cf_piva' );
     
    117118        $label['settings_field']  = __( 'Campo pagina Utente', 'mdt_wc_easy_cf_piva' );
    118119        $label['settings_select'] = __( 'Menù pagina Utente', 'mdt_wc_easy_cf_piva' );
     120        $label['disable_select'] = __( 'Disabilita Menù', 'mdt_wc_easy_cf_piva' );
    119121
    120122        $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' );
     
    125127        $description['settings_field']  = __( 'Etichetta visualizzata nel back-end nella sezione dei Settings degli utenti WordPress', 'mdt_wc_easy_cf_piva' );
    126128        $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';
    130135
    131136            // Register a new field in the "mdt_wc_easy_cf_piva_settings_section" section, inside the "mdt_wc_easy_cf_piva_settings_page".
    132137            add_settings_field(
    133138                'mdt_wc_easy_cf_piva_settings_field' . $setting_key,
    134                 $label[ $setting_key ],
    135                 array( &$this, 'mdt_wc_easy_cf_piva_settings_field_cb' ),
     139                $lbl_value,
     140                array( &$this, $callback ),
    136141                'mdt_wc_easy_cf_piva_settings_page',
    137142                'mdt_wc_easy_cf_piva_settings_section',
     
    140145                    'key' => $setting_key,
    141146                    'desc' => $description[ $setting_key ],
    142                     'placeholder' => $plc_value,
     147                    'placeholder' => $placeholder[ $setting_key ],
    143148                ]
    144149            );
     
    160165        $options_array['settings_field'] = sanitize_text_field( $options_array['settings_field'] );
    161166        $options_array['settings_select'] = sanitize_text_field( $options_array['settings_select'] );
     167        $options_array['disable_select'] = sanitize_text_field( $options_array['disable_select'] );
    162168
    163169        return $options_array;
     
    170176     */
    171177    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
    173181    }
    174182
     
    179187     * @since 1.0.1
    180188     */
    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 ) {
    182190        ?>
    183191
    184192        <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>
    185209
    186210    <?php
     
    212236        $this->log->debug( 'Setting customer meta fields [ fields :: ' . var_export( $fields, true ) . ' ]...' );
    213237
     238        $options = get_option( 'mdt_wc_easy_cf_piva_options' );
     239
     240        $opts = '';
     241
    214242        // Compatibility check: in old version 1.0.0 need serialization.
    215         $options = get_option( 'mdt_wc_easy_cf_piva_options' );
    216 
    217         $opts = '';
    218 
    219243        if ( ! empty( $options ) && ! is_wp_error( $options ) ) {
    220244            $opts = is_serialized( $options ) ? unserialize( $options ) : $options;
     
    226250        );
    227251
    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        }
    237266
    238267        $this->log->debug( 'Set customer meta fields [ fields :: ' . var_export( $fields, true ) . ' ]...' );
     
    262291        );
    263292
    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        }
    268302
    269303        $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  
    9494                                    <p>
    9595
    96 <?php esc_attr_e( 'Nel caso il cliente selezioni la fattura, al checkout viene aggiunto un apposito campo 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' ); ?>
    9797
    9898                                        </p>
     
    101101                                    <p>
    102102
    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' ); ?>
    104111
    105112                                    </p>
  • woo-easy-codice-fiscale-partita-iva/trunk/madaritech-woocommerce-easy-codice-fiscale-partita-iva.php

    r1748351 r1792738  
    1616 * Plugin URI:        http://www.madaritech.com/mdt-wc-easy-cf-piva
    1717 * Description:       Add the "Partita IVA" e "Codice Fiscale" fields in WooCommerce for the italian market.
    18  * Version:           1.0.2
     18 * Version:           1.1.0
    1919 * Author:            Madaritech
    2020 * Author URI:        http://www.madaritech.com
  • woo-easy-codice-fiscale-partita-iva/trunk/public/class-mdt-wc-easy-cf-piva-public.php

    r1748351 r1792738  
    7777        $opts = is_serialized( $options ) ? unserialize( $options ) : $options;
    7878
    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        }
    9196
    9297        $fields['billing_cfpiva'] = array(
    9398            'label'         => $opts['checkout_field'],
    9499            '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,
    99104        );
    100105
     
    133138        $cfpiva = '';
    134139
    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
    138152        if ( isset( $_POST['billing_cfpiva'] ) ) {
    139153            $cfpiva = sanitize_text_field( wp_unslash( $_POST['billing_cfpiva'] ) );
     
    188202        $cfpiva = '';
    189203
    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
    194215        if ( isset( $_POST['billing_cfpiva'] ) ) {
    195216            $cfpiva = sanitize_text_field( wp_unslash( $_POST['billing_cfpiva'] ) );
     
    197218        }
    198219
    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 ]..." );
    200221    }
    201222
     
    214235        $cfpiva = '';
    215236
    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
    220249        if ( $user_id && isset( $_POST['billing_cfpiva'] ) ) {
    221250            $cfpiva = sanitize_text_field( wp_unslash( $_POST['billing_cfpiva'] ) );
     
    223252        }
    224253
    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 ]..." );
    226255    }
    227256
     
    239268        $this->log->debug( 'Updating CF PIVA and type fields value from order [ fields :: ' . var_export( $fields, true ) . ' ][ order :: ' . var_export( $order, true ) . ' ]...' );
    240269
     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
    241277        $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'] . ' ]...' );
    245280
    246281        return $fields;
     
    263298        if ( 'billing' == $type ) {
    264299            $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            }
    266306        }
    267307
     
    305345        }
    306346
    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 ) . ' ]...' );
    319365
    320366        return $address;
     
    344390
    345391        if ( in_array( 'customer', (array) $user->roles ) ) {
     392
    346393            // $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                }
    349405            }
    350406        }
  • woo-easy-codice-fiscale-partita-iva/trunk/public/js/mdt-wc-easy-cf-piva-public.js

    r1733119 r1792738  
    99    $('#billing_cfpiva_field').addClass( "validate-required" );
    1010    $('#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();
    1315
    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    }
    2225
    2326    $('#billing_cfpiva').keyup(function(){
  • woo-easy-codice-fiscale-partita-iva/trunk/readme.txt

    r1775787 r1792738  
    55Tags: partita, iva, codice, fiscale, woocommerce, easy, italia
    66Requires at least: 4.8
    7 Tested up to: 4.9
    8 Stable tag: 1.0.2
     7Tested up to: 4.9.1
     8Stable tag: 1.1.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1414== Description ==
    1515
    16 WC tested up to: 3.2.1
     16WC tested up to: 3.2.6
    1717Requires at least: 3.1.2
    1818
     
    2929* 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
    3030
     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
    3133= English =
    3234
     
    3840
    3941* 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
    4044
    4145== Installation ==
     
    5559== Screenshots ==
    5660
    57 1. Nella pagina delle impostazioni del plugin è possibile configurare le varie etichette.
     611. Nella pagina delle impostazioni del plugin è possibile configurare le varie etichette e/o disabilitare la il menu a tendina.
    5862
    59632. Al checkout un menu a tendina permette di scegliere il tipo di fatturazione che si preferisce.
     
    7680== Changelog ==
    7781
     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
    7885= 1.0.1 =
    7986* Refactored settings page with Settings API and Options API
Note: See TracChangeset for help on using the changeset viewer.