• Resolved finleydesign

    (@finleydesign)


    I no longer see an option to add admin fields to the order meta?

    I have a load of admin fields on products, which we need to be added to orders, and these are internal so not front end, just for admin and internal use

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Saravana Kumar K

    (@mycholan)

    Latest release some how missed that feature (we over looked it).
    I will note it down and release the fix with the upcoming release.

    In the meantime, I will send you the affected updated files, so you can have temp fix for now.

    Will send you shortly.

    Thread Starter finleydesign

    (@finleydesign)

    Ok thanks, whats odd is it was there as an option, so not sure why it’s vanished!

    Plugin Author Saravana Kumar K

    (@mycholan)

    Hi, I tried to send you the updated files, the mail returned undelivered. I think due to the attachment (which has php and js code files) your mail server is preventing, let me know any other way to share the files.

    Thread Starter finleydesign

    (@finleydesign)

    use wetransfer.com of googledrive link

    Plugin Author Saravana Kumar K

    (@mycholan)

    Done, Pls check and let me know if any issue.

    Plugin Author Saravana Kumar K

    (@mycholan)

    Hi, doest it solved.?

    Plugin Author Saravana Kumar K

    (@mycholan)

    Since no reply, I hope the issue is solved.
    Marking it as resolved.

    Thread Starter finleydesign

    (@finleydesign)

    Sorry I haven’t had a chance to try, will update you shortly

    Hello Saravana Kumar K,
    I am having this same issue. I have added an admin field similar to the sku field and it displays as would be expected to the admin user on the inventory tab and on the single product page which i dont need it to but it was the only way I could get the order meta option to appear in the settings and the label and read only field but I would like it to be printed to the backend order page and the admin new order email but it’s not doing it. I have tried adding this which i found here but. no luck either. Can you help?

    function add_fields_on_order_email($_fields = array(), $_sent_to_admin, $_order) {	
    	
    	if ($_sent_to_admin) {
    		$_fields["Formula:"] = get_post_meta($_order->get_id(), "_custom_{wccaf_formula}", true);
    	}
    	return $_fields;
    
    }
    add_filter("woocommerce_email_order_meta_fields", "add_fields_on_order_email", 10, 3);

    Sincerely,
    Paul

    • This reply was modified 2 years, 7 months ago by modiphier.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Add admin fields to order meta’ is closed to new replies.