I created a subscription product pay $1 today and $99 after a month of trial but since there was no such option I used the "every 6 years" option. Now when people go to subscriptions to cancel the 99 charge they see "$99.00 every 6 years". Both in my-account/view-subscription/4619/ and my-account/subscriptions
Is there a way to change this text without installing the translator app which will further bulk my already overbulked with plugins installation?
Asked
Active
Viewed 481 times
1
2 Answers
0
To answer your point that there was no such option, if you edit a product and scroll down to the Product settings, as long as the product type is "Simple Subscription" then the general tab has settings for free trial, so you can set your sign up fee as $1, your free trial as 30 days, then your subscription price as $99 per month or year, whatever it is you are wanting to do.

Adrian
- 285
- 2
- 14
-
I don't see how you answered my point. That's exactly what I did. I'm saying there's no option for 1 time $99. It's only period subscriptions. My issue is not that I can't achieve what you just described. Because I did. It just doesn't look good for consumers if they choose to cancel that $99 charge. It'll look for them "every 6 years $99". Which is not true. it's 1 time $99 hence I want to change the text. – Andy Oct 07 '22 at 23:39
0
add_filter('woocommerce_get_formatted_subscription_total', 'woocommerce_get_formatted_subscription_total', 10, 2);
function woocommerce_get_formatted_subscription_total($formatted_total, $subscription_obj) {
if (is_wc_endpoint_url('subscriptions')) { // On subscriptions page, return only the price
return wc_price($subscription_obj->get_total());
}
return $formatted_total;
}

mujuonly
- 11,370
- 5
- 45
- 75
-
It does change it in /subscriptions endpoint. But doesn't change it in /view-subscription/{subsc-number} – Andy Oct 07 '22 at 23:36