initial module
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2026 De Websmid BV
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This file is not open source! Each license that you purchased is only available for 1 website only.
|
||||
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
|
||||
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
|
||||
*
|
||||
* 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 contact us for extra customization service at an affordable price
|
||||
*
|
||||
* @author Isabelle Oving-Anno | De Websmid <isabelle@dewebsmid.nl>
|
||||
* @copyright 2007-2026 De Websmid BV
|
||||
* @license Valid for 1 website (or project) for each purchase of license
|
||||
* International Registered Trademark & Property of De Websmid BV
|
||||
*/
|
||||
|
||||
use Websmid\TrustpilotAfsBcc\Module\Install;
|
||||
use Websmid\TrustpilotAfsBcc\Module\AdminHooks;
|
||||
use Websmid\TrustpilotAfsBcc\Module\DisplayHooks;
|
||||
use PrestaShop\PrestaShop\Core\Module\WidgetInterface;
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
}
|
||||
|
||||
class Ws_TrustpilotAfsBcc extends Module implements WidgetInterface
|
||||
{
|
||||
use Install;
|
||||
use AdminHooks;
|
||||
use DisplayHooks;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->name = 'ws_trustpilotafsbcc';
|
||||
$this->version = '1.1.0';
|
||||
$this->author = 'Isabelle Oving-Anno | De Websmid BV';
|
||||
$this->need_instance = 0;
|
||||
$this->bootstrap = true;
|
||||
|
||||
parent::__construct();
|
||||
|
||||
$this->displayName = $this->trans('Trustpilot AFS + TrustBox', [], 'Modules.Wstrustpilotafsbcc.Admin');
|
||||
$this->description = $this->trans('Sends Trustpilot review invitations in the customer\'s language by BCCing the order confirmation to Trustpilot\'s Automatic Feedback Service, and shows a TrustBox widget in the shop header.', [], 'Modules.Wstrustpilotafsbcc.Admin');
|
||||
$this->ps_versions_compliancy = ['min' => '9.0.0', 'max' => _PS_VERSION_];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user