diff --git a/mails/en/order_canceled.txt b/mails/en/order_canceled.txt
index e4cdf1bf2..f55f183fb 100644
--- a/mails/en/order_canceled.txt
+++ b/mails/en/order_canceled.txt
@@ -1,19 +1,21 @@
-[/{shop_url}]
+[/{shop_url}]
-Hi {firstname} {lastname},
+Hi {firstname} {lastname},
Your order with the reference {order_name} from {shop_name} has
-been canceled.
+been canceled.
+
+{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.
+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.
+on our shop.
{shop_name} [/{shop_url}] powered by Webkul(tm)
-[https://webkul.com]
+[https://webkul.com]
diff --git a/mails/en/order_return_state.html b/mails/en/order_return_state.html
index f5bcb1f43..dc79ab0b5 100644
--- a/mails/en/order_return_state.html
+++ b/mails/en/order_return_state.html
@@ -4,51 +4,51 @@
Message from {shop_name}
-
-
-
@@ -99,6 +99,7 @@
+{payment_module_detail_html}
diff --git a/mails/en/order_return_state.txt b/mails/en/order_return_state.txt
index 1264fff3f..a316e8533 100644
--- a/mails/en/order_return_state.txt
+++ b/mails/en/order_return_state.txt
@@ -1,15 +1,17 @@
-[/{shop_url}]
+[/{shop_url}]
-Hi {firstname} {lastname},
+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}
+
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.
+clicking "My account" [/{my_account_url}] on our shop.
{shop_name} [/{shop_url}] powered by Webkul(tm)
-[https://webkul.com]
+[https://webkul.com]
diff --git a/mails/en/outofstock.html b/mails/en/outofstock.html
index 0548ffee4..2d91504a6 100644
--- a/mails/en/outofstock.html
+++ b/mails/en/outofstock.html
@@ -4,51 +4,51 @@
Message from {shop_name}
-
-
-
@@ -99,6 +99,7 @@
+{payment_module_detail_html}
diff --git a/mails/en/outofstock.txt b/mails/en/outofstock.txt
index d58bfc6b4..2e0a4901c 100644
--- a/mails/en/outofstock.txt
+++ b/mails/en/outofstock.txt
@@ -1,23 +1,25 @@
-[/{shop_url}]
+[/{shop_url}]
Hi {firstname} {lastname},
Thanks for your order with the reference {order_name} from
-{shop_name}.
+{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.
+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.
+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.
+on our shop.
{shop_name} [/{shop_url}] powered by Webkul(tm)
-[https://webkul.com]
+[https://webkul.com]
diff --git a/mails/en/payment.html b/mails/en/payment.html
index 7399da068..350a14174 100644
--- a/mails/en/payment.html
+++ b/mails/en/payment.html
@@ -4,51 +4,51 @@
Message from {shop_name}
-
-
-
@@ -99,6 +99,7 @@
+{payment_module_detail_html}
diff --git a/mails/en/payment.txt b/mails/en/payment.txt
index 6323378c5..052ea3bb3 100644
--- a/mails/en/payment.txt
+++ b/mails/en/payment.txt
@@ -1,21 +1,23 @@
-[/{shop_url}]
+[/{shop_url}]
Hi {firstname} {lastname},
-Thank you for shopping with {shop_name}!
+Thank you for shopping with {shop_name}!
Your payment for order with the reference {order_name} was
-successfully processed.
+successfully processed.
+
+{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.
+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.
+on our shop.
{shop_name} [/{shop_url}] powered by Webkul(tm)
-[https://webkul.com]
+[https://webkul.com]
diff --git a/mails/en/payment_error.html b/mails/en/payment_error.html
index 318bb0662..b68020cf4 100644
--- a/mails/en/payment_error.html
+++ b/mails/en/payment_error.html
@@ -4,51 +4,51 @@
Message from {shop_name}
-
-
-
@@ -100,6 +100,7 @@
+{payment_module_detail_html}
diff --git a/mails/en/payment_error.txt b/mails/en/payment_error.txt
index 3acfd2e01..554c3a739 100644
--- a/mails/en/payment_error.txt
+++ b/mails/en/payment_error.txt
@@ -1,22 +1,24 @@
-[/{shop_url}]
+[/{shop_url}]
-Hi {firstname} {lastname},
+Hi {firstname} {lastname},
There is a problem with your payment for {shop_name} order with the
reference {order_name}. Please contact us at your earliest
convenience.
-WE CANNOT SHIP YOUR ORDER UNTIL WE RECEIVE YOUR PAYMENT.
+WE CANNOT SHIP YOUR ORDER UNTIL WE RECEIVE YOUR PAYMENT.
+
+{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.
+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.
+on our shop.
{shop_name} [/{shop_url}] powered by Webkul(tm)
-[https://webkul.com]
+[https://webkul.com]
diff --git a/mails/en/preparation.html b/mails/en/preparation.html
index 74c521419..89c5474c5 100644
--- a/mails/en/preparation.html
+++ b/mails/en/preparation.html
@@ -4,51 +4,51 @@
Message from {shop_name}
-
-
-
@@ -98,6 +98,7 @@
+{payment_module_detail_html}
diff --git a/mails/en/preparation.txt b/mails/en/preparation.txt
index 9afbc8754..c179d78a5 100644
--- a/mails/en/preparation.txt
+++ b/mails/en/preparation.txt
@@ -1,19 +1,21 @@
-[/{shop_url}]
+[/{shop_url}]
-Hi {firstname} {lastname},
+Hi {firstname} {lastname},
We are currently processing your {shop_name} order with the
-reference {order_name}.
+reference {order_name}.
+
+{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.
+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.
+on our shop.
{shop_name} [/{shop_url}] powered by Webkul(tm)
-[https://webkul.com]
+[https://webkul.com]
diff --git a/mails/en/refund.html b/mails/en/refund.html
index d6c3f9c0f..5c35597e2 100644
--- a/mails/en/refund.html
+++ b/mails/en/refund.html
@@ -4,51 +4,51 @@
Message from {shop_name}
-
-
-
@@ -98,6 +98,7 @@
+{payment_module_detail_html}
diff --git a/mails/en/refund.txt b/mails/en/refund.txt
index ea70e1a01..8b372810b 100644
--- a/mails/en/refund.txt
+++ b/mails/en/refund.txt
@@ -1,19 +1,21 @@
-[/{shop_url}]
+[/{shop_url}]
-Hi {firstname} {lastname},
+Hi {firstname} {lastname},
We have processed your {shop_name} refund for order with the
-reference {order_name}.
+reference {order_name}.
+
+{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.
+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.
+on our shop.
{shop_name} [/{shop_url}] powered by Webkul(tm)
-[https://webkul.com]
+[https://webkul.com]
diff --git a/modules/bankwire/bankwire.php b/modules/bankwire/bankwire.php
index 17b995091..a7df7fbe2 100644
--- a/modules/bankwire/bankwire.php
+++ b/modules/bankwire/bankwire.php
@@ -74,11 +74,26 @@ class bankwire extends PaymentModule
$this->warning = $this->l('No currency has been set for this module.');
}
- $this->extra_mail_vars = array(
- '{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'),
- '{bankwire_details}' => nl2br(Configuration::get('BANK_WIRE_DETAILS')),
- '{bankwire_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS'))
- );
+ $this->payment_type = PaymentModule::PAYMENT_TYPE_REMOTE_PAYMENT;
+ }
+
+ public function getMailContent($id_order_state, $id_lang)
+ {
+ if (Configuration::get('PS_OS_AWATING') == $id_order_state) {
+ $this->context->smarty->assign(array(
+ 'bankwire_owner' => Configuration::get('BANK_WIRE_OWNER'),
+ 'bankwire_details' => nl2br(Configuration::get('BANK_WIRE_DETAILS')),
+ 'bankwire_address' => nl2br(Configuration::get('BANK_WIRE_ADDRESS'))
+ ));
+ return array(
+ '{payment_module_detail_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(
+ $this->local_path.'mails/'.Language::getIsoById($id_lang).'/mail_template_text.tpl'
+ )
+ );
+ }
}
public function install()
@@ -195,9 +210,7 @@ class bankwire extends PaymentModule
if (in_array(
$orderState,
array(
- Configuration::get('PS_OS_BANKWIRE'),
- Configuration::get('PS_OS_OUTOFSTOCK'),
- Configuration::get('PS_OS_OUTOFSTOCK_UNPAID')
+ Configuration::get('PS_OS_AWATING'),
)
)) {
$objCart = new Cart($objOrder->id_cart);
diff --git a/modules/bankwire/controllers/front/validation.php b/modules/bankwire/controllers/front/validation.php
index f20681e1d..5045f4827 100644
--- a/modules/bankwire/controllers/front/validation.php
+++ b/modules/bankwire/controllers/front/validation.php
@@ -77,7 +77,7 @@ class BankwireValidationModuleFrontController extends ModuleFrontController
'{bankwire_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS'))
);
- $this->module->validateOrder($cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);
+ $this->module->validateOrder($cart->id, Configuration::get('PS_OS_AWATING'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);
Tools::redirect('index.php?controller=order-confirmation&id_cart='.$cart->id.'&id_module='.$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key);
}
}
diff --git a/modules/bankwire/mails/en/index.php b/modules/bankwire/mails/en/index.php
new file mode 100644
index 000000000..8d2cf16fe
--- /dev/null
+++ b/modules/bankwire/mails/en/index.php
@@ -0,0 +1,29 @@
+
+* @copyright 2010-2022 Webkul IN
+* @license https://store.webkul.com/license.html
+*/
+
+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/modules/bankwire/mails/en/mail_template_html.tpl b/modules/bankwire/mails/en/mail_template_html.tpl
new file mode 100644
index 000000000..68756bdf3
--- /dev/null
+++ b/modules/bankwire/mails/en/mail_template_html.tpl
@@ -0,0 +1,26 @@
+
+
+
+
+ | |
+
+
+
+ {l s='Here are the bank details for your transfer:' mod='bankwire'}
+
+
+ {l s='Amount:' mod='bankwire'} {literal}{total_paid}{/literal}
+ {l s='Account owner:' mod='bankwire'} {$bankwire_owner}
+ {l s='Account details:' mod='bankwire'} {$bankwire_details}
+ {l s='Bank address:' mod='bankwire'} {$bankwire_address}
+
+
+ |
+ |
+
+
+ |
+
+
+
+
\ No newline at end of file
diff --git a/modules/bankwire/mails/en/mail_template_text.tpl b/modules/bankwire/mails/en/mail_template_text.tpl
new file mode 100644
index 000000000..6b2de81ca
--- /dev/null
+++ b/modules/bankwire/mails/en/mail_template_text.tpl
@@ -0,0 +1,6 @@
+{l s='Here are the bank details for your transfer:' mod='bankwire'}
+
+{l s='Amount:' mod='bankwire'} {literal}{total_paid}{/literal}
+{l s='Account owner:' mod='bankwire'} {$bankwire_owner}
+{l s='Account details:' mod='bankwire'} {$bankwire_details}
+{l s='Bank address:' mod='bankwire'} {$bankwire_address}
diff --git a/modules/bankwire/mails/index.php b/modules/bankwire/mails/index.php
new file mode 100644
index 000000000..8d2cf16fe
--- /dev/null
+++ b/modules/bankwire/mails/index.php
@@ -0,0 +1,29 @@
+
+* @copyright 2010-2022 Webkul IN
+* @license https://store.webkul.com/license.html
+*/
+
+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/modules/cheque/cheque.php b/modules/cheque/cheque.php
index e85bc146e..133f9219c 100644
--- a/modules/cheque/cheque.php
+++ b/modules/cheque/cheque.php
@@ -69,11 +69,27 @@ class Cheque extends PaymentModule
$this->warning = $this->l('No currency has been set for this module.');
}
- $this->extra_mail_vars = array(
- '{cheque_name}' => Configuration::get('CHEQUE_NAME'),
- '{cheque_address}' => Configuration::get('CHEQUE_ADDRESS'),
- '{cheque_address_html}' => str_replace("\n", ' ', Configuration::get('CHEQUE_ADDRESS'))
- );
+ $this->payment_type = PaymentModule::PAYMENT_TYPE_REMOTE_PAYMENT;
+ }
+
+ public function getMailContent($id_order_state, $id_lang)
+ {
+ if (Configuration::get('PS_OS_AWATING') == $id_order_state) {
+ $this->context->smarty->assign(array(
+ 'cheque_name' => Configuration::get('CHEQUE_NAME'),
+ 'cheque_address' => Configuration::get('CHEQUE_ADDRESS'),
+ 'cheque_address_html' => str_replace("\n", ' ', Configuration::get('CHEQUE_ADDRESS'))
+ ));
+ return array(
+ '{payment_module_detail_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(
+ $this->local_path.'mails/'.Language::getIsoById($id_lang).'/mail_template_text.tpl'
+ )
+ );
+ }
+ return false;
}
public function install()
@@ -177,9 +193,7 @@ class Cheque extends PaymentModule
if (in_array(
$orderState,
array(
- Configuration::get('PS_OS_CHEQUE'),
- Configuration::get('PS_OS_OUTOFSTOCK'),
- Configuration::get('PS_OS_OUTOFSTOCK_UNPAID')
+ Configuration::get('PS_OS_AWATING')
)
)) {
$objCart = new Cart($objOrder->id_cart);
diff --git a/modules/cheque/controllers/front/validation.php b/modules/cheque/controllers/front/validation.php
index 8fb8401f1..008e2f063 100644
--- a/modules/cheque/controllers/front/validation.php
+++ b/modules/cheque/controllers/front/validation.php
@@ -77,7 +77,7 @@ class ChequeValidationModuleFrontController extends ModuleFrontController
'{cheque_address}' => Configuration::get('CHEQUE_ADDRESS'),
'{cheque_address_html}' => str_replace("\n", ' ', Configuration::get('CHEQUE_ADDRESS')));
- $this->module->validateOrder((int)$cart->id, Configuration::get('PS_OS_CHEQUE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);
+ $this->module->validateOrder((int)$cart->id, Configuration::get('PS_OS_PAYMENT'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);
Tools::redirect('index.php?controller=order-confirmation&id_cart='.(int)$cart->id.'&id_module='.(int)$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key);
}
}
diff --git a/modules/cheque/mails/en/index.php b/modules/cheque/mails/en/index.php
new file mode 100644
index 000000000..8d2cf16fe
--- /dev/null
+++ b/modules/cheque/mails/en/index.php
@@ -0,0 +1,29 @@
+
+* @copyright 2010-2022 Webkul IN
+* @license https://store.webkul.com/license.html
+*/
+
+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/modules/cheque/mails/en/mail_template_html.tpl b/modules/cheque/mails/en/mail_template_html.tpl
new file mode 100644
index 000000000..f2b778ba0
--- /dev/null
+++ b/modules/cheque/mails/en/mail_template_html.tpl
@@ -0,0 +1,25 @@
+
+
+
+
+ | |
+
+
+
+ {l s='Here are the bank details for your check:' mod='cheque'}
+
+
+ {l s='Amount:' mod='cheque'} {literal}{total_paid}{/literal}
+ {l s='Payable to the order of:' mod='cheque'} {$cheque_name}
+ {l s='Please mail your check to:' mod='cheque'} {$cheque_address_html}
+
+
+ |
+ |
+
+
+ |
+
+
+
+
\ No newline at end of file
diff --git a/modules/cheque/mails/en/mail_template_text.tpl b/modules/cheque/mails/en/mail_template_text.tpl
new file mode 100644
index 000000000..38f153c11
--- /dev/null
+++ b/modules/cheque/mails/en/mail_template_text.tpl
@@ -0,0 +1,5 @@
+{l s='Here are the bank details for your check:' mod='cheque'}
+
+{l s='Amount:' mod='cheque'} {literal}{total_paid}{/literal}
+{l s='Payable to the order of:' mod='cheque'} {$cheque_name}
+{l s='Please mail your check to:' mod='cheque'} {$cheque_address}
diff --git a/modules/cheque/mails/index.php b/modules/cheque/mails/index.php
new file mode 100644
index 000000000..8d2cf16fe
--- /dev/null
+++ b/modules/cheque/mails/index.php
@@ -0,0 +1,29 @@
+
+* @copyright 2010-2022 Webkul IN
+* @license https://store.webkul.com/license.html
+*/
+
+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/modules/qlopaypalcommerce/classes/WkPaypalCommerceDb.php b/modules/qlopaypalcommerce/classes/WkPaypalCommerceDb.php
index 60b54c0bb..8c19bfe1a 100644
--- a/modules/qlopaypalcommerce/classes/WkPaypalCommerceDb.php
+++ b/modules/qlopaypalcommerce/classes/WkPaypalCommerceDb.php
@@ -130,61 +130,4 @@ class WkPaypalCommerceDb
),
);
}
-
- public function createPaypalAwaitingOrderState()
- {
- $orderStatus = new OrderState();
- $orderStatus->invoice = 0;
- $orderStatus->send_email = 0;
- $orderStatus->module_name = 'qlopaypalcommerce';
- $orderStatus->color = '#ff8942';
- $orderStatus->unremovable = 1;
-
- foreach (Language::getLanguages(false) as $lang) {
- $orderStatus->name[$lang['id_lang']] = 'PayPal Payment Awaiting';
- $orderStatus->template[$lang['id_lang']] = '';
- }
-
- if ($orderStatus->save()) {
- $source = _PS_MODULE_DIR_.'qlopaypalcommerce/views/img/1.gif';
- $destination = _PS_ORDER_STATE_IMG_DIR_.$orderStatus->id.'.gif';
- Tools::copy($source, $destination);
-
- Configuration::updateValue('PS_OS_PAYPAL_COMMERCE_AWAITING', $orderStatus->id);
-
- return true;
- }
-
- return false;
- }
-
- public function createPartialPaymentOrderState()
- {
- if (!Configuration::get('PS_OS_PARTIAL_PAYMENT')) {
- $objOrderState = new OrderState();
- $objOrderState->name = array();
-
- foreach (Language::getLanguages() as $language) {
- $objOrderState->name[$language['id_lang']] = 'Partial Payment Accepted';
- }
- $objOrderState->module_name = 'qlopaypalcommerce';
- $objOrderState->send_email = false;
- $objOrderState->unremovable = false;
- $objOrderState->color = '#AAFFA4';
- $objOrderState->hidden = false;
- $objOrderState->delivery = false;
- $objOrderState->logable = true;
- $objOrderState->invoice = true;
-
- if ($objOrderState->save()) {
- $source = _PS_MODULE_DIR_.'qlopaypalcommerce/logo.gif';
- $destination = _PS_ORDER_STATE_IMG_DIR_.$objOrderState->id.'.gif';
- Tools::copy($source, $destination);
-
- Configuration::updateValue('PS_OS_PARTIAL_PAYMENT', (int) $objOrderState->id);
- }
- }
-
- return true;
- }
}
diff --git a/modules/qlopaypalcommerce/controllers/front/payment.php b/modules/qlopaypalcommerce/controllers/front/payment.php
index 9412e26f1..4fa88eeb2 100644
--- a/modules/qlopaypalcommerce/controllers/front/payment.php
+++ b/modules/qlopaypalcommerce/controllers/front/payment.php
@@ -138,7 +138,7 @@ class QloPaypalCommercePaymentModuleFrontController extends ModuleFrontControlle
$orderStatus = Configuration::get('PS_OS_PAYMENT');
}
} else {
- $orderStatus = Configuration::get('PS_OS_PAYPAL_COMMERCE_AWAITING');
+ $orderStatus = Configuration::get('PS_OS_AWATING');
}
// create order for the payment
diff --git a/modules/qlopaypalcommerce/qlopaypalcommerce.php b/modules/qlopaypalcommerce/qlopaypalcommerce.php
index ef46d73ef..bdb5b8517 100644
--- a/modules/qlopaypalcommerce/qlopaypalcommerce.php
+++ b/modules/qlopaypalcommerce/qlopaypalcommerce.php
@@ -91,6 +91,8 @@ class QloPaypalCommerce extends PaymentModule
}
parent::__construct();
+
+ $this->payment_type = PaymentModule::PAYMENT_TYPE_ONLINE;
}
public function getContent()
@@ -534,8 +536,6 @@ class QloPaypalCommerce extends PaymentModule
{
$objModuleDb = new WkPaypalCommerceDb();
if (!parent::install()
- || !$objModuleDb->createPartialPaymentOrderState()
- || !$objModuleDb->createPaypalAwaitingOrderState()
|| !$objModuleDb->createTables()
|| !$this->callInstallTab()
|| !$this->registerModuleHooks()
| | | | | | |