かつみ.org

ウーコマースで価格表示を「from」を「から」に変更する

Disable Variable Price を編集。

woo-disable-variable-product-price-range.phpを開く。

public function disable_variable_price_range( $price, $product ) {

        $prefix = apply_filters( 'wdvpr_price_title', sprintf( '%s ', __( 'From:', 'woo-disable-variable-product-price-range' ) ) );

        $min_var_reg_price = $product->get_variation_regular_price( 'min', true );
        $min_var_sale_price = $product->get_variation_sale_price( 'min', true );
        $max_var_reg_price  = $product->get_variation_regular_price( 'max', true );
        // $max_var_sale_price = $product->get_variation_sale_price( 'max', true );
        // $min_price          = $product->get_variation_price( 'min', true );
        // $max_price          = $product->get_variation_price( 'max', true );

__( ‘From:’, ‘woo-disable-variable-product-price-range’ )を

__( ‘woo-disable-variable-product-price-range’, ‘From:’ )に書き換え

“From” をLocotranslateで”から”に翻訳

コメント

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です