How do I change the price string in WooCommerce subscriptions

前端 未结 3 763
[愿得一人]
[愿得一人] 2021-01-16 09:56

I need a better way to do this.

Currently, I have added code directly to the get_price_string function within class-wc-subscriptions-product.php file, so when a free

3条回答
  •  长发绾君心
    2021-01-16 10:40

    In /public_html/wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscriptions-product.php

    Find get_price_string(...)

    Adjust the Boolean values here:

    $include = wp_parse_args( $include, array(
            'tax_calculation'     => get_option( 'woocommerce_tax_display_shop' ),
            'subscription_price'  => true,
            'subscription_period' => true,
            'subscription_length' => true,
            'sign_up_fee'         => true,
            'trial_length'        => true,
        )
    );
    

提交回复
热议问题