• Resolved fabio323ti

    (@fabio323ti)


    In backend admin creating order, i wish to have a “usermeta” field where search the user.

    in my case, all user have “company_name” metafield, and i found much more easy to search this field instead user email to create backend order..

    someone can help? thanks

    attached image

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Nicholas E. – a11n

    (@nicholasje)

    Hi @fabio323ti,

    I totally understand how that would be advantageous.

    This type of customization is not within the scope of our Support Policy, but I did do some searching around and found a Stack Overflow thread that may help you accomplish this here!

    Please note that the proposed solution may help you add custom user meta to selected customer area, but to be able to search by custom user meta, you’ll have to additionally modify the json_search_customers function inside plugins/woocommerce/includes/class-wc-ajax.php.

    I hope this sends you in the right direction. (:

    Thread Starter fabio323ti

    (@fabio323ti)

    Thanks Nicolas, but this snippet works only on editing order…
    Ajax filer is needed on creating order, to find easy and fast company name to assign it.

    Nagdy

    (@nagdy)

    Hi @fabio323ti,

    ..but this snippet works only on editing order…
    Ajax filer is needed on creating order, to find easy and fast company name to assign it.

    I understand that you tested this snippet and it works while you edit the order instead of creating a new order.

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Backend Usermeta filter’ is closed to new replies.