Add a custom select box to the WooCommerce checkout page

Reader Interactions

Comments

  1. Thank you for tutorial.

    Tell me how to display field value as «In the afternoon» but not «afternoon».

    This part of code not work good?
    ‘options’ => array(
    ‘blank’ => __( ‘Select a day part’, ‘wps’ ),
    ‘morning’ => __( ‘In the morning’, ‘wps’ ),
    ‘afternoon’ => __( ‘In the afternoon’, ‘wps’ ),
    ‘evening’ => __( ‘In the evening’, ‘wps’ )
    )

    P.S. I`m not a programmer and i can`t understand how to make it.

    • The code in the example already shows the field value with ‘in the afternoon’ and should work fine. Only in the backend you see under the delivery option afternoon.

  2. Hi Frank, thanks for tutorial. How to know user choice delivery in the admin panel if admin must approve? *sorry my bad english

  3. This is great, thank you. Is there a way of getting the selected option to show up in the WooCommerce reports so we can view orders by what they have selected?

  4. great tutorial ..i just have this problem after pasing the order neither the client nor the admin can see the delivery time chosen ……in the local site it works but on my online website it doesn;t work …can you sugest any solution ? thank you

    • If it works on your local site and not on your production environment you should first ask yourself what the differences are? Second I should activate wp_debug on your production environment.

  5. great tutorial everythig works i just have the issue the delivery time doesn’t appear after passing the order neither for the admin nor for the client …will you give me any advice ……..and i’ll bethankful

Leave a Reply

Your email address will not be published. Required fields are marked *

Genesis as Foundation

I develop my themes and plugins exclusively for the Genesis Framework. Genesis is the most recommended WordPress framework and provides a secure and search-engine-optimized foundation for your website. You can't go wrong choosing Genesis.

Get Genesis

Sign in to your account

Lost password?Purchased via Bylt or Creativemarket? register here.