'width:100%;' ); if ( $disabled ) { $custom_attributes['disabled'] = 'disabled'; } $params = array( 'type' => 'select', 'options' => $parcel_machines, 'class' => array('wc-enhanced-select'), 'custom_attributes' => $custom_attributes, 'label' => __('Selected parcel locker', EasyPack::$text_domain ), ); woocommerce_form_field('parcel_machine_id', $params, $parcel_machine_id ); ?> $parcel ) : ?>
'select', 'options' => $package_weights, 'class' => array('easypack_parcel_weight'), 'input_class' => array('easypack_parcel_weight'), 'label' => __( 'Parcel', EasyPack::$text_domain ) . ' ', ); woocommerce_form_field('parcel[' . $key . '][weight]', $params, $parcel['package_weight'] ); _e( 'Dimensions (max 64x41x38)', EasyPack::$text_domain ); ?>
'number', 'class' => 'easypack_parcel_width', 'input_class' => 'easypack_parcel_width', 'label' => __( 'Width', EasyPack::$text_domain ) . ' ', 'custom_attributes' => array( 'min' => '1', 'max' => '64' ), 'style' => 'max-width: 70px;', 'id' => 'parcel[' . $key . '][width]', 'value' => $parcel['package_width'], 'description' => 'cm' ); woocommerce_wp_text_input( $params ) ?> 'number', 'class' => 'easypack_parcel_height', 'input_class' => 'easypack_parcel_height', 'label' => __( 'Height', EasyPack::$text_domain ) . ' ', 'custom_attributes' => array( 'min' => '1', 'max' => '41' ), 'style' => 'max-width: 70px;', 'id' => 'parcel[' . $key . '][height]', 'value' => $parcel['package_height'], 'description' => 'cm' ); woocommerce_wp_text_input( $params ) ?> 'number', 'class' => 'easypack_parcel_length', 'input_class' => 'easypack_parcel_length', 'label' => __( 'Length', EasyPack::$text_domain ) . ' ', 'custom_attributes' => array( 'min' => '1', 'max' => '38' ), 'style' => 'max-width: 70px;', 'id' => 'parcel[' . $key . '][length]', 'value' => $parcel['package_length'], 'description' => 'cm' ); woocommerce_wp_text_input( $params ) ?>
, xx :
'width:100%;' ); if ( $disabled ) { $custom_attributes['disabled'] = 'disabled'; } $params = array( 'type' => 'select', 'options' => $send_methods, 'class' => array('wc-enhanced-select'), 'custom_attributes' => $custom_attributes, 'label' => __('Send method', EasyPack::$text_domain ), ); woocommerce_form_field('easypack_send_method', $params, $send_method ); ?>