first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
/**
* 2012-2019 Patryk Marek PrestaDev.pl
*
* Patryk Marek PrestaDev.pl - PD CSV Price update on products © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at info@prestadev.pl.
*
* @author Patryk Marek PrestaDev.pl <info@prestadev.pl>
* @copyright 2012-2019 Patryk Marek - PrestaDev.pl
* @license License is for use in domain / or one multistore enviroment (do not modify or reuse this code or part of it) if you want any changes please contact with me at info@prestadev.pl
* @link http://prestadev.pl
* @package PD CSV Price update on products - PrestaShop 1.5.x and 1.6.x Module
* @version 1.0.3
* @date 20-02-2017
*/
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,49 @@
<?php
/**
* 2012-2019 Patryk Marek PrestaDev.pl
*
* Patryk Marek PrestaDev.pl - PD CSV Price update on products © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at info@prestadev.pl.
*
* @author Patryk Marek PrestaDev.pl <info@prestadev.pl>
* @copyright 2012-2019 Patryk Marek - PrestaDev.pl
* @license License is for use in domain / or one multistore enviroment (do not modify or reuse this code or part of it) if you want any changes please contact with me at info@prestadev.pl
* @link http://prestadev.pl
* @package PD CSV Price update on products - PrestaShop 1.5.x and 1.6.x Module and 1.7.x Module
* @version 1.0.3
* @date 20-02-2017
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_0_3($module)
{
Configuration::updateValue('PD_CSVQU_SAME_CSV', 1);
Configuration::deleteByName('PD_CSVQU_LAST_UPDATE');
Configuration::deleteByName('PD_CSVQU_PROD_COUNT');
Configuration::deleteByName('PD_CSVQU_PROD_U_COUNT');
return Db::getInstance()->execute('
CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'pdcsvpriceupdate_history` (
`id_history_csv` int(10) unsigned NOT NULL AUTO_INCREMENT,
`file_name` varchar(255) NOT NULL,
`csv_header_ignore` tinyint(1) DEFAULT 0,
`same_csv_allow` tinyint(1) DEFAULT 0,
`csv_delimeter` varchar(16) NOT NULL,
`products_csv` int(10) unsigned NOT NULL,
`products_updated` int(10) unsigned NOT NULL,
`products_not_found` int(10) unsigned NOT NULL,
`update_type` int(10) unsigned NOT NULL,
`products_identifier` int(10) unsigned NOT NULL,
`date_add` date,
PRIMARY KEY (`id_history_csv`)
) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=UTF8;
');
}

View File

@@ -0,0 +1,30 @@
<?php
/**
* 2012-2019 Patryk Marek PrestaDev.pl
*
* Patryk Marek PrestaDev.pl - PD CSV Price update on products © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at info@prestadev.pl.
*
* @author Patryk Marek PrestaDev.pl <info@prestadev.pl>
* @copyright 2012-2019 Patryk Marek - PrestaDev.pl
* @license License is for use in domain / or one multistore enviroment (do not modify or reuse this code or part of it) if you want any changes please contact with me at info@prestadev.pl
* @link http://prestadev.pl
* @package PD CSV Price update on products - PrestaShop 1.5.x and 1.6.x Module and 1.7.x Module
* @version 1.0.3
* @date 20-02-2017
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_0_4($module)
{
Configuration::updateValue('PD_CSVPU_IDENTIFIER_EXPORT', 1);
Configuration::updateValue('PD_CSVPU_UPDATE_SHOP_EXPORT', 1);
Configuration::updateValue('PD_CSVPU_CSV_DELIM_EXPORT', ';');
}

View File

@@ -0,0 +1,30 @@
<?php
/**
* 2012-2019 Patryk Marek PrestaDev.pl
*
* Patryk Marek PrestaDev.pl - PD CSV Price update on products © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at info@prestadev.pl.
*
* @author Patryk Marek PrestaDev.pl <info@prestadev.pl>
* @copyright 2012-2019 Patryk Marek - PrestaDev.pl
* @license License is for use in domain / or one multistore enviroment (do not modify or reuse this code or part of it) if you want any changes please contact with me at info@prestadev.pl
* @link http://prestadev.pl
* @package PD CSV Price update on products - PrestaShop 1.5.x and 1.6.x Module and 1.7.x Module
* @version 1.0.3
* @date 20-02-2017
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_0_6($module)
{
Configuration::updateValue('PD_CSVPU_PRICES_WITH_TAX', 0);
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'pdcsvpriceupdate_history` ADD `prices_with_tax` tinyint(1) unsigned NOT NULL DEFAULT "0"');
return true;
}

View File

@@ -0,0 +1,29 @@
<?php
/**
* 2012-2019 Patryk Marek PrestaDev.pl
*
* Patryk Marek PrestaDev.pl - PD CSV Price update on products © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at info@prestadev.pl.
*
* @author Patryk Marek PrestaDev.pl <info@prestadev.pl>
* @copyright 2012-2019 Patryk Marek - PrestaDev.pl
* @license License is for use in domain / or one multistore enviroment (do not modify or reuse this code or part of it) if you want any changes please contact with me at info@prestadev.pl
* @link http://prestadev.pl
* @package PD CSV Price update on products - PrestaShop 1.5.x and 1.6.x Module and 1.7.x Module
* @version 1.0.3
* @date 20-02-2017
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_0_9($module)
{
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('ALTER TABLE `'._DB_PREFIX_.'pdcsvpriceupdate_history` ADD `products_attributes_updated` int(10) unsigned NOT NULL');
return true;
}