• Resolved adviline

    (@adviline)


    Hi There! Great plugin!

    Is there a way to make a custom field required before placing orders in pro version?

    I added a custom field in settings tabs:
    Delivery date and time (Required) | delivery_time

    And how can I show this information in order email?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author algol.plus

    (@algolplus)

    hi

    You can use this code to add order field to email

    add_filter('woocommerce_email_order_meta_fields', function ( $fields, $sent_to_admin, $order ) {
        $fields['delivery_time'] = array(
                    'label' => __( 'Delivery date and time' ),
                    'value' => get_post_meta( $order->id, 'delivery_time', true ),
                );
        return $fields;
    }, 10, 3 );

    Can we continue Pro discussion via helpdesk ?

    Anyway I can’t provide updated version quickly, we have holidays till Jan 10th.

    thanks, Alex

    • This reply was modified 6 years, 2 months ago by algol.plus.
    • This reply was modified 6 years, 2 months ago by algol.plus.
    Plugin Author algol.plus

    (@algolplus)

    Hello

    Could you contact me via helpdesk ?

    I’ll provide version for tests.

    I’m sorry for late reply,
    Alex

    Plugin Author algol.plus

    (@algolplus)

    This feature was added in version 3.3.0(pro)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom fields required’ is closed to new replies.