Hi there
I need to change price for sold product to “SOLD”
and I found this trick
add_filter('woocommerce_product_get_price','change_price_regular_member', woocommerce_currency_symbols, 10, 2 );
function change_price_regular_member( $price, $product)
{
if (!$product->is_in_stock())
$price = "SOLD";
return $price;
}
but layout builder have 2 attributes {{dc:woocommerce:currency_symbol}}{{dc:woocommerce:product_price}}
so I get “$SOLD”
Could you tell me how I can hide currency symbol?