first commit

This commit is contained in:
2024-10-25 14:16:28 +02:00
commit 925276dbb2
33795 changed files with 4780077 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<?php
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;

View File

@@ -0,0 +1,22 @@
<?php
class OrderCarrier extends OrderCarrierCore
{
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);
}
}

View File

@@ -0,0 +1,41 @@
<?php
class OrderHistory extends OrderHistoryCore
{
public function addWithemail($autodate = true, $template_vars = false, Context $context = null)
{
$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 $this->add($autodate);
}
}
return parent::addWithemail($autodate, $template_vars, $context);
}
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);
}
}

View File

@@ -0,0 +1,11 @@
<?php
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;

View File

@@ -0,0 +1,11 @@
<?php
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;