Project

General

Profile

Actions

Bug #8078

closed

Substitution [SUBSCRIPTION_VALIDITY_PERIOD_REMAINING] substitutes to the total period of the current subscription instead of the remaining time

Added by beat over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
29 June 2020
Due date:
% Done:

100%

Estimated time:

Description

https://www.joomlapolis.com/forum/255-developer-members-support/242670-subscription-validity-period-remaining-generating-wrong-value#319359

Using this substitution string in the CBSubs Mailer returns the total subscription validity period, not the validity period remaining.

I defined a test mailer as "90 days before" Subscription expiry date, on all my annual (one year) plans
The email subject:

[SUBSCRIPTION_EXPIRY_DATE] - [SUBSCRIPTION_VALIDITY_PERIOD_REMAINING]

The [SUBSCRIPTION_VALIDITY_PERIOD_REMAINING] values were all "1 year" - not the difference between the expiration date and today's date, which is what I expected.

Confirmed, was always so.

Should probably be renamed into [SUBSCRIPTION_VALIDITY_PERIOD] and see how we can have a reasonable time-left display for [SUBSCRIPTION_VALIDITY_PERIOD_REMAINING].


Related issues 1 (0 open1 closed)

Related to CB Paid Subscriptions - Feature proposal #8079: Internationalization: Better pluralization of time-periodsClosedbeat30 June 2020

Actions
Actions

Also available in: Atom PDF