Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Add "Orders" column
Tagged: Orders column
- This topic has 5 replies, 2 voices, and was last updated 6 years, 2 months ago by WCFM Forum.
Viewing 5 reply threads
- AuthorPosts
- September 4, 2018 at 6:47 am #30730nakedharmonixParticipant
Hi,
We are using the Affiliate plugin.
I’d like to add a column for Affiliate to “WCFM Dashboard> Orders”. Could you advise to us for how to add columns?
Regards,
TK - September 5, 2018 at 7:33 am #30845WCFM ForumMember
Hi,
Which Affliate plugin you are using?
Thank You
- September 5, 2018 at 7:36 am #30846nakedharmonixParticipant
Hi
We using AffiliateWP
Regards, - September 5, 2018 at 8:11 am #30856WCFM ForumMember
hi,
Are you comfortable in PHP/WP coding?
Thank You
- September 5, 2018 at 12:30 pm #30894nakedharmonixParticipant
Hi
Our coder’s answer is “yes”.
- September 6, 2018 at 8:53 am #30945WCFM ForumMember
Hi,
That’s great.
Kindly ask him to add this code to the site –
add_filter( 'wcfm_orders_additional_info_column_label', function( $affiliate_column_label ) { $affiliate_column_label = 'Affiliate'; return $affiliate_column_label; }); add_filter( 'wcfm_orders_additonal_data_hidden', '__return_false' ); add_filter( 'wcfm_orders_additonal_data',function( $affiliate_column_data, $order_id ) { $affiliate_column_data = ''; // SET YOUR DATA HERE return $affiliate_column_data; }, 50, 2);
This will add a new column under WCFM Order dashboard. He just have to display Affiliate data at that column for an Order.
Thank You
- AuthorPosts
Viewing 5 reply threads
- The topic ‘Add "Orders" column’ is closed to new replies.