Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Add Email to Admin and Vendor Dashboard columns
- This topic has 6 replies, 2 voices, and was last updated 3 years, 10 months ago by Sarmistha Chakraborty.
- AuthorPosts
- May 28, 2020 at 11:43 am #136084zoeParticipant
Hi
It would be very useful to be able to see the customer’s email address in the orders page as an additional column, and also to be able to print that in the PDF file or at least include it in the export to excel option.
Is this possible?
- May 28, 2020 at 12:30 pm #136120Sarmistha ChakrabortyKeymaster
Hello,
Try this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
add_filter( 'wcfm_orders_additonal_data_hidden', '__return_false' ); add_filter('wcfm_orders_additonal_data',function($order_data,$order_id){ $order = wc_get_order($order_id); $order_data = $order->get_billing_email(); return $order_data; },10,2); add_filter('wcfm_orders_additional_info_column_label',function($lbl){ return 'Customer Email'; },10);
Thanks.
- June 5, 2020 at 3:47 pm #138738zoeParticipant
works great thanks a million!
- June 5, 2020 at 5:57 pm #138798zoeParticipant
Ok, customer is also asking if the phone number can also be added as another additional column. I’m sorry I do not know how to code php. Your help is appreciated. Thank you.
- June 5, 2020 at 11:16 pm #138918Sarmistha ChakrabortyKeymaster
Hello,
It’s not possible add another column here with code snippet.
You can also display “phone number” in this column(previously added column).Thanks!
- June 8, 2020 at 10:25 pm #139694zoeParticipant
Ok, so it is either phone number or email, but not both? You are saying there is only room for one spare extra column and we are already using this for the email? Is that correct?
- June 8, 2020 at 10:59 pm #139713Sarmistha ChakrabortyKeymaster
Hi,
add another column is not possible using code snippet.
It requires serious custom development, and this will be a paid one.So, as a quick solution, you can add customer “email” and “phone number” in same column.
Thanks.
- AuthorPosts
- You must be logged in to reply to this topic.