• Resolved svenvmunster

    (@svenvmunster)


    I would like to show delivery date and time on top of the right column of my checkout page with some header right before it.

    The appearance options give me the option to choose the hook woocommerce_before_order_notes. However when adding a custom header the fields are shown before the header, which of course makes no sense. This is the code I used:

    add_action('woocommerce_before_order_notes', 'custom_checkout_field');
    function custom_checkout_field($checkout)
    {
    echo '<div id="custom_checkout_field"><h3>' . __('Moment bezorgen/afhalen') . '</h3>';
    echo '</div>';
    }

    How to show the header before the date and time fields on the right column?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support chetnapatel

    (@chetnapatel)

    Hi @svenvmunster,

    Apologize for my delayed response.

    If you want this custom header to display at the top then try setting higher priority to it like this:

    add_action('woocommerce_before_order_notes', 'custom_checkout_field', 1);

    Regards,
    Chetna Bhutka

    Plugin Support chetnapatel

    (@chetnapatel)

    Hi @svenvmunster,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Regards,
    Chetna

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show fields before customer details’ is closed to new replies.