-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Abandoned cart sends all fields available to api.
Added upgrade file for altering database. Changed wording in settings page.
- Loading branch information
1 parent
7a677de
commit 3a875bb
Showing
5 changed files
with
94 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* 2018 Smaily | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* Smaily for PrestaShop is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* any later version. | ||
* | ||
* Smaily for PrestaShop is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Smaily for PrestaShop. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @author Smaily <[email protected]> | ||
* @copyright 2018 Smaily | ||
* @license GPL3 | ||
*/ | ||
|
||
if (!defined('_PS_VERSION_')) { | ||
exit; | ||
} | ||
|
||
/** | ||
* Upgrades database with smaily abandoned cart table. | ||
* | ||
*/ | ||
function upgrade_module_1_1_0() | ||
{ | ||
return Db::getInstance()->execute( | ||
'CREATE TABLE IF NOT EXISTS '._DB_PREFIX_.'smaily_cart ( | ||
`id_smaily_cart` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , | ||
`id_customer` INT UNSIGNED NULL , | ||
`id_cart` INT UNSIGNED NULL , | ||
`date_sent` DATETIME NOT NULL) ENGINE='._MYSQL_ENGINE_ | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* 2018 Smaily | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* Smaily for PrestaShop is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* any later version. | ||
* | ||
* Smaily for PrestaShop is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Smaily for PrestaShop. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* @author Smaily <[email protected]> | ||
* @copyright 2018 Smaily | ||
* @license GPL3 | ||
*/ | ||
|
||
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters