-
Notifications
You must be signed in to change notification settings - Fork 1
/
tagconciergefree.php
54 lines (42 loc) · 1.61 KB
/
tagconciergefree.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
use PrestaShop\Module\TagConciergeFree\Hook;
use PrestaShop\Module\TagConciergeFree\Install\ModuleTrait;
use PrestaShop\Module\TagConciergeFree\Install\TagConciergeModuleInterface;
if (!defined('_PS_VERSION_')) {
exit;
}
if ('vendor' !== basename(realpath(dirname(__FILE__).'/../../'))) {
require_once _PS_MODULE_DIR_ . 'tagconciergefree/vendor/autoload.php';
}
class TagConciergeFree extends Module implements TagConciergeModuleInterface
{
use ModuleTrait;
/** @var array */
const HOOKS = [
Hook\FrontendAssetsHook::class,
Hook\DebugHook::class,
// ecommerce browser
Hook\Event\Browser\AddToCartHook::class,
Hook\Event\Browser\PurchaseHook::class,
];
/** @var string */
const MODULE_FILE = _PS_MODULE_DIR_ . 'tagconciergefree/tagconciergefree.php';
private $pro = false;
private $presetsUrl = 'https://api.tagconcierge.com/v2/presets';
/**
* TagConcierge constructor.
*/
public function __construct()
{
$this->name = 'tagconciergefree';
$this->author = 'Tag Concierge';
$this->version = '1.0.5';
$this->ps_versions_compliancy = ['min' => '1.7.1.0', 'max' => _PS_VERSION_];
$this->bootstrap = true;
$this->tab = 'advertising_marketing';
parent::__construct();
$this->displayName = $this->trans('Tag Concierge Free', [], 'Modules.TagConciergeFree.Admin');
$this->description = $this->trans('Leverage the Flexibility of Google Tag Manager to Measure and Optimize Sales Results (GA4 ready).', [], 'Modules.TagConciergeFree.Admin');
$this->init();
}
}