Skip to content

Commit

Permalink
Merge pull request #101 from PrestaShop/dev
Browse files Browse the repository at this point in the history
Release 2.8.0
  • Loading branch information
Hlavtox authored Jan 9, 2024
2 parents 6f0f08a + 3ce207b commit 5af0bf4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 45 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

Keep in touch with your customers the way you want, add a form to the homepage of your store and allow all the curious to subscribe to your newsletter.

## Compatibility

PrestaShop: `1.7.1.0` or later

## Multistore compatibility

This module is partially compatible with the multistore feature. Some of its options might not be available.
Expand All @@ -28,6 +32,6 @@ Just make sure to follow our [contribution guidelines][contribution-guidelines].
This module is released under the [Academic Free License 3.0][AFL-3.0]

[report-issue]: https://github.com/PrestaShop/PrestaShop/issues/new/choose
[prestashop]: https://www.prestashop.com/
[prestashop]: https://www.prestashop-project.org/
[contribution-guidelines]: https://devdocs.prestashop.com/1.7/contribute/contribution-guidelines/project-modules/
[AFL-3.0]: https://opensource.org/licenses/AFL-3.0
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>ps_emailsubscription</name>
<displayName><![CDATA[E-mail subscription form]]></displayName>
<version><![CDATA[2.7.1]]></version>
<version><![CDATA[2.8.0]]></version>
<description><![CDATA[Adds a block for newsletter subscription.]]></description>
<author><![CDATA[PrestaShop]]></author>
<confirmUninstall><![CDATA[Are you sure that you want to delete all of your contacts?]]></confirmUninstall>
Expand Down
5 changes: 4 additions & 1 deletion ps_emailsubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function __construct()
$this->confirmUninstall = $this->trans('Are you sure that you want to delete all of your contacts?', [], 'Modules.Emailsubscription.Admin');
$this->ps_versions_compliancy = ['min' => '1.7.1.0', 'max' => _PS_VERSION_];

$this->version = '2.7.1';
$this->version = '2.8.0';
$this->author = 'PrestaShop';
$this->error = false;
$this->valid = false;
Expand Down Expand Up @@ -153,6 +153,9 @@ public function install()
$conditions[(int) $lang['id_lang']] = $this->getConditionFixtures($lang);
}
Configuration::updateValue('NW_CONDITIONS', $conditions, true);
Configuration::updateValue('NW_VERIFICATION_EMAIL', false);
Configuration::updateValue('NW_CONFIRMATION_EMAIL', false);
Configuration::updateValue('NW_VOUCHER_CODE', '');

return Db::getInstance()->execute('
CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'emailsubscription` (
Expand Down
1 change: 0 additions & 1 deletion tests/phpstan/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ parameters:
paths:
# From PHPStan 0.12, paths to check are relative to the neon file
- ../../ps_emailsubscription.php
- ../../verification.php
- ../../controllers/
- ../../mails/
- ../../translations/
Expand Down
41 changes: 0 additions & 41 deletions verification.php

This file was deleted.

0 comments on commit 5af0bf4

Please sign in to comment.