I'm trying to get woocommerce product price and assigning it's value to an image attribute. But it shows like "1595 null" in need to like "$1595" or "1595$" Here is the code
<?php
$price_html = $product->get_price();
echo '<a href="#" data_price="'.$price_html.'">';
?>