diff --git a/mails/en/awaiting_payment.txt b/mails/en/awaiting_payment.txt
index 0cec17845..c16fdc26f 100644
--- a/mails/en/awaiting_payment.txt
+++ b/mails/en/awaiting_payment.txt
@@ -9,7 +9,7 @@ Order {order_name} - Awaiting payment
Order reference: {order_name}
Payment method: {payment_method}
-{payment_module_detail_text}
+{extra_mail_content_txt}
You can review your order and download your invoice from the
"Order history" [/{history_url}] section of your customer account by
diff --git a/mails/en/order_canceled.html b/mails/en/order_canceled.html
index b2a3e84a8..a839f1878 100644
--- a/mails/en/order_canceled.html
+++ b/mails/en/order_canceled.html
@@ -98,7 +98,7 @@
-{payment_module_detail_html}
+{extra_mail_content_html}
diff --git a/mails/en/order_canceled.txt b/mails/en/order_canceled.txt
index f55f183fb..c84dd4476 100644
--- a/mails/en/order_canceled.txt
+++ b/mails/en/order_canceled.txt
@@ -6,7 +6,7 @@ Hi {firstname} {lastname},
Your order with the reference {order_name} from {shop_name} has
been canceled.
-{payment_module_detail_text}
+{extra_mail_content_txt}
You can review your order and download your invoice from the
"Order history" [/{history_url}] section of your customer account by
diff --git a/mails/en/order_return_state.html b/mails/en/order_return_state.html
index dc79ab0b5..7abe9b4d7 100644
--- a/mails/en/order_return_state.html
+++ b/mails/en/order_return_state.html
@@ -99,7 +99,7 @@
-{payment_module_detail_html}
+{extra_mail_content_html}
diff --git a/mails/en/order_return_state.txt b/mails/en/order_return_state.txt
index a316e8533..33d61642f 100644
--- a/mails/en/order_return_state.txt
+++ b/mails/en/order_return_state.txt
@@ -6,7 +6,7 @@ Hi {firstname} {lastname},
We have updated the progress on your return #{id_order_return}, the
new status is: "{state_order_return}"
-{payment_module_detail_text}
+{extra_mail_content_txt}
You can review your order and download your invoice from the
"Order history" [/{history_url}] section of your customer account by
diff --git a/mails/en/outofstock.html b/mails/en/outofstock.html
deleted file mode 100644
index 2d91504a6..000000000
--- a/mails/en/outofstock.html
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-
-
-
- Message from {shop_name}
-
-
-
-
-
-
-
-
- | |
-
-
-
-
-
-
-
- |
-
-
-
-
-
- Hi {firstname} {lastname},
- Thanks for your order with the reference {order_name} from {shop_name}.
-
- |
-
-
-
-
-
-
-
-
- | |
-
-
-
- Order {order_name} - Item(s) out of stock
-
- Unfortunately, one or more items are currently out of stock. This may cause a slight delay in your delivery. Please accept our apologies and rest assured that we are working hard to rectify this.
-
- |
- |
-
-
- |
-
-
-
-
-{payment_module_detail_html}
-
- |
-
-
- You can review your order and download your invoice from the "Order history" section of your customer account by clicking "My account" on our shop.
-
- |
-
-
- |
-
-
- If you have a guest account, you can follow your order via the "Guest Tracking" section on our shop.
-
- |
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/mails/en/outofstock.txt b/mails/en/outofstock.txt
deleted file mode 100644
index 2e0a4901c..000000000
--- a/mails/en/outofstock.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-
-[/{shop_url}]
-
-Hi {firstname} {lastname},
-
-Thanks for your order with the reference {order_name} from
-{shop_name}.
-
-Unfortunately, one or more items are currently out of stock. This
-may cause a slight delay in your delivery. Please accept our apologies
-and rest assured that we are working hard to rectify this.
-
-{payment_module_detail_text}
-
-You can review your order and download your invoice from the
-"Order history" [/{history_url}] section of your customer account by
-clicking "My account" [/{my_account_url}] on our shop.
-
-If you have a guest account, you can follow your order via the
-"Guest Tracking" [/{guest_tracking_url}?id_order={order_name}] section
-on our shop.
-
-{shop_name} [/{shop_url}] powered by Webkul(tm)
-[https://webkul.com]
-
diff --git a/mails/en/payment_accepted.html b/mails/en/payment_accepted.html
index 350a14174..8c337c44e 100644
--- a/mails/en/payment_accepted.html
+++ b/mails/en/payment_accepted.html
@@ -99,7 +99,7 @@
-{payment_module_detail_html}
+{extra_mail_content_html}
diff --git a/mails/en/payment_accepted.txt b/mails/en/payment_accepted.txt
index 052ea3bb3..41e7d6bb8 100644
--- a/mails/en/payment_accepted.txt
+++ b/mails/en/payment_accepted.txt
@@ -8,7 +8,7 @@ Thank you for shopping with {shop_name}!
Your payment for order with the reference {order_name} was
successfully processed.
-{payment_module_detail_text}
+{extra_mail_content_txt}
You can review your order and download your invoice from the
"Order history" [/{history_url}] section of your customer account by
diff --git a/mails/en/payment_error.html b/mails/en/payment_error.html
index b68020cf4..3f4de0e93 100644
--- a/mails/en/payment_error.html
+++ b/mails/en/payment_error.html
@@ -100,7 +100,7 @@
-{payment_module_detail_html}
+{extra_mail_content_html}
diff --git a/mails/en/payment_error.txt b/mails/en/payment_error.txt
index 554c3a739..bf15780d7 100644
--- a/mails/en/payment_error.txt
+++ b/mails/en/payment_error.txt
@@ -9,7 +9,7 @@ convenience.
WE CANNOT SHIP YOUR ORDER UNTIL WE RECEIVE YOUR PAYMENT.
-{payment_module_detail_text}
+{extra_mail_content_txt}
You can review your order and download your invoice from the
"Order history" [/{history_url}] section of your customer account by
diff --git a/mails/en/processing.html b/mails/en/processing.html
index 89c5474c5..febfe804b 100644
--- a/mails/en/processing.html
+++ b/mails/en/processing.html
@@ -98,7 +98,7 @@
-{payment_module_detail_html}
+{extra_mail_content_html}
diff --git a/mails/en/processing.txt b/mails/en/processing.txt
index c179d78a5..979df0e4b 100644
--- a/mails/en/processing.txt
+++ b/mails/en/processing.txt
@@ -6,7 +6,7 @@ Hi {firstname} {lastname},
We are currently processing your {shop_name} order with the
reference {order_name}.
-{payment_module_detail_text}
+{extra_mail_content_txt}
You can review your order and download your invoice from the
"Order history" [/{history_url}] section of your customer account by
diff --git a/mails/en/refund.html b/mails/en/refund.html
index 5c35597e2..40a9d7715 100644
--- a/mails/en/refund.html
+++ b/mails/en/refund.html
@@ -98,7 +98,7 @@
-{payment_module_detail_html}
+{extra_mail_content_html}
diff --git a/mails/en/refund.txt b/mails/en/refund.txt
index 8b372810b..7c1a7e414 100644
--- a/mails/en/refund.txt
+++ b/mails/en/refund.txt
@@ -6,7 +6,7 @@ Hi {firstname} {lastname},
We have processed your {shop_name} refund for order with the
reference {order_name}.
-{payment_module_detail_text}
+{extra_mail_content_txt}
You can review your order and download your invoice from the
"Order history" [/{history_url}] section of your customer account by
diff --git a/modules/bankwire/bankwire.php b/modules/bankwire/bankwire.php
index 5a07c8344..79b7687f4 100644
--- a/modules/bankwire/bankwire.php
+++ b/modules/bankwire/bankwire.php
@@ -74,10 +74,10 @@ class Bankwire extends PaymentModule
$this->warning = $this->l('No currency has been set for this module.');
}
- $this->payment_type = PaymentModule::PAYMENT_TYPE_REMOTE_PAYMENT;
+ $this->payment_type = OrderPayment::PAYMENT_TYPE_REMOTE_PAYMENT;
}
- public function getMailContent($id_order_state, $id_lang)
+ public function getExtraMailContent($id_order_state, $id_lang)
{
if (Configuration::get('PS_OS_AWAITING_PAYMENT') == $id_order_state) {
$this->context->smarty->assign(array(
@@ -86,14 +86,15 @@ class Bankwire extends PaymentModule
'bankwire_address' => nl2br(Configuration::get('BANK_WIRE_ADDRESS'))
));
return array(
- '{payment_module_detail_html}' => $this->context->smarty->fetch(
+ '{extra_mail_content_html}' => $this->context->smarty->fetch(
$this->local_path.'mails/'.Language::getIsoById($id_lang).'/mail_template_html.tpl'
),
- '{payment_module_detail_text}' => $this->context->smarty->fetch(
+ '{extra_mail_content_txt}' => $this->context->smarty->fetch(
$this->local_path.'mails/'.Language::getIsoById($id_lang).'/mail_template_text.tpl'
)
);
}
+ return array();
}
public function install()
diff --git a/modules/cheque/cheque.php b/modules/cheque/cheque.php
index 8ef2f3766..4f789f607 100644
--- a/modules/cheque/cheque.php
+++ b/modules/cheque/cheque.php
@@ -69,10 +69,10 @@ class Cheque extends PaymentModule
$this->warning = $this->l('No currency has been set for this module.');
}
- $this->payment_type = PaymentModule::PAYMENT_TYPE_REMOTE_PAYMENT;
+ $this->payment_type = OrderPayment::PAYMENT_TYPE_REMOTE_PAYMENT;
}
- public function getMailContent($id_order_state, $id_lang)
+ public function getExtraMailContent($id_order_state, $id_lang)
{
if (Configuration::get('PS_OS_AWAITING_PAYMENT') == $id_order_state) {
$this->context->smarty->assign(array(
@@ -81,15 +81,15 @@ class Cheque extends PaymentModule
'cheque_address_html' => str_replace("\n", ' ', Configuration::get('CHEQUE_ADDRESS'))
));
return array(
- '{payment_module_detail_html}' => $this->context->smarty->fetch(
+ '{extra_mail_content_html}' => $this->context->smarty->fetch(
$this->local_path.'mails/'.Language::getIsoById($id_lang).'/mail_template_html.tpl'
),
- '{payment_module_detail_text}' => $this->context->smarty->fetch(
+ '{extra_mail_content_txt}' => $this->context->smarty->fetch(
$this->local_path.'mails/'.Language::getIsoById($id_lang).'/mail_template_text.tpl'
)
);
}
- return false;
+ return array();
}
public function install()
diff --git a/modules/qlopaypalcommerce/qlopaypalcommerce.php b/modules/qlopaypalcommerce/qlopaypalcommerce.php
index bdb5b8517..b54e043c9 100644
--- a/modules/qlopaypalcommerce/qlopaypalcommerce.php
+++ b/modules/qlopaypalcommerce/qlopaypalcommerce.php
@@ -92,7 +92,7 @@ class QloPaypalCommerce extends PaymentModule
parent::__construct();
- $this->payment_type = PaymentModule::PAYMENT_TYPE_ONLINE;
+ $this->payment_type = OrderPayment::PAYMENT_TYPE_ONLINE;
}
public function getContent()
| | | | | | |