Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    To show the product ID in place of the SKU, you can use the following code snippet:

    
    add_filter( 'wpo_wcpdf_order_item_data', function( $data, $order, $document_type ){
    	$data['sku'] = $data['product_id'];
    	return $data;
    }, 10, 3 );
    

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

Viewing 1 replies (of 1 total)
  • The topic ‘Switch Sku for Product ID’ is closed to new replies.