-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #6349: Update renewal banner with discount percentage instead …
…of difference (#6397)
- Loading branch information
1 parent
8a0545c
commit 7abd181
Showing
5 changed files
with
24 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ | |
'renewals' => json_decode( json_encode( [ | ||
'extra_days'=> 15, | ||
'grandfather_date'=> 1640995200, | ||
'grandmother_date'=> 1672531200, | ||
'grandmother_date'=> 315532800, | ||
'discount_percent'=> [ | ||
'is_grandfather' => 20, | ||
'not_grandfather'=> 0, | ||
|
@@ -95,7 +95,7 @@ | |
'template' => 'renewal-expired-banner-ocd', | ||
'data' => [ | ||
'renewal_url' => 'https://wp-rocket.me/checkout/renew/[email protected]/da5891162a3bc2d8a9670267fd07c9eb/', | ||
'message' => 'Renew your license for 1 year now and get <strong>$19.8 OFF</strong> immediately: you will only pay <strong>$39.2</strong>!', | ||
'message' => 'Renew your license for 1 year now and get <strong>20% OFF</strong> immediately: you will only pay <strong>$39.2</strong>!', | ||
'disabled_date' => strtotime( 'now + 5 days' ), | ||
], | ||
], | ||
|
@@ -119,7 +119,7 @@ | |
'template' => 'renewal-expired-banner-ocd', | ||
'data' => [ | ||
'renewal_url' => 'https://wp-rocket.me/checkout/renew/[email protected]/da5891162a3bc2d8a9670267fd07c9eb/', | ||
'message' => 'Renew your license for 1 year now and get <strong>$10 OFF</strong> immediately: you will only pay <strong>$49</strong>!', | ||
'message' => 'Renew your license for 1 year now at <strong>$59</strong>.', | ||
'disabled_date' => strtotime( 'now + 5 days' ), | ||
], | ||
], | ||
|
@@ -184,7 +184,7 @@ | |
'template' => 'renewal-expired-banner-ocd', | ||
'data' => [ | ||
'renewal_url' => 'https://wp-rocket.me/checkout/renew/[email protected]/da5891162a3bc2d8a9670267fd07c9eb/', | ||
'message' => 'Renew your license for 1 year now and get <strong>$19.8 OFF</strong> immediately: you will only pay <strong>$39.2</strong>!', | ||
'message' => 'Renew your license for 1 year now and get <strong>20% OFF</strong> immediately: you will only pay <strong>$39.2</strong>!', | ||
'disabled_date' => strtotime( 'now + 5 days' ), | ||
], | ||
], | ||
|
@@ -278,7 +278,7 @@ | |
'template' => 'renewal-expired-banner', | ||
'data' => [ | ||
'renewal_url' => 'https://wp-rocket.me/checkout/renew/[email protected]/da5891162a3bc2d8a9670267fd07c9eb/', | ||
'message' => 'Renew your license for 1 year now and get <strong>$19.8 OFF</strong> immediately: you will only pay <strong>$39.2</strong>!', | ||
'message' => 'Renew your license for 1 year now and get <strong>20% OFF</strong> immediately: you will only pay <strong>$39.2</strong>!', | ||
], | ||
], | ||
], | ||
|
@@ -301,7 +301,7 @@ | |
'template' => 'renewal-expired-banner', | ||
'data' => [ | ||
'renewal_url' => 'https://wp-rocket.me/checkout/renew/[email protected]/da5891162a3bc2d8a9670267fd07c9eb/', | ||
'message' => 'Renew your license for 1 year now and get <strong>$10 OFF</strong> immediately: you will only pay <strong>$49</strong>!', | ||
'message' => 'Renew your license for 1 year now at <strong>$59</strong>.', | ||
], | ||
], | ||
], | ||
|
@@ -387,7 +387,7 @@ | |
'template' => 'renewal-expired-banner', | ||
'data' => [ | ||
'renewal_url' => 'https://wp-rocket.me/checkout/renew/[email protected]/da5891162a3bc2d8a9670267fd07c9eb/', | ||
'message' => 'Renew your license for 1 year now and get <strong>$19.8 OFF</strong> immediately: you will only pay <strong>$39.2</strong>!', | ||
'message' => 'Renew your license for 1 year now and get <strong>20% OFF</strong> immediately: you will only pay <strong>$39.2</strong>!', | ||
], | ||
], | ||
], | ||
|
@@ -410,7 +410,7 @@ | |
'template' => 'renewal-expired-banner', | ||
'data' => [ | ||
'renewal_url' => 'https://wp-rocket.me/checkout/renew/[email protected]/da5891162a3bc2d8a9670267fd07c9eb/', | ||
'message' => 'Renew your license for 1 year now and get <strong>$10 OFF</strong> immediately: you will only pay <strong>$49</strong>!', | ||
'message' => 'Renew your license for 1 year now at <strong>$59</strong>.', | ||
], | ||
], | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ | |
'renewals' => json_decode( json_encode( [ | ||
'extra_days'=> 90, | ||
'grandfather_date'=> 1567296000, | ||
'grandmother_date'=> 1672389000, | ||
'grandmother_date'=> 315532800, | ||
'discount_percent'=> [ | ||
'is_grandfather' => 20, | ||
'not_grandfather'=> 0, | ||
|
@@ -118,7 +118,7 @@ | |
], | ||
'expected' => [ | ||
'countdown' => $countdown, | ||
'message' => 'Renew with a <strong>$9.8 discount</strong> before it is too late, you will only pay <strong>$24.5</strong>!', | ||
'message' => 'Renew before it is too late, you will only pay <strong>$34.3</strong>!', | ||
'renewal_url' => 'https://wp-rocket.me/checkout/renew/[email protected]/da5891162a3bc2d8a9670267fd07c9eb/', | ||
], | ||
], | ||
|
@@ -135,7 +135,7 @@ | |
'pricing' => $pricing, | ||
], | ||
'expected' => [ | ||
'message' => 'Renew with a <strong>$9.8 discount</strong> before it is too late, you will only pay <strong>$24.5</strong>!', | ||
'message' => 'Renew with a <strong>20% discount</strong> before it is too late, you will only pay <strong>$24.5</strong>!', | ||
|
||
'countdown' => $countdown, | ||
'renewal_url' => 'https://wp-rocket.me/checkout/renew/[email protected]/da5891162a3bc2d8a9670267fd07c9eb/', | ||
|
@@ -173,7 +173,7 @@ | |
], | ||
'expected' => [ | ||
'countdown' => $countdown, | ||
'message' => 'Renew with a <strong>$19.8 discount</strong> before it is too late, you will only pay <strong>$49.5</strong>!', | ||
'message' => 'Renew with a <strong>20% discount</strong> before it is too late, you will only pay <strong>$49.5</strong>!', | ||
'renewal_url' => 'https://wp-rocket.me/checkout/renew/[email protected]/da5891162a3bc2d8a9670267fd07c9eb/', | ||
], | ||
], | ||
|
@@ -191,7 +191,7 @@ | |
], | ||
'expected' => [ | ||
'countdown' => $countdown, | ||
'message' => 'Renew with a <strong>$49.8 discount</strong> before it is too late, you will only pay <strong>$124.5</strong>!', | ||
'message' => 'Renew before it is too late, you will only pay <strong>$174.3</strong>!', | ||
'renewal_url' => 'https://wp-rocket.me/checkout/renew/[email protected]/da5891162a3bc2d8a9670267fd07c9eb/', | ||
], | ||
], | ||
|
@@ -227,7 +227,7 @@ | |
], | ||
'expected' => [ | ||
'countdown' => $countdown, | ||
'message' => 'Renew with a <strong>$49.8 discount</strong> before it is too late, you will only pay <strong>$124.5</strong>!', | ||
'message' => 'Renew with a <strong>20% discount</strong> before it is too late, you will only pay <strong>$124.5</strong>!', | ||
'renewal_url' => 'https://wp-rocket.me/checkout/renew/[email protected]/da5891162a3bc2d8a9670267fd07c9eb/', | ||
], | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters