2
我試圖在沒有貨幣的情況下得到我所做的功能。獲得產品價格沒有貨幣
function add_price_widget()
{
global $woocommerce;
$product = new WC_Product(get_the_ID());
$thePrice = $product->get_price_html();
echo thePrice;
}
顯示:100kr
我如何得到它只是給我的價格100