1 year instead 12 months
-
Hello,
I would like to display the price following /1 year instead of /12 months.
Is it possible changing any code in php? I found in functions.yith-wc-subscription.php something about show price per year:function ywsbs_get_price_per_string( $price_per, $time_option ) {
$price_html = ( ( $price_per == 1 ) ? ” : $price_per ) . ‘ ‘;switch( $time_option ){
case ‘days’:
$price_html .= _n( ‘day’, ‘days’, $price_per, ‘yith-woocommerce-subscription’ );
break;
case ‘weeks’:
$price_html .= _n( ‘week’, ‘weeks’, $price_per, ‘yith-woocommerce-subscription’ );
break;
case ‘months’:
$price_html .= _n( ‘month’, ‘months’, $price_per, ‘yith-woocommerce-subscription’ );
break;
case ‘years’:
$price_html .= _n( ‘year’, ‘years’, $price_per, ‘yith-woocommerce-subscription’ );
break;
default:
}return $price_html;
}Which do I have to change to show the price per one year instead of 12 months?
I’m in a hurry and I’ll be grateful for your help. Thank you so much.
- The topic ‘1 year instead 12 months’ is closed to new replies.