Viewing 6 replies - 1 through 6 (of 6 total)
  • Michael – I don’t seem to be able to add cards to this Trello board – any thoughts? I just wanted to add a card for the ability to rename a field once created.

    Thread Starter Michael Visser

    (@visser)

    Hi @theheasmans, it looks like a restriction on the Trello boards. If you can add a comment to https://trello.com/c/NMX9IOKz/8-trello-restrictions I can make the new Cards till I come up with a solution.

    Hello,

    It seems usefull if we have option to Setup how checkout page is opened: inline in parent, in lightbox, using window open, and so on.

    Hello,
    it would be useful if extra fields could be linked to wordpress standard meta fields so that extra information is available for accounts

    Hi, I don’t seem to be able to add to the “Wishlist” board. I have had to modify the core files of this plugin, and would like to request that either a filter or a template override to be added to this plugin. When I add a checkbox on the checkout, these values are stored as “1”, and then when the user views the order on the “view order” page, they see these values as 1 (which is not user-friendly). It would be great if we could filter these values. I have modified template.php, line 264 to replace values of “1” with “Yes”.

    Hello.
    First time I write on a post.
    My english is not good, sorry.
    This plugin is very good but it lacks the box for the identification document that my country requires for purchases and to make the invoices. I do not know if it will be worth much but I used these lines of code to integrate it into the invoices automatically. It would be great if the plugin would integrate this function. A greetin.
    code (spanish notes):

    /*** Añade el campo NIF a la página de checkout de WooCommerce ***/
    add_action( ‘woocommerce_after_order_notes’, ‘agrega_mi_campo_personalizado’ );

    function agrega_mi_campo_personalizado( $checkout ) {

    echo ‘<div id=”additional_checkout_field”><h2>’ . __(‘Información adicional’) . ‘</h2>’;

    woocommerce_form_field( ‘nif’, array(
    ‘type’ => ‘text’,
    ‘class’ => array(‘my-field-class form-row-wide’),
    ‘label’ => __(‘NIF/DNI/NIE’),
    ‘required’ => true,
    ‘placeholder’ => __(‘Introduce el Nº NIF o DNI o NIE’),
    ), $checkout->get_value( ‘nif’ ));

    echo ‘</div>’;

    }

    /*** Comprueba que el campo NIF no esté vacío ***/
    add_action(‘woocommerce_checkout_process’, ‘comprobar_campo_nif’);

    function comprobar_campo_nif() {

    // Comprueba si se ha introducido un valor y si está vacío se muestra un error.
    if ( ! $_POST[‘nif’] )
    wc_add_notice( __( ‘NIF/DNI/NIE, es un campo requerido.’ ), ‘error’ );
    }

    /*** Actualiza la información del pedido con el nuevo campo ***/
    add_action( ‘woocommerce_checkout_update_order_meta’, ‘actualizar_info_pedido_con_nuevo_campo’ );

    function actualizar_info_pedido_con_nuevo_campo( $order_id ) {
    if ( ! empty( $_POST[‘nif’] ) ) {
    update_post_meta( $order_id, ‘NIF’, sanitize_text_field( $_POST[‘nif’] ) );
    }
    }

    /*** Muestra el valor del nuevo campo NIF en la página de edición del pedido ***/
    add_action( ‘woocommerce_admin_order_data_after_billing_address’, ‘mostrar_campo_personalizado_en_admin_pedido’, 10, 1 );

    function mostrar_campo_personalizado_en_admin_pedido($order){
    echo ‘<p>‘.__(‘NIF’).’: ‘ . get_post_meta( $order->id, ‘NIF’, true ) . ‘</p>’;
    }

    /*** Incluye el campo NIF en el email de notificación del cliente ***/

    add_filter(‘woocommerce_email_order_meta_keys’, ‘muestra_campo_personalizado_email’);

    function muestra_campo_personalizado_email( $keys ) {
    $keys[] = ‘NIF’;
    return $keys;
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Important: Ideas/Feature requests, visit the community Trello board’ is closed to new replies.