From 1caee9329fc29e084cc0e752f54b6a2c7607ff4b Mon Sep 17 00:00:00 2001
From: Aude
Date: Mon, 1 Apr 2019 11:14:10 +0200
Subject: [PATCH 1/3] #9585 BOOM-5975 rename email templates and create fr
email templates
---
mails/en/index.php | 0
.../{followup_1.html => ps_reminder_1.html} | 0
.../en/{followup_1.txt => ps_reminder_1.txt} | 0
.../{followup_2.html => ps_reminder_2.html} | 0
.../en/{followup_2.txt => ps_reminder_2.txt} | 0
.../{followup_3.html => ps_reminder_3.html} | 0
.../en/{followup_3.txt => ps_reminder_3.txt} | 0
.../{followup_4.html => ps_reminder_4.html} | 0
.../en/{followup_4.txt => ps_reminder_4.txt} | 0
mails/fr/index.php | 35 +++++
mails/fr/ps_reminder_1.html | 108 ++++++++++++++++
mails/fr/ps_reminder_1.txt | 24 ++++
mails/fr/ps_reminder_2.html | 110 ++++++++++++++++
mails/fr/ps_reminder_2.txt | 18 +++
mails/fr/ps_reminder_3.html | 112 ++++++++++++++++
mails/fr/ps_reminder_3.txt | 18 +++
mails/fr/ps_reminder_4.html | 121 ++++++++++++++++++
mails/fr/ps_reminder_4.txt | 24 ++++
ps_reminder.php | 8 +-
19 files changed, 574 insertions(+), 4 deletions(-)
mode change 100644 => 100755 mails/en/index.php
rename mails/en/{followup_1.html => ps_reminder_1.html} (100%)
mode change 100644 => 100755
rename mails/en/{followup_1.txt => ps_reminder_1.txt} (100%)
mode change 100644 => 100755
rename mails/en/{followup_2.html => ps_reminder_2.html} (100%)
mode change 100644 => 100755
rename mails/en/{followup_2.txt => ps_reminder_2.txt} (100%)
mode change 100644 => 100755
rename mails/en/{followup_3.html => ps_reminder_3.html} (100%)
mode change 100644 => 100755
rename mails/en/{followup_3.txt => ps_reminder_3.txt} (100%)
mode change 100644 => 100755
rename mails/en/{followup_4.html => ps_reminder_4.html} (100%)
mode change 100644 => 100755
rename mails/en/{followup_4.txt => ps_reminder_4.txt} (100%)
mode change 100644 => 100755
create mode 100644 mails/fr/index.php
create mode 100644 mails/fr/ps_reminder_1.html
create mode 100644 mails/fr/ps_reminder_1.txt
create mode 100644 mails/fr/ps_reminder_2.html
create mode 100644 mails/fr/ps_reminder_2.txt
create mode 100644 mails/fr/ps_reminder_3.html
create mode 100644 mails/fr/ps_reminder_3.txt
create mode 100644 mails/fr/ps_reminder_4.html
create mode 100644 mails/fr/ps_reminder_4.txt
diff --git a/mails/en/index.php b/mails/en/index.php
old mode 100644
new mode 100755
diff --git a/mails/en/followup_1.html b/mails/en/ps_reminder_1.html
old mode 100644
new mode 100755
similarity index 100%
rename from mails/en/followup_1.html
rename to mails/en/ps_reminder_1.html
diff --git a/mails/en/followup_1.txt b/mails/en/ps_reminder_1.txt
old mode 100644
new mode 100755
similarity index 100%
rename from mails/en/followup_1.txt
rename to mails/en/ps_reminder_1.txt
diff --git a/mails/en/followup_2.html b/mails/en/ps_reminder_2.html
old mode 100644
new mode 100755
similarity index 100%
rename from mails/en/followup_2.html
rename to mails/en/ps_reminder_2.html
diff --git a/mails/en/followup_2.txt b/mails/en/ps_reminder_2.txt
old mode 100644
new mode 100755
similarity index 100%
rename from mails/en/followup_2.txt
rename to mails/en/ps_reminder_2.txt
diff --git a/mails/en/followup_3.html b/mails/en/ps_reminder_3.html
old mode 100644
new mode 100755
similarity index 100%
rename from mails/en/followup_3.html
rename to mails/en/ps_reminder_3.html
diff --git a/mails/en/followup_3.txt b/mails/en/ps_reminder_3.txt
old mode 100644
new mode 100755
similarity index 100%
rename from mails/en/followup_3.txt
rename to mails/en/ps_reminder_3.txt
diff --git a/mails/en/followup_4.html b/mails/en/ps_reminder_4.html
old mode 100644
new mode 100755
similarity index 100%
rename from mails/en/followup_4.html
rename to mails/en/ps_reminder_4.html
diff --git a/mails/en/followup_4.txt b/mails/en/ps_reminder_4.txt
old mode 100644
new mode 100755
similarity index 100%
rename from mails/en/followup_4.txt
rename to mails/en/ps_reminder_4.txt
diff --git a/mails/fr/index.php b/mails/fr/index.php
new file mode 100644
index 0000000..91f43dc
--- /dev/null
+++ b/mails/fr/index.php
@@ -0,0 +1,35 @@
+
+* @copyright 2007-2015 PrestaShop SA
+* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
+header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
+
+header('Cache-Control: no-store, no-cache, must-revalidate');
+header('Cache-Control: post-check=0, pre-check=0', false);
+header('Pragma: no-cache');
+
+header('Location: ../');
+exit;
diff --git a/mails/fr/ps_reminder_1.html b/mails/fr/ps_reminder_1.html
new file mode 100644
index 0000000..e601807
--- /dev/null
+++ b/mails/fr/ps_reminder_1.html
@@ -0,0 +1,108 @@
+
+
+
+
+
+ Message from {shop_name}
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+Bonjour {firstname} {lastname}, |
+
+
+
+
+
+
+ Votre panier chez {shop_name}
+Nous avons remarqué que lors de votre dernier passage chez {shop_name}, vous n'avez pas validé la commande que vous aviez entamée. Vous panier a été conservé, vous pouvez reprendre votre commande en vous rendant sur notre boutique : {shop_url}
A titre exceptionnel, nous vous accordons également une remise de {amount}% sur votre commande ! Cette offre est valable {days} jours, ne perdez plus un instant ! |
+
+
+
+
+
+
+ Vos codes d'accès sur {shop_name}.
+ Voici votre bon de réduction : {voucher_num} Saisissez ce code dans votre panier afin d'obtenir votre réduction. |
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
\ No newline at end of file
diff --git a/mails/fr/ps_reminder_1.txt b/mails/fr/ps_reminder_1.txt
new file mode 100644
index 0000000..d390c49
--- /dev/null
+++ b/mails/fr/ps_reminder_1.txt
@@ -0,0 +1,24 @@
+
+[{shop_url}]
+
+Bonjour {firstname} {lastname},
+
+Nous avons remarqué que lors de votre dernier passage chez
+{shop_name}, vous n'avez pas validé la commande que vous aviez
+entamée.
+
+Vous panier a été conservé, vous pouvez reprendre votre commande
+en vous rendant sur notre boutique : {shop_url}
+[{shop_url}]
+
+A titre exceptionnel, nous vous accordons également une remise de
+{amount}% sur votre commande ! Cette offre est valable {days} jours,
+ne perdez plus un instant !
+
+VOICI VOTRE BON DE RÉDUCTION : {voucher_num}
+
+Saisissez ce code dans votre panier afin d'obtenir votre réduction.
+
+{shop_name} [{shop_url}] réalisé avec
+PrestaShop(tm) [http://www.prestashop.com/]
+
diff --git a/mails/fr/ps_reminder_2.html b/mails/fr/ps_reminder_2.html
new file mode 100644
index 0000000..8793e35
--- /dev/null
+++ b/mails/fr/ps_reminder_2.html
@@ -0,0 +1,110 @@
+
+
+
+
+
+ Message from {shop_name}
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+
+
+
+
+ Bonjour {firstname} {lastname},
+ Merci d'avoir passé commande sur {shop_name}
+ |
+
+
+
+
+
+
+
+ À titre exceptionnel, nous vous accordons une remise de {amount}% sur votre prochaine commande ! Cette offre est valable {days} jours, ne perdez plus un instant !
+ Voici votre bon de réduction : {voucher_num}
+ Saisissez ce code dans votre panier afin d'obtenir votre réduction.
+ |
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
\ No newline at end of file
diff --git a/mails/fr/ps_reminder_2.txt b/mails/fr/ps_reminder_2.txt
new file mode 100644
index 0000000..f329a49
--- /dev/null
+++ b/mails/fr/ps_reminder_2.txt
@@ -0,0 +1,18 @@
+
+[{shop_url}]
+
+Bonjour {firstname} {lastname},
+
+Merci d'avoir passé commande sur {shop_name}
+
+À titre exceptionnel, nous vous accordons une remise de {amount}%
+sur votre prochaine commande ! Cette offre est valable {days} jours,
+ne perdez plus un instant !
+
+VOICI VOTRE BON DE RÉDUCTION : {voucher_num}
+
+Saisissez ce code dans votre panier afin d'obtenir votre réduction.
+
+{shop_name} [{shop_url}] réalisé avec
+PrestaShop(tm) [http://www.prestashop.com/]
+
diff --git a/mails/fr/ps_reminder_3.html b/mails/fr/ps_reminder_3.html
new file mode 100644
index 0000000..75464b2
--- /dev/null
+++ b/mails/fr/ps_reminder_3.html
@@ -0,0 +1,112 @@
+
+
+
+
+
+ Message from {shop_name}
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+
+
+
+
+ Bonjour {firstname} {lastname},
+ Merci pour votre confiance.
+ |
+
+
+
+
+
+
+
+ Vous faites partie de nos meilleurs clients et à ce titre, nous souhaitons vous remercier pour la confiance dont vous nous faites part.
+
+ Pour vous remercier de votre fidélité, nous vous accordons une remise de {amount}% valable sur votre prochaine commande ! Cette offre est valable {days} jours, ne perdez plus un instant !
+ Voici votre bon de réduction : {voucher_num}
+ Saisissez ce code dans votre panier afin d'obtenir votre réduction.
+ |
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
\ No newline at end of file
diff --git a/mails/fr/ps_reminder_3.txt b/mails/fr/ps_reminder_3.txt
new file mode 100644
index 0000000..35dc9b2
--- /dev/null
+++ b/mails/fr/ps_reminder_3.txt
@@ -0,0 +1,18 @@
+
+[{shop_url}]
+
+Bonjour {firstname} {lastname},
+
+Merci pour votre confiance.
+
+Pour vous remercier de votre fidélité, nous vous accordons une
+remise de {amount}% valable sur votre prochaine commande ! Cette offre
+est valable {days} jours, ne perdez plus un instant !
+
+VOICI VOTRE BON DE RÉDUCTION : {voucher_num}
+
+Saisissez ce code dans votre panier afin d'obtenir votre réduction.
+
+{shop_name} [{shop_url}] réalisé avec
+PrestaShop(tm) [http://www.prestashop.com/]
+
diff --git a/mails/fr/ps_reminder_4.html b/mails/fr/ps_reminder_4.html
new file mode 100644
index 0000000..e036cd3
--- /dev/null
+++ b/mails/fr/ps_reminder_4.html
@@ -0,0 +1,121 @@
+
+
+
+
+
+ Message from {shop_name}
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+
+
+
+
+ Bonjour {firstname} {lastname},
+ |
+
+
+
+
+
+
+
+ Votre panier chez {shop_name}
+
+ Vous faites partie de nos meilleurs clients cependant vous n'avez pas passé de commande depuis {days_threshold} jours.
+ Vous panier a été conservé, vous pouvez reprendre votre commande en vous rendant sur notre boutique : {shop_url}
+ Nous souhaitons vous remercier pour la confiance dont vous nous faites part et à ce titre, nous vous accordons une remise de {amount}% valable sur votre prochaine commande ! Cette offre est valable {days} jours, ne perdez plus un instant !
+ |
+
+
+
+
+
+
+
+ Voici votre bon de réduction : {voucher_num}
+ Saisissez ce code dans votre panier afin d'obtenir votre réduction.
+ |
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
\ No newline at end of file
diff --git a/mails/fr/ps_reminder_4.txt b/mails/fr/ps_reminder_4.txt
new file mode 100644
index 0000000..e8f0334
--- /dev/null
+++ b/mails/fr/ps_reminder_4.txt
@@ -0,0 +1,24 @@
+
+[{shop_url}]
+
+Bonjour {firstname} {lastname},
+
+Vous faites partie de nos meilleurs clients cependant vous n'avez pas
+passé de commande depuis {days_threshold} jours.
+
+Vous panier a été conservé, vous pouvez reprendre votre commande
+en vous rendant sur notre boutique : {shop_url}
+[{shop_url}]
+
+Nous souhaitons vous remercier pour la confiance dont vous nous
+faites part et à ce titre, nous vous accordons une remise de
+{amount}% valable sur votre prochaine commande ! Cette offre est
+valable {days} jours, ne perdez plus un instant !
+
+VOICI VOTRE BON DE RÉDUCTION : {voucher_num}
+
+Saisissez ce code dans votre panier afin d'obtenir votre réduction.
+
+{shop_name} [{shop_url}] réalisé avec
+PrestaShop(tm) [http://www.prestashop.com/]
+
diff --git a/ps_reminder.php b/ps_reminder.php
index 14df5cc..4520ce1 100644
--- a/ps_reminder.php
+++ b/ps_reminder.php
@@ -233,7 +233,7 @@ private function cancelledCart($count = false)
);
Mail::Send(
(int)$email['id_lang'],
- 'followup_1',
+ 'ps_reminder_1',
Mail::l(
'Your cart and your discount',
(int)$email['id_lang']
@@ -365,7 +365,7 @@ private function reOrder($count = false)
);
Mail::Send(
(int)$email['id_lang'],
- 'followup_2',
+ 'ps_reminder_2',
Mail::l(
'Thanks for your order',
(int)$email['id_lang']
@@ -457,7 +457,7 @@ private function bestCustomer($count = false)
);
Mail::Send(
(int)$email['id_lang'],
- 'followup_3',
+ 'ps_reminder_3',
Mail::l(
'You are one of our best customers',
(int)$email['id_lang']
@@ -566,7 +566,7 @@ private function badCustomer($count = false)
);
Mail::Send(
(int)$email['id_lang'],
- 'followup_4',
+ 'ps_reminder_4',
Mail::l(
'We miss you',
(int)$email['id_lang']
From 506c1fb9b33fac6401dd97479cd1e956b3ea3b66 Mon Sep 17 00:00:00 2001
From: Aude
Date: Tue, 2 Apr 2019 10:34:59 +0200
Subject: [PATCH 2/3] #9585 BOOM-5975 rename cron path
---
ps_reminder.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ps_reminder.php b/ps_reminder.php
index 4520ce1..03ccaff 100644
--- a/ps_reminder.php
+++ b/ps_reminder.php
@@ -749,7 +749,7 @@ public function renderForm()
array(),
'Modules.Reminder.Admin'
).'
' . $this->context->shop->getBaseURL() .
- 'modules/followup/cron.php?secure_key=' .
+ 'modules/ps_reminder/cron.php?secure_key=' .
Configuration::get('PS_FOLLOWUP_SECURE_KEY') . '
';
}
From 93b75832538119a09427973dbaff70e21dd18438 Mon Sep 17 00:00:00 2001
From: Aude
Date: Thu, 12 Mar 2020 15:29:09 +0100
Subject: [PATCH 3/3] #9585 BOOM-5975 Fix rights on english mails templates
---
mails/en/index.php | 0
mails/en/ps_reminder_1.html | 0
mails/en/ps_reminder_1.txt | 0
mails/en/ps_reminder_2.html | 0
mails/en/ps_reminder_2.txt | 0
mails/en/ps_reminder_3.html | 0
mails/en/ps_reminder_3.txt | 0
mails/en/ps_reminder_4.html | 0
mails/en/ps_reminder_4.txt | 0
9 files changed, 0 insertions(+), 0 deletions(-)
mode change 100755 => 100644 mails/en/index.php
mode change 100755 => 100644 mails/en/ps_reminder_1.html
mode change 100755 => 100644 mails/en/ps_reminder_1.txt
mode change 100755 => 100644 mails/en/ps_reminder_2.html
mode change 100755 => 100644 mails/en/ps_reminder_2.txt
mode change 100755 => 100644 mails/en/ps_reminder_3.html
mode change 100755 => 100644 mails/en/ps_reminder_3.txt
mode change 100755 => 100644 mails/en/ps_reminder_4.html
mode change 100755 => 100644 mails/en/ps_reminder_4.txt
diff --git a/mails/en/index.php b/mails/en/index.php
old mode 100755
new mode 100644
diff --git a/mails/en/ps_reminder_1.html b/mails/en/ps_reminder_1.html
old mode 100755
new mode 100644
diff --git a/mails/en/ps_reminder_1.txt b/mails/en/ps_reminder_1.txt
old mode 100755
new mode 100644
diff --git a/mails/en/ps_reminder_2.html b/mails/en/ps_reminder_2.html
old mode 100755
new mode 100644
diff --git a/mails/en/ps_reminder_2.txt b/mails/en/ps_reminder_2.txt
old mode 100755
new mode 100644
diff --git a/mails/en/ps_reminder_3.html b/mails/en/ps_reminder_3.html
old mode 100755
new mode 100644
diff --git a/mails/en/ps_reminder_3.txt b/mails/en/ps_reminder_3.txt
old mode 100755
new mode 100644
diff --git a/mails/en/ps_reminder_4.html b/mails/en/ps_reminder_4.html
old mode 100755
new mode 100644
diff --git a/mails/en/ps_reminder_4.txt b/mails/en/ps_reminder_4.txt
old mode 100755
new mode 100644