Title: Function php price &#8220;cost&#8221;
Last modified: August 26, 2020

---

# Function php price “cost”

 *  Resolved [attrapantho](https://wordpress.org/support/users/attrapantho/)
 * (@attrapantho)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/function-php-price-cost/)
 * Hey,
 * I need to display the unit price of a product on my PDF invoices, but only the
   total quantities are displayed.
 * What is the function in PHP to simply display the unitary cost of a product?
 * Or I can display the total price (but I can’t find the function to display it
   without the € or $ currency) to do a division with the quantity.
 * Thank you!
    -  This topic was modified 5 years, 9 months ago by [attrapantho](https://wordpress.org/support/users/attrapantho/).

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

 *  [Nancy](https://wordpress.org/support/users/nancythanki/)
 * (@nancythanki)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/function-php-price-cost/#post-13318702)
 * Hi there, this isn’t possible within the core WooCommerce plugin. What are you
   using to send your pdf invoices?
 * If you aren’t already using a plugin to use, you’ll want to look into extensions
   and plugins like these to add that functionality:
    – [PDF Invoices](https://woocommerce.com/products/pdf-invoices):
   [https://docs.woocommerce.com/document/pdf-invoice-developer-tools/](https://docs.woocommerce.com/document/pdf-invoice-developer-tools/)
   [WooCommerce PDF Invoices & Packing Slips](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/):
   [https://wordpress.org/support/topic/is-there-a-way-toshow-here-the-unit-price-in-the-invoice/?view=all](https://wordpress.org/support/topic/is-there-a-way-toshow-here-the-unit-price-in-the-invoice/?view=all)
 * If those don’t suit your needs, I recommend tutorials and discussions like this
   one to help you choose one:
 * [https://learnwoo.com/best-plugins-woocommerce-pdf-invoices/](https://learnwoo.com/best-plugins-woocommerce-pdf-invoices/)
 *  [Nancy](https://wordpress.org/support/users/nancythanki/)
 * (@nancythanki)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/function-php-price-cost/#post-13352099)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.

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

The topic ‘Function php price “cost”’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Nancy](https://wordpress.org/support/users/nancythanki/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/function-php-price-cost/#post-13352099)
 * Status: resolved