Skip to content

Commit

Permalink
Merge pull request #55 from kpodemski/fix-upgraded-versions
Browse files Browse the repository at this point in the history
add missing hooks when upgrading from old versions
  • Loading branch information
nicosomb authored Mar 9, 2023
2 parents 5b870ec + 1a043a3 commit a478f8c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
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_contactinfo</name>
<displayName><![CDATA[Contact information]]></displayName>
<version><![CDATA[3.3.1]]></version>
<version><![CDATA[3.3.2]]></version>
<description><![CDATA[Allows you to display additional information about your store&#039;s customer service.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[front_office_features]]></tab>
Expand Down
2 changes: 1 addition & 1 deletion ps_contactinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct()
{
$this->name = 'ps_contactinfo';
$this->author = 'PrestaShop';
$this->version = '3.3.1';
$this->version = '3.3.2';

$this->bootstrap = true;
parent::__construct();
Expand Down
33 changes: 33 additions & 0 deletions upgrade/upgrade-3.3.2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <[email protected]>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/
if (!defined('_PS_VERSION_')) {
exit;
}

function upgrade_module_3_3_2($object)
{
return $object->registerHook(['displayContactRightColumn', 'displayContactLeftColumn']);
}

0 comments on commit a478f8c

Please sign in to comment.