I have been trying for several days to add a βpriceβ to the price of a product inside one page of a product for trading. I tried many variations of this code to no avail.
function price_text() { ?> <div class="price-text"> <p>Price</p> </div> <?php } add_filter('woocommerce_get_price','price_text');
This is the closest I have, but it shows the price of $ 0.
I also started adding this piece of code
'<span class="amount">' . $currency_symbol . $price . '</span>'
to no avail. but
I am really new to PHP and OPP in general. Any help would be greatly appreciated.
I use the Genesis framework if that matters.
mchavezi
source share