← All changes
|
freemius/templates/forms/subscription-cancellation.php
+3
-3
2.1.1
→
2.2.3
View file →
| @@ -94,10 +94,10 @@ | ||
| 94 | 94 | HTML; |
| 95 | 95 | |
| 96 | 96 | $downgrading_plan_text = fs_text_inline( 'Downgrading your plan', 'downgrading-plan', $slug ); |
| 97 | 97 | $cancelling_subscription_text = fs_text_inline( 'Cancelling the subscription', 'cancelling-subscription', $slug ); |
| 98 | -/* translators: %1s: Either 'Downgrading your plan' or 'Cancelling the subscription' */ | |
| 99 | -$downgrade_x_confirm_text = fs_text_inline( '%1s will immediately stop all future recurring payments and your %s plan license will expire in %s.', 'downgrade-x-confirm', $slug ); | |
| 98 | +/* translators: %1$s: Either 'Downgrading your plan' or 'Cancelling the subscription' */ | |
| 99 | +$downgrade_x_confirm_text = fs_text_inline( '%1$s will immediately stop all future recurring payments and your %s plan license will expire in %s.', 'downgrade-x-confirm', $slug ); | |
| 100 | 100 | $prices_increase_text = fs_text_inline( 'Please note that we will not be able to grandfather outdated pricing for renewals/new subscriptions after a cancellation. If you choose to renew the subscription manually in the future, after a price increase, which typically occurs once a year, you will be charged the updated price.', 'pricing-increase-warning', $slug ); |
| 101 | 101 | $after_downgrade_non_blocking_text = fs_text_inline( 'You can still enjoy all %s features but you will not have access to %s security & feature updates, nor support.', 'after-downgrade-non-blocking', $slug ); |
| 102 | 102 | $after_downgrade_blocking_text = fs_text_inline( 'Once your license expires you can still use the Free version but you will NOT have access to the %s features.', 'after-downgrade-blocking', $slug ); |
| 103 | 103 | $after_downgrade_blocking_text_premium_only = fs_text_inline( 'Once your license expires you will no longer be able to use the %s, unless you activate it again with a valid premium license.', 'after-downgrade-blocking-premium-only', $slug ); |
| @@ -169,9 +169,9 @@ | ||
| 169 | 169 | var _this = $(this), |
| 170 | 170 | subscriptionCancellationActionEventName = <?php echo json_encode( $fs->get_action_tag( 'subscription_cancellation_action' ) ) ?>; |
| 171 | 171 | |
| 172 | 172 | if ( _this.hasClass( 'button-primary' ) ) { |
| 173 | - if ( 'true' !== $( 'input[name="cancel-subscription"]:checked' ).val() ) { | |
| 173 | + if ( 'true' !== $modal.find( 'input[name="cancel-subscription"]:checked' ).val() ) { | |
| 174 | 174 | $modal.trigger( subscriptionCancellationActionEventName, false ); |
| 175 | 175 | } else { |
| 176 | 176 | if ( confirm( <?php echo json_encode( $subscription_cancellation_confirmation_message ) ?> ) ) { |
| 177 | 177 | $modal.trigger( subscriptionCancellationActionEventName, true ); |