Title: Product Fee
Last modified: December 2, 2020

---

# Product Fee

 *  [akwholesaledist](https://wordpress.org/support/users/akwholesaledist/)
 * (@akwholesaledist)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/product-fee/)
 * I need to add a column that has the fee for each item which is stored as meta
   data for the product – Meta:_ign_product_fee
 * It is adding all the fees together and displaying them which is great, but they
   also need to see the fee line by line. Could even put it in product information
   area if need be.
 * Is there a way to do this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproduct-fee%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [kenil802](https://wordpress.org/support/users/kenil802/)
 * (@kenil802)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/product-fee/#post-13763317)
 * Hi [@akwholesaledist](https://wordpress.org/support/users/akwholesaledist/),
 * Apologies for the delay in response.
 * To add the meta field of the product in the product description area you need
   to add the below code in the functions.php file of the active theme.
 * **Code:**
    add_filter( ‘wcdn_order_item_fields’, ‘wcdn_product_field’, 10, 4 );
   function wcdn_product_field( $array, $product, $order, $item ) { $new_fields 
   = array(); $new_fields[‘field_name’] = array( ‘label’ => ‘Your field name :’,‘
   value’ => get_post_meta( $product->id, ‘_ign_product_fee’, true ) ); return $
   new_fields; }
 * Do let us know how it goes.
 * Regards,
    Kenil Shah
 *  Thread Starter [akwholesaledist](https://wordpress.org/support/users/akwholesaledist/)
 * (@akwholesaledist)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/product-fee/#post-13856781)
 * I should be able to add this as a snippet correct? If so, it isn’t working.
 *  [kenil802](https://wordpress.org/support/users/kenil802/)
 * (@kenil802)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/product-fee/#post-13992043)
 * Hi [@akwholesaledist](https://wordpress.org/support/users/akwholesaledist/),
 * Apologies for the delay in response.
 * Using the code which is shared with you will add the field in the product description
   area like this:- [https://prnt.sc/y0m854](https://prnt.sc/y0m854), so could you
   please check whether the meta key used is correct or not?
 * Regards,
    Kenil Shah

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Product Fee’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-delivery-notes/assets/icon-256x256.jpg?rev=2829362)
 * [Print Invoice & Delivery Notes for WooCommerce](https://wordpress.org/plugins/woocommerce-delivery-notes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-delivery-notes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-delivery-notes/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-delivery-notes/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [kenil802](https://wordpress.org/support/users/kenil802/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/product-fee/#post-13992043)
 * Status: not resolved