Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_1_10_0($module)
{
$module->registerhook('actionObjectCustomerAddAfter');
$module->registerhook('actionObjectCustomerUpdateAfter');
$module->registerhook('actionObjectCustomerDeleteAfter');
return true;
}

View File

@@ -0,0 +1,40 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_1_10_3($module)
{
$module->registerhook('actionObjectWishlistAddAfter');
$module->registerhook('actionObjectWishlistUpdateAfter');
$module->registerhook('actionObjectWishlistDeleteAfter');
return true;
}

View File

@@ -0,0 +1,40 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_1_10_7($module)
{
$module->registerhook('actionObjectStoreAddAfter');
$module->registerhook('actionObjectStoreUpdateAfter');
$module->registerhook('actionObjectStoreDeleteAfter');
return true;
}

View File

@@ -0,0 +1,39 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_1_10_8($module)
{
$module->registerhook('actionObjectStockAddAfter');
$module->registerhook('actionObjectStockUpdateAfter');
return true;
}

View File

@@ -0,0 +1,58 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @param Ps_eventbus $module
*
* @return bool
*/
function upgrade_module_1_3_7($module)
{
$module->registerhook('actionObjectCarrierAddAfter');
$module->registerhook('actionObjectCarrierUpdateAfter');
$module->registerhook('actionObjectCarrierDeleteAfter');
$module->registerhook('actionObjectCountryAddAfter');
$module->registerhook('actionObjectCountryUpdateAfter');
$module->registerhook('actionObjectCountryDeleteAfter');
$module->registerhook('actionObjectStateAddAfter');
$module->registerhook('actionObjectStateUpdateAfter');
$module->registerhook('actionObjectStateUpdateAfter');
$module->registerhook('actionObjectZoneAddAfter');
$module->registerhook('actionObjectZoneUpdateAfter');
$module->registerhook('actionObjectZoneDeleteAfter');
$module->registerhook('actionObjectTaxAddAfter');
$module->registerhook('actionObjectTaxUpdateAfter');
$module->registerhook('actionObjectTaxDeleteAfter');
$module->registerhook('actionObjectTaxRulesGroupAddAfter');
$module->registerhook('actionObjectTaxRulesGroupUpdateAfter');
$module->registerhook('actionObjectTaxRulesGroupDeleteAfter');
$module->registerhook('actionShippingPreferencesPageSave');
return true;
}

View File

@@ -0,0 +1,41 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_1_5_1()
{
$db = Db::getInstance();
$db->delete('eventbus_deleted_objects', 'id_object = 0');
$db->delete('eventbus_incremental_sync', 'id_object = 0');
return true;
}

View File

@@ -0,0 +1,42 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @param Ps_eventbus $module
*
* @return bool
*/
function upgrade_module_1_5_2($module)
{
$module->registerhook('actionObjectSpecificPriceAddAfter');
$module->registerhook('actionObjectSpecificPriceUpdateAfter');
$module->registerhook('actionObjectSpecificPriceDeleteAfter');
return true;
}

View File

@@ -0,0 +1,40 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @param Ps_eventbus $module
*
* @return bool
*/
function upgrade_module_1_6_9($module)
{
$module->registerhook('actionObjectCombinationDeleteAfter');
return true;
}

View File

@@ -0,0 +1,40 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_1_7_1()
{
$db = Db::getInstance();
$db->update('eventbus_type_sync', ['full_sync_finished' => 0], '`type` = "products"');
return true;
}

View File

@@ -0,0 +1,40 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_1_7_11()
{
$db = Db::getInstance();
$db->update('eventbus_type_sync', ['full_sync_finished' => 0], '`type` = "orders"');
return true;
}

View File

@@ -0,0 +1,40 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_1_7_15()
{
$db = Db::getInstance();
$db->update('eventbus_type_sync', ['full_sync_finished' => 0], '`type` = "orders"');
return true;
}

View File

@@ -0,0 +1,44 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
use PrestaShop\Module\PsEventbus\Config\Config;
/**
* @return bool
*/
function upgrade_module_1_7_2()
{
$db = Db::getInstance();
$db->update('eventbus_incremental_sync', ['type' => Config::COLLECTION_CUSTOM_PRODUCT_CARRIERS], '`type` = "custom_product_carrier"');
$db->update('eventbus_incremental_sync', ['type' => Config::COLLECTION_SPECIFIC_PRICES], '`type` = "specific_price"');
$db->update('eventbus_incremental_sync', ['type' => Config::COLLECTION_CARRIERS], '`type` = "carrier"');
return true;
}

View File

@@ -0,0 +1,41 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_1_8_1()
{
$db = Db::getInstance();
$db->update('eventbus_type_sync', ['full_sync_finished' => 0], '`type` = "orders"');
$db->update('eventbus_type_sync', ['full_sync_finished' => 0], '`type` = "info"');
return true;
}

View File

@@ -0,0 +1,41 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @param Ps_eventbus $module
*
* @return bool
*/
function upgrade_module_1_9_3($module)
{
$module->registerhook('actionObjectCurrencyAddAfter');
$module->registerhook('actionObjectCurrencyUpdateAfter');
return true;
}

View File

@@ -0,0 +1,40 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_1_9_7()
{
$db = Db::getInstance();
$db->update('eventbus_type_sync', ['full_sync_finished' => 0], '`type` = "categories"');
return true;
}

View File

@@ -0,0 +1,40 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_2_1_0($module)
{
$module->registerhook('actionObjectImageAddAfter');
$module->registerhook('actionObjectImageDeleteAfter');
$module->registerhook('actionObjectImageUpdateAfter');
return true;
}

View File

@@ -0,0 +1,44 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_2_3_0($module)
{
$module->registerhook('actionObjectManufacturerAddAfter');
$module->registerhook('actionObjectManufacturerDeleteAfter');
$module->registerhook('actionObjectManufacturerUpdateAfter');
$module->registerhook('actionObjectSupplierAddAfter');
$module->registerhook('actionObjectSupplierDeleteAfter');
$module->registerhook('actionObjectSupplierUpdateAfter');
return true;
}

View File

@@ -0,0 +1,40 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_2_3_2($module)
{
$module->registerhook('actionObjectLanguageAddAfter');
$module->registerhook('actionObjectLanguageDeleteAfter');
$module->registerhook('actionObjectLanguageUpdateAfter');
return true;
}

View File

@@ -0,0 +1,51 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_3_0_0($module)
{
$db = Db::getInstance();
$query = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'eventbus_live_sync` (
`shop_content` VARCHAR(50) NOT NULL,
`last_change_at` DATETIME NOT NULL,
PRIMARY KEY (`shop_content`)
) ENGINE = ENGINE_TYPE
DEFAULT CHARSET = utf8;';
$db->execute($query);
$module->registerhook('actionObjectCartRuleAddAfter');
$module->registerhook('actionObjectCartRuleDeleteAfter');
$module->registerhook('actionObjectCartRuleUpdateAfter');
return true;
}

View File

@@ -0,0 +1,51 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_3_0_12()
{
$db = Db::getInstance();
$query = 'SELECT version FROM `' . _DB_PREFIX_ . 'module` WHERE name = \'ps_eventbus\'';
$result = $db->executeS($query);
// If previous installed version number is between 3.0.8 and 3.0.11, truncate _eventbus_incremental_sync and _eventbus_type_sync tables
if (in_array($result[0]['version'], ['3.0.8', '3.0.9', '3.0.10', '3.0.11'])) {
$truncateIncrementalSyncTable = 'TRUNCATE TABLE `' . _DB_PREFIX_ . 'eventbus_incremental_sync`;';
$truncateTypeSyncTable = 'TRUNCATE TABLE `' . _DB_PREFIX_ . 'eventbus_type_sync`;';
$db->execute($truncateIncrementalSyncTable);
$db->execute($truncateTypeSyncTable);
}
return true;
}

View File

@@ -0,0 +1,44 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
use PrestaShop\Module\PsEventbus\Config\Config;
/**
* @return bool
*/
function upgrade_module_3_0_13()
{
$db = Db::getInstance();
$db->update('eventbus_deleted_objects', ['type' => Config::COLLECTION_CUSTOM_PRODUCT_CARRIERS], '`type` = "custom_product_carrier"');
$db->update('eventbus_deleted_objects', ['type' => Config::COLLECTION_SPECIFIC_PRICES], '`type` = "specific_price"');
$db->update('eventbus_deleted_objects', ['type' => Config::COLLECTION_CARRIERS], '`type` = "carrier"');
return true;
}

View File

@@ -0,0 +1,40 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_3_0_5($module)
{
$module->registerhook('actionObjectEmployeeAddAfter');
$module->registerhook('actionObjectEmployeeDeleteAfter');
$module->registerhook('actionObjectEmployeeUpdateAfter');
return true;
}

View File

@@ -0,0 +1,51 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_3_2_1()
{
$db = Db::getInstance();
// Delete all entries with type "cart_rules" from eventbus_incremental_sync
$db->delete('eventbus_incremental_sync', '`type` = "cart_rules"');
// reset full sync for cart_rules
$db->update(
'eventbus_type_sync',
[
'offset' => 0,
'full_sync_finished' => 0,
],
'`type` = "cart_rules"'
);
return true;
}

View File

@@ -0,0 +1,211 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* @return bool
*/
function upgrade_module_4_0_0()
{
$db = Db::getInstance();
// Retirer les doublons de la table type sync
if (!removeDuplicateEntryFromTypeSyncTable($db)) {
throw new PrestaShopException('Failed to remove duplicate entry from eventbus_type_sync.');
}
// Ajouter la clé primaire
if (!addPrimaryKeyToTypeSyncTable($db)) {
throw new PrestaShopException('Failed to add primary key to eventbus_type_sync.');
}
// Ajouter la colonne action
if (!addActionToIncrementalSyncTable($db)) {
throw new PrestaShopException("Failed to add 'action' column to eventbus_incremental_sync.");
}
// Migrer les données
if (!migrateDeleteTableToIncremantalTable($db)) {
throw new PrestaShopException('Failed to migrate data to eventbus_incremental_sync.');
}
// relancer une full sync pour products (erreurs de synchro par le passé)
if (!resetProductFullSync($db)) {
throw new PrestaShopException('Failed to migrate data to eventbus_incremental_sync.');
}
return true;
}
function removeDuplicateEntryFromTypeSyncTable($db)
{
if (tableTypeSyncAlreadyMigrated($db)) {
return true;
}
// Check if old table exist (after error at install ?)
$checkOldTableQuery = "SHOW TABLES LIKE '" . _DB_PREFIX_ . "eventbus_type_sync_old';";
$oldTableExists = $db->executeS($checkOldTableQuery);
if ($oldTableExists) {
// If temp table exist (after error at install ?), rename to "eventbus_type_sync"
$renameOldTableQuery = 'RENAME TABLE `' . _DB_PREFIX_ . 'eventbus_type_sync_old` TO `' . _DB_PREFIX_ . 'eventbus_type_sync`;';
$db->query($renameOldTableQuery);
}
// Rename original table to old (for temporary edit)
$renameTableQuery = 'RENAME TABLE `' . _DB_PREFIX_ . 'eventbus_type_sync` TO `' . _DB_PREFIX_ . 'eventbus_type_sync_old`;';
$db->query($renameTableQuery);
// Create new table, clone of original table (old here)
$createNewTableQuery = 'CREATE TABLE `' . _DB_PREFIX_ . 'eventbus_type_sync` LIKE `' . _DB_PREFIX_ . 'eventbus_type_sync_old`;';
$db->query($createNewTableQuery);
// Migrate data from old table to new table, and remove duplicate entries
$migrateToNewTableQuery = '
INSERT INTO `' . _DB_PREFIX_ . 'eventbus_type_sync` (`type`, `offset`, `id_shop`, `lang_iso`, `full_sync_finished`, `last_sync_date`)
SELECT
`type`,
CASE
WHEN COUNT(*) > 1 THEN 0 -- Si plusieurs entrées similaires, offset = 0
ELSE MAX(`offset`) -- Sinon, on garde la valeur existante
END AS `offset`,
`id_shop`,
`lang_iso`,
CASE
WHEN COUNT(*) > 1 THEN 0 -- Si plusieurs entrées similaires, full_sync_finished = 0
ELSE MAX(`full_sync_finished`) -- Sinon, on garde la valeur existante
END AS `full_sync_finished`,
CASE
WHEN COUNT(*) > 1 THEN MAX(`last_sync_date`) -- Si plusieurs entrées similaires, garder la dernière date
ELSE MAX(`last_sync_date`) -- Sinon, on garde la date existante
END AS `last_sync_date`
FROM `' . _DB_PREFIX_ . 'eventbus_type_sync_old`
GROUP BY `type`, `id_shop`, `lang_iso`;
';
$db->query($migrateToNewTableQuery);
// remove old table
$dropOldTableQuery = 'DROP TABLE `' . _DB_PREFIX_ . 'eventbus_type_sync_old`;';
$db->query($dropOldTableQuery);
return true; // Succès
}
function addPrimaryKeyToTypeSyncTable($db)
{
if (tableTypeSyncAlreadyMigrated($db)) {
return true;
}
// Add primary key
$editTypeSyncTable = 'ALTER TABLE `' . _DB_PREFIX_ . 'eventbus_type_sync` ADD PRIMARY KEY (type, id_shop, lang_iso);';
return (bool) $db->query($editTypeSyncTable);
}
function addActionToIncrementalSyncTable($db)
{
// Check if the 'action' column exists in the table, if column not exist, this migration script aren't executed before
$checkColumnQuery = 'SHOW COLUMNS FROM `' . _DB_PREFIX_ . "eventbus_incremental_sync` LIKE 'action';";
$columns = $db->executeS($checkColumnQuery);
// Add 'action' column if it does'nt exist
if (empty($columns)) {
$editIncrementalTable = '
ALTER TABLE `' . _DB_PREFIX_ . "eventbus_incremental_sync`
ADD action varchar(50) NOT NULL DEFAULT 'upsert',
MODIFY COLUMN id_object VARCHAR(50);
";
return (bool) $db->query($editIncrementalTable);
}
return true; // Column already exists, no need to alter
}
function migrateDeleteTableToIncremantalTable($db)
{
// check if 'ps_eventbus_deleted_objects' exist
$checkDeletedTableExistsQuery = "SHOW TABLES LIKE '" . _DB_PREFIX_ . "eventbus_deleted_objects'";
$tableExists = $db->executeS($checkDeletedTableExistsQuery);
if (!$tableExists) {
return true;
}
// Get default lang_iso
$defaultLangId = Configuration::get('PS_LANG_DEFAULT');
$defaultLangIso = Language::getIsoById($defaultLangId);
// Prepare the query with dynamic lang_iso
$migrationRequest = sprintf(
'INSERT INTO `' . _DB_PREFIX_ . "eventbus_incremental_sync` (type, id_object, id_shop, lang_iso, created_at, action)
SELECT
type,
id_object,
id_shop,
'%s', -- This is a dynamic value
created_at,
'deleted'
FROM `" . _DB_PREFIX_ . 'eventbus_deleted_objects`
ON DUPLICATE KEY UPDATE
type = VALUES(type),
id_object = VALUES(id_object),
id_shop = VALUES(id_shop),
lang_iso = VALUES(lang_iso),
created_at = VALUES(created_at),
action = VALUES(action);',
$defaultLangIso // This is where the dynamic value is injected
);
$migrationSucceded = (bool) $db->query($migrationRequest);
if ($migrationSucceded) {
// Drop eventbus_deleted_objects table
$dropDeletedTable = 'DROP TABLE IF EXISTS `' . _DB_PREFIX_ . 'eventbus_deleted_objects`';
return $db->query($dropDeletedTable);
}
}
function tableTypeSyncAlreadyMigrated($db)
{
// Check if the primary key exists by inspecting the indexes
$checkPrimaryKeyQuery = 'SHOW INDEXES FROM `' . _DB_PREFIX_ . "eventbus_type_sync` WHERE Key_name = 'PRIMARY';";
// Exécuter la requête pour obtenir les index et vérifier s'il y a un index primaire
return $db->executeS($checkPrimaryKeyQuery);
}
function resetProductFullSync($db)
{
$resetProductFullSyncQuery = 'DELETE FROM `' . _DB_PREFIX_ . "eventbus_type_sync` WHERE type = 'products'";
return $db->query($resetProductFullSyncQuery);
}

View File

@@ -0,0 +1,133 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function deleteFolderRecursively($folderPath)
{
if (!is_dir($folderPath)) {
return false;
}
// select all file, but don't select '.' and '..'
$files = array_diff(scandir($folderPath), ['.', '..']);
foreach ($files as $file) {
$filePath = $folderPath . DIRECTORY_SEPARATOR . $file;
if (is_dir($filePath)) {
deleteFolderRecursively($filePath);
} else {
\unlink($filePath);
}
}
return rmdir($folderPath);
}
/**
* @return bool
*/
function upgrade_module_4_0_5()
{
try {
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiCarriers.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiCartRules.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiCarts.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiCategories.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiCurrencies.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiCustomProductCarriers.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiCustomers.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiDeletedObjects.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiEmployees.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiGoogleTaxonomies.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiImageTypes.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiImages.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiInfo.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiLanguages.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiManufacturers.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiModules.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiOrders.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiProducts.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiSpecificPrices.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiStocks.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiStores.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiSuppliers.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiThemes.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiTranslations.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/controllers/front/apiWishlists.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/sql/migrate.sql');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Api/CollectorApiClient.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Api/LiveSyncApiClient.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Api/SyncApiClient.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Exception/HmacException.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Exception/PsAccountsRsaSignDataEmptyException.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Exception/UnauthorizedException.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Exception/WebhookException.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Formatter/JsonFormatter.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Handler/ErrorHandler/ErrorHandlerInterface.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/ConfigurationRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/CountryRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/CustomPriceRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/DeletedObjectsRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/EventbusSyncRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/GoogleTaxonomyRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/OrderDetailsRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/OrderHistoryRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/ProductCarrierRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/ServerInformationRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/ShopRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/StateRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/StockMvtRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/TaxRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Repository/ThemeRepository.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Service/CacheService.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Service/CompressionService.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Service/DeletedObjectsService.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Service/ProxyService.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Service/ProxyServiceInterface.php');
\unlink(_PS_MODULE_DIR_ . 'ps_eventbus/src/Service/SpecificPriceService.php');
deleteFolderRecursively(_PS_MODULE_DIR_ . 'ps_eventbus/config/common');
deleteFolderRecursively(_PS_MODULE_DIR_ . 'ps_eventbus/src/Api/Post');
deleteFolderRecursively(_PS_MODULE_DIR_ . 'ps_eventbus/src/Builder');
deleteFolderRecursively(_PS_MODULE_DIR_ . 'ps_eventbus/src/Controller');
deleteFolderRecursively(_PS_MODULE_DIR_ . 'ps_eventbus/src/DTO');
deleteFolderRecursively(_PS_MODULE_DIR_ . 'ps_eventbus/src/Decorator');
deleteFolderRecursively(_PS_MODULE_DIR_ . 'ps_eventbus/src/DependencyInjection');
deleteFolderRecursively(_PS_MODULE_DIR_ . 'ps_eventbus/src/Provider');
} finally {
return true;
}
}

View File

@@ -0,0 +1,35 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
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;