ACF – Woocommerce Order line item
-
I have created a acf field group form which I have managed to display inside Woocommerce order line item.
However I can’t seem to save data to it, and in once instance it looks like the data is attached to the order id, not the line_item.
Any suggestions for how to remedy this?
function display_acf_video_upload ( $item_id, $item, $product ){ if( ! ( is_admin() && $item->is_type('line_item') ) ) return; // display upload form acfe_form('video-upload'); // display acf fields if entered the_field( 'video_order_number' ); the_field( 'video_upload' ); } add_action( 'woocommerce_before_order_itemmeta', 'display_acf_video_upload', 10, 3 );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘ACF – Woocommerce Order line item’ is closed to new replies.