From 6e61858bfaf03bcc19b5a34cf9d4d4e36c70fa52 Mon Sep 17 00:00:00 2001 From: Oleksandr Mykhailenko Date: Thu, 23 Feb 2023 18:24:46 +0200 Subject: [PATCH] Supporting Prestashop 8.0.x --- README.md | 6 +++++- config.xml | 4 ++-- mailjet.php | 2 +- upgrade/Upgrade-3.6.0.php | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 upgrade/Upgrade-3.6.0.php diff --git a/README.md b/README.md index f9a5a6b..8a4d9b2 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Boost your ROI and increase your merchant revenue with the Mailjet v3 all-in-one ## Plug-in Key Info * Plug-in languages: English, French, German, Spanish -* PrestaShop Compatibility: PrestaShop v1.5.0 - v1.7.5 +* PrestaShop Compatibility: PrestaShop v1.5.0 - v8.0.x * PHP Compatibility: requires PHP 5.5 or newer * Mailjet Compatibility: Mailjet account * Support: https://app.mailjet.com/support/ticket @@ -65,6 +65,10 @@ Happy emailing! ## Changelog += 3.6.0 = +* Support version 8.0.x +* Code cleanup + = 3.5.2 = * Correct config file for PS version 1.7.* * Code cleanup diff --git a/config.xml b/config.xml index 845c34f..6b0b53c 100644 --- a/config.xml +++ b/config.xml @@ -2,10 +2,10 @@ mailjet - + 1 1 - \ No newline at end of file + diff --git a/mailjet.php b/mailjet.php index 86b0988..9944a3e 100644 --- a/mailjet.php +++ b/mailjet.php @@ -126,7 +126,7 @@ public function __construct() $this->displayName = 'Mailjet'; $this->description = $this->l('Create contact lists and client segment groups, drag-n-drop newsletters, define client re-engagement triggers, follow and analyze all email user interaction, minimize negative user engagement events(blocked, unsubs and spam) and optimise deliverability and revenue generation. Get started today with 6000 free emails per month.'); $this->author = 'PrestaShop'; - $this->version = '3.5.2'; + $this->version = '3.6.0'; $this->module_key = 'c81a68225f14a65239de29ee6b78d87b'; $this->tab = 'advertising_marketing'; diff --git a/upgrade/Upgrade-3.6.0.php b/upgrade/Upgrade-3.6.0.php new file mode 100644 index 0000000..31d3500 --- /dev/null +++ b/upgrade/Upgrade-3.6.0.php @@ -0,0 +1,36 @@ + + * @copyright 2007-2019 PrestaShop SA + * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) + * International Registered Trademark & Property of PrestaShop SA + */ + +if (!defined('_PS_VERSION_')) { + exit; +} + +require_once(_PS_MODULE_DIR_ . 'mailjet/mailjet.php'); + +function upgrade_module_3_6_0($object) +{ + return true; +}