id_order) && !(bool)XAllegroConfiguration::get('ORDER_SEND_CUSTOMER_MAIL') ) { return $this->add($autodate); } } return parent::addWithemail($autodate, $template_vars, $context); } /* * module: x13allegro * date: 2022-03-31 18:56:14 * version: 6.7.3 */ public function sendEmail($order, $template_vars = false) { $allegro = _PS_MODULE_DIR_ . 'x13allegro/x13allegro.php'; if (file_exists($allegro)) { require_once ($allegro); if (Module::isEnabled('x13allegro') && XAllegroForm::orderExists($this->id_order) && !(bool)XAllegroConfiguration::get('ORDER_SEND_CUSTOMER_MAIL') ) { return true; } } return parent::sendEmail($order, $template_vars); } }