first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
if (!defined('_PS_VERSION_')) {
exit;
}
require_once (dirname(__FILE__) . '/../x13allegro.php');
/**
* @return bool
*/
function upgrade_module_4_1_12()
{
XAllegroAutoLoader::getInstance()
->generateClassIndex()
->autoload();
if (!XAllegroConfiguration::get('ORDER_CUSTOMER_MESSAGE_CONTACT')) {
$contacts = Contact::getContacts(Context::getContext()->language->id);
if (!empty($contacts) && isset($contacts[0]['id_contact'])) {
XAllegroConfiguration::updateValue('ORDER_CUSTOMER_MESSAGE_CONTACT', $contacts[0]['id_contact']);
}
}
return true;
}