24 lines
651 B
PHP
24 lines
651 B
PHP
<?php
|
|
class OrderCarrier extends OrderCarrierCore
|
|
{
|
|
/*
|
|
* module: x13allegro
|
|
* date: 2020-12-08 19:09:18
|
|
* version: 6.3.2
|
|
*/
|
|
public function sendInTransitEmail($order)
|
|
{
|
|
$allegro = _PS_MODULE_DIR_ . 'x13allegro/x13allegro.php';
|
|
if (file_exists($allegro)) {
|
|
require_once ($allegro);
|
|
if (Module::isEnabled('x13allegro')
|
|
&& XAllegroForm::orderExists($order->id)
|
|
&& !(bool)XAllegroConfiguration::get('ORDER_SEND_CUSTOMER_MAIL')
|
|
) {
|
|
return true;
|
|
}
|
|
}
|
|
return parent::sendInTransitEmail($order);
|
|
}
|
|
}
|