Title: get_price_html() variable is empty
Last modified: May 9, 2022

---

# get_price_html() variable is empty

 *  [thenextguy](https://wordpress.org/support/users/thenextguy/)
 * (@thenextguy)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/get_price_html-variable-is-empty/)
 * Trying to make this plugin work, but the `$child_product->get_price_html()` is
   empty, while the `$child_product->get_price()` gives the price of the variation
   correctly, but obviously unformatted.
 * Also tested your other plugin that creates a table, same problem.
 * Though if you pass it through wc_price like this: `wc_price($child_product->get_price())`
   you will get the correct formatted result.
 * Any thoughts as of why this is happening?
    -  This topic was modified 4 years, 1 month ago by [thenextguy](https://wordpress.org/support/users/thenextguy/).

The topic ‘get_price_html() variable is empty’ is closed to new replies.

 * ![](https://ps.w.org/wpc-variations-radio-buttons/assets/icon-128x128.png?rev
   =2136729)
 * [WPC Variations Radio Buttons for WooCommerce](https://wordpress.org/plugins/wpc-variations-radio-buttons/)
 * [Support Threads](https://wordpress.org/support/plugin/wpc-variations-radio-buttons/)
 * [Active Topics](https://wordpress.org/support/plugin/wpc-variations-radio-buttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpc-variations-radio-buttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpc-variations-radio-buttons/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [thenextguy](https://wordpress.org/support/users/thenextguy/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/get_price_html-variable-is-empty/)
 * Status: not resolved