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?
The topic ‘get_price_html() variable is empty’ is closed to new replies.