• Resolved wpbackend

    (@wpbackend)


    Hi,

    I am trying to create custom field after order notes. But it is not working and showing in the frontend.

    //  file upload field 

    function custom_checkout_file_upload( $checkout ) {

    ? ? echo '<div id="checkout_field"><h2>' . __('Upload') . '</h2>';

    ? ? woocommerce_form_field( 'file_upload', array(

    ? ? ? ? 'type' ? ? ? ?=> 'file',

    ? ? ? ? 'class' ? ? ? => array('form-row-wide'),

    ? ? ? ? 'label' ? ? ? => __('Upload File'),

    ? ? ? ? 'required' ? ?=> true,

    ? ? ), $checkout->get_value( 'file_upload' ) );

    ? ? echo '</div>';

    }

    add_action( 'woocommerce_after_order_notes', 'custom_checkout_file_upload' );

    • This topic was modified 4 months, 1 week ago by wpbackend.
Viewing 1 replies (of 1 total)
  • Plugin Support Rajesh K. (woo-hc)

    (@rajeshml)

    Hello @wpbackend,

    For reference, this particular forum is meant for general support with the core functionality of WooCommerce itself.

    For development and custom coding questions, it’s best to ask for insight related to those on either the?WooCommerce Advanced Facebook group?or the?WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question. You can also seek help from the following:

    I wish I could help more, but hopefully, this gets you going in the right direction to get some further insight/information.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.