Initial commit: is_shoppingcart out of the box v3.0.1
v
This commit is contained in:
12
is_themecore/upgrade/upgrade-2-2-0.php
Normal file
12
is_themecore/upgrade/upgrade-2-2-0.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_2_2_0($module)
|
||||
{
|
||||
return $module->registerHook('actionDispatcherBefore');
|
||||
|
||||
return $module->registerHook('actionOutputHTMLBefore');
|
||||
}
|
||||
10
is_themecore/upgrade/upgrade-2-2-1.php
Normal file
10
is_themecore/upgrade/upgrade-2-2-1.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_2_2_1($module)
|
||||
{
|
||||
return $module->registerHook('actionDispatcherBefore');
|
||||
}
|
||||
15
is_themecore/upgrade/upgrade-2-3-0.php
Normal file
15
is_themecore/upgrade/upgrade-2-3-0.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_2_3_0($module)
|
||||
{
|
||||
$res = $module->registerHook('actionHtaccessCreate');
|
||||
$res &= $module->registerHook('objectShopUrlAddAfter');
|
||||
$res &= $module->registerHook('objectShopUrlUpdateAfter');
|
||||
$res &= $module->registerHook('objectShopUrlDeleteAfter');
|
||||
|
||||
return $res;
|
||||
}
|
||||
20
is_themecore/upgrade/upgrade-2-4-0.php
Normal file
20
is_themecore/upgrade/upgrade-2-4-0.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if (file_exists(dirname(__FILE__) . '../vendor/autoload.php')) {
|
||||
require_once dirname(__FILE__) . '../vendor/autoload.php';
|
||||
}
|
||||
|
||||
use Oksydan\Module\IsThemeCore\Form\Settings\WebpConfiguration;
|
||||
|
||||
function upgrade_module_2_4_0($module)
|
||||
{
|
||||
Configuration::updateValue(WebpConfiguration::THEMECORE_WEBP_ENABLED, false);
|
||||
Configuration::updateValue(WebpConfiguration::THEMECORE_WEBP_QUALITY, 90);
|
||||
Configuration::updateValue(WebpConfiguration::THEMECORE_WEBP_SHARPYUV, true);
|
||||
|
||||
return true;
|
||||
}
|
||||
20
is_themecore/upgrade/upgrade-4.1.0.php
Normal file
20
is_themecore/upgrade/upgrade-4.1.0.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if (file_exists(dirname(__FILE__) . '../vendor/autoload.php')) {
|
||||
require_once dirname(__FILE__) . '../vendor/autoload.php';
|
||||
}
|
||||
|
||||
use Oksydan\Module\IsThemeCore\Form\Settings\GeneralConfiguration;
|
||||
|
||||
function upgrade_module_4_1_0($module)
|
||||
{
|
||||
$success = $module->installPartytown();
|
||||
$success &= Configuration::updateValue(GeneralConfiguration::THEMECORE_LOAD_PARTY_TOWN, false);
|
||||
$success &= Configuration::updateValue(GeneralConfiguration::THEMECORE_DEBUG_PARTY_TOWN, false);
|
||||
|
||||
return $success;
|
||||
}
|
||||
14
is_themecore/upgrade/upgrade-4.1.2.php
Normal file
14
is_themecore/upgrade/upgrade-4.1.2.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if (file_exists(dirname(__FILE__) . '../vendor/autoload.php')) {
|
||||
require_once dirname(__FILE__) . '../vendor/autoload.php';
|
||||
}
|
||||
|
||||
function upgrade_module_4_1_2($module)
|
||||
{
|
||||
return $module->registerHook('actionFrontControllerInitBefore');
|
||||
}
|
||||
20
is_themecore/upgrade/upgrade-4.1.3.php
Normal file
20
is_themecore/upgrade/upgrade-4.1.3.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if (file_exists(dirname(__FILE__) . '../vendor/autoload.php')) {
|
||||
require_once dirname(__FILE__) . '../vendor/autoload.php';
|
||||
}
|
||||
|
||||
use Oksydan\Module\IsThemeCore\Form\Settings\GeneralConfiguration;
|
||||
|
||||
function upgrade_module_4_1_3($module)
|
||||
{
|
||||
$success = $module->registerHook('actionFrontControllerInitBefore');
|
||||
$success &= Configuration::updateValue(GeneralConfiguration::THEMECORE_LOAD_PARTY_TOWN, false);
|
||||
$success &= Configuration::updateValue(GeneralConfiguration::THEMECORE_DEBUG_PARTY_TOWN, false);
|
||||
|
||||
return $success;
|
||||
}
|
||||
Reference in New Issue
Block a user