Hi there, I’m wondering if you can help me, I’m using Enfold (child) and have a requirement to add the text “+ GST” after the price. This needs to be shown on all prices except the “order total” on the checkout page.
Is this possible without editing core Woocommerce or Enfold files? Hopefully something which can go into enfold-child/functions.php
Awesome theme, btw :)
Thanks,
Mark
Hi Mark,
You can use this:
add_filter( 'woocommerce_get_price_html', 'custom_price_html', 100, 2 );
function custom_price_html( $price, $product ){
$price = $price . '+GST';
return apply_filters( 'woocommerce_get_price', $price );
}
Regards,
Devin