2017-09-22 5 views

答えて

1

シンプルな製品のためにwoocommerce_empty_price_htmlフライヤーフックを使用できます。 可変製品の場合woocommerce_variable_empty_price_htmlが使用されています。バリエーション製品の は、あなたのアクティブなテーマfunction.phpファイル内のコードの下に

add_filter('woocommerce_empty_price_html', 'custom_call_for_empty_price_html'); 
add_filter('woocommerce_variable_empty_price_html', 'custom_call_for_empty_price_html'); 
add_filter('woocommerce_variation_empty_price_html', 'custom_call_for_empty_price_html'); 
function custom_call_for_empty_price_html() { 
    return 'TBC'; 
} 

プット、このコードを試してみてください

woocommerce_variation_empty_price_htmlを使用

関連する問題