/******************************************************
* @package Digital Marketing Tools for OC1.5x, OC2x,3x
* @version 13.4
* @author Muhammad Akram
* @link https://aits.xyz
* @copyright Copyright (C)2025 aits.xyz All rights reserved.
* @email:info@aits.pk.
* $date: 22-OCT-2025
* SYSTEM/LIBRARY
*******************************************************/
class Dmt extends Controller
{
public $settings;
private $dmt_data;
private $error = array();
private $mode;
public $PREFIX;
public function __construct($bcc8c)
{
goto Ba19d;
B45f2:
C8904:
goto F9937;
Bccee:
goto B72c6;
goto Ec440;
b4f9c:
$b08a0 = "OC " . VERSION . " -3.4";
goto F72ba;
E004e:
$C1a11 = isset($c11ce["alt_currency_status"]) ? $c11ce["alt_currency_status"] : false;
goto e2ed7;
e8e8d:
$c11ce["store_country"] = $E7af1;
goto a0786;
e9c59:
$c11ce["consent_bypass"] = CONSENT_BYPASS;
goto B8fa5;
cde64:
$c11ce["user_agent"] = $this->getHttpUserAgent();
goto c98a2;
fa9a7:
if (defined("CONSENT_BYPASS_COUNTRY")) {
goto E059f;
}
goto c5f40;
d6edc:
bed57:
goto D18b5;
Ea082:
$c11ce["custom_pixel_event"] = false;
goto D2340;
aa9c7:
$e86c0 = $this->config->get("config_country_id");
goto ff297;
d5139:
$c11ce["bot"] = $this->botDetect();
goto e2388;
ec4b4:
a205c:
goto efd86;
E85ae:
$this->PREFIX = $Ec2c3;
goto C5d8c;
a3235:
$c11ce["referrer"] = isset($this->request->server["HTTP_REFERER"]) ? $this->request->server["HTTP_REFERER"] : '';
goto Ea5a7;
efd86:
c1a79:
goto Da7b5;
Ecd75:
goto b2c55;
goto bc3a8;
cffce:
$c11ce["total_minus"] = explode(",", TOTAL_MINUS);
goto b33fe;
de5e3:
F44d9:
goto a4ca9;
A04b7:
$c11ce["max_module_items"] = $D45ae;
goto Dcaa1;
D60e5:
abc4c:
goto a4a42;
c29df:
if (!($c11ce["consent_bypass"] && $c11ce["consent_bypass_country"] && isset($_SERVER["HTTP_CF_IPCOUNTRY"]))) {
goto c1a79;
}
goto a941e;
c5f40:
$c11ce["consent_bypass_country"] = false;
goto cb0e4;
bd516:
$Ac33a = 1;
goto eb84f;
F9937:
$dd8a8 = isset($_COOKIE["language"]) ? $_COOKIE["language"] : '';
goto eab58;
Ac5d2:
$c11ce = $this->config->get($this->PREFIX . "tagmanager_data");
goto Cbe76;
Ebc29:
$c11ce["locale"] = $dd8a8;
goto Bbe33;
dbd57:
Be4ce:
goto B45f2;
bc3a8:
d8be1:
goto e9c59;
a0786:
$c11ce["cdn"] = "cdn.aits.xyz";
goto ebfcd;
A1cac:
$c11ce["eu_cookie"] = false;
goto af349;
a86cf:
Beed8:
goto c29df;
D6127:
$c11ce["consent_bypass_country"] = CONSENT_BYPASS_COUNTRY;
goto a86cf;
ff297:
$E7af1 = $this->getCountry($e86c0);
goto fc791;
Ba19d:
parent::__construct($bcc8c);
goto Dddc7;
E4a3d:
adbf8:
goto E419d;
be037:
$c11ce["ver"] = $b08a0;
goto a5fb1;
Dddc7:
if (substr(VERSION, 0, 1) == "3" || substr(VERSION, 0, 1) == "4") {
goto bed57;
}
goto b87cb;
Ec440:
B72d1:
goto d06b4;
Ea1e2:
fac7b:
goto D786b;
cc687:
$c11ce["custom_cost_event_name"] = CUSTOM_COST_EVENT_NAME;
goto Ea1e2;
A676a:
include_once DIR_SYSTEM . "library/dmt/lib_customconfig.php";
goto D4cde;
C510a:
$c11ce["aw_tagid"] = "AW-" . $c11ce["conversion_id"];
goto D60e5;
a21c9:
d39f7:
goto C9a37;
A634b:
B72c6:
goto f1916;
aeac3:
$this->dmt_cache = isset($c11ce["cache"]) && $c11ce["cache"] === "1";
goto ae8f2;
Dc28c:
$this->mode = isset($c11ce["mode"]) ? $c11ce["mode"] : true;
goto C83c5;
F9360:
if (!(isset($c11ce["tax_override_value"]) && !empty($c11ce["tax_override_value"]))) {
goto Be4ce;
}
goto F8525;
B5a3a:
f7ea4:
goto aeac3;
aaa7e:
$Ddb25 = 1 + (int) $c11ce["tax_override_value"] / 100;
goto dbd57;
Cbe76:
$c11ce["status"] = $this->config->get($Ec2c3 . "tagmanager_status");
goto F6a98;
ea4c0:
if (!in_array($c11ce["detected_country"], $C765a)) {
goto a205c;
}
goto A1cac;
ce91d:
if (defined("CUSTOM_TIKTOK_EVENT")) {
goto B72d1;
}
goto fda48;
bd9a6:
$c11ce["custom_cost_event_name"] = '';
goto f259e;
f1916:
if (defined("CONSENT_BYPASS")) {
goto d8be1;
}
goto A4f9d;
ae8f2:
$this->dmt_debug = isset($c11ce["debug"]) && $c11ce["debug"] === "1";
goto f4044;
ebfcd:
$c11ce["url"] = $this->getRequestUri();
goto a3235;
F740f:
$c11ce["limit"] = $Ed88b;
goto A7438;
F3810:
$c11ce["path"] = isset($this->request->server["REQUEST_URI"]) ? $this->request->server["REQUEST_URI"] : '';
goto A1911;
b6c30:
goto Abab4;
goto d6edc;
a4a42:
$d4bfa = false;
goto f3fbc;
afeef:
$c11ce["alt_currency"] = $c11ce["currency"];
goto E4a3d;
D254f:
$c513c["status"] = 0;
goto B5a3a;
a4ca9:
$c11ce["custom_pixel_event"] = CUSTOM_PIXEL_EVENT;
goto e0aac;
f259e:
goto fac7b;
goto a21c9;
cd869:
$D45ae = 10;
goto Cec8a;
af349:
$c11ce["eu_cookie_enforce"] = false;
goto ec4b4;
A1911:
$c11ce["currency"] = isset($this->session->data["currency"]) ? $this->session->data["currency"] : $this->config->get("config_currency");
goto bbf37;
fc791:
$E7af1 = $E7af1["iso_code_2"];
goto cde64;
B9d44:
E059f:
goto D6127;
B00b4:
$c11ce["vs"] = $this->getVS();
goto be037;
Da20a:
if (!(isset($c11ce["tax_override"]) && $c11ce["tax_override"])) {
goto C8904;
}
goto F9360;
F72ba:
$Ed88b = 10;
goto cd869;
Cec8a:
$cc664 = 5000;
goto bd516;
F8525:
$d4bfa = true;
goto aaa7e;
E419d:
if (defined("CUSTOM_COST_EVENT")) {
goto d39f7;
}
goto f9eab;
c98a2:
$c11ce["ip_address"] = $this->getIpAddress();
goto d5139;
d06b4:
$c11ce["custom_tiktok_event"] = CUSTOM_TIKTOK_EVENT;
goto A634b;
B8fa5:
b2c55:
goto fa9a7;
D2340:
goto A1a9f;
goto de5e3;
eb84f:
$F4bc7 = false;
goto E1c14;
b87cb:
$Ec2c3 = '';
goto b6c30;
b33fe:
$c11ce["tax"] = $Ddb25;
goto A192b;
f4044:
$this->dmt_data = $c11ce;
goto Dc28c;
a5fb1:
$c11ce["language"] = $dd8a8;
goto Ebc29;
F6a98:
$c11ce["currency"] = isset($this->session->data["currency"]) ? $this->session->data["currency"] : $this->config->get("config_currency");
goto E004e;
cb0e4:
goto Beed8;
goto B9d44;
C5d8c:
if (!is_file(DIR_SYSTEM . "library/dmt/lib_customconfig.php")) {
goto De3fb;
}
goto A676a;
Df57d:
$c11ce["return_status"] = explode(",", RETURN_STATUS);
goto e8e8d;
Ea5a7:
if (!$c11ce["bot"]) {
goto f7ea4;
}
goto D254f;
e0aac:
A1a9f:
goto ce91d;
D4acf:
$C765a = explode(",", $c11ce["consent_bypass_country"]);
goto ea4c0;
bbf37:
$c11ce["total_plus"] = explode(",", TOTAL_PLUS);
goto cffce;
C9a37:
$c11ce["custom_cost_event"] = CUSTOM_COST_EVENT;
goto cc687;
e2388:
$c11ce["host_url"] = $this->getHost();
goto B00b4;
Da7b5:
if (!(empty($c11ce["aw_tagid"]) && !empty($c11ce["conversion_id"]))) {
goto abc4c;
}
goto C510a;
E1c14:
$Cf7a7 = 1;
goto E85ae;
D18b5:
$Ec2c3 = "analytics_";
goto B6bf0;
A7438:
$c11ce["max_list_items"] = $D45ae;
goto A04b7;
a941e:
$c11ce["detected_country"] = $_SERVER["HTTP_CF_IPCOUNTRY"];
goto D4acf;
f9eab:
$c11ce["custom_cost_event"] = false;
goto bd9a6;
A192b:
$c11ce["override_tax"] = $d4bfa;
goto F740f;
B6bf0:
Abab4:
goto b4f9c;
Bbe33:
$c11ce["host"] = isset($this->request->server["SERVER_NAME"]) ? $this->request->server["SERVER_NAME"] : '';
goto F3810;
f3fbc:
$Ddb25 = 1;
goto Da20a;
D786b:
if (defined("CUSTOM_PIXEL_EVENT")) {
goto F44d9;
}
goto Ea082;
fda48:
$c11ce["custom_tiktok_event"] = false;
goto Bccee;
e2ed7:
if (!(empty($c11ce["alt_currency"]) || $C1a11)) {
goto adbf8;
}
goto afeef;
D4cde:
De3fb:
goto Ac5d2;
A4f9d:
$c11ce["consent_bypass"] = false;
goto Ecd75;
eab58:
$E2e5e = $this->config->get("config_store_id");
goto aa9c7;
Dcaa1:
$c11ce["delay"] = $cc664;
goto Df57d;
C83c5:
$this->settings = $c11ce;
goto E59f1;
E59f1:
}
public function get()
{
return $this->settings;
}
public function config()
{
goto b3621;
F43e9:
$e8378 = $c135a["external_id"];
goto De29a;
b3621:
$c513c = [];
goto f8ca0;
beafc:
$bc793 = $this->getTtclid();
goto cd532;
da69c:
$e0279 = $this->getScCid();
goto bd93d;
d87f5:
if (!(!isset($c135a["user_id"]) || empty($c135a["user_id"]))) {
goto F7c05;
}
goto Fc066;
F4a34:
if (!$c11ce["adword"]) {
goto Ca1b8;
}
goto a6dc5;
d9bc9:
if (!$c11ce["snap_pixel_status"]) {
goto Fd438;
}
goto Ad93f;
Ad93f:
$f825c = $this->getSc_cookie1();
goto da69c;
D2ab7:
$E2248 = $this->getTrackingCookies();
goto d7bcc;
A50ac:
if (!(!isset($c11ce["status"]) || !$c11ce["status"])) {
goto D16b4;
}
goto Fe960;
Fc066:
$c135a["user_id"] = $e8378;
goto C776a;
De29a:
E7d36:
goto d87f5;
c8165:
$c513c = array_merge($c11ce, $D6af2);
goto C76ee;
f8129:
$ff2c6 = '';
goto d5181;
b9400:
Ef547:
goto ad2d5;
e4753:
$c11ce = $this->dmt_data;
goto A50ac;
D9dc7:
$Ad464 = $this->getFbc();
goto cac2f;
a5680:
$bc793 = '';
goto f8129;
cac2f:
$C491d = $this->getFbp();
goto a1c8c;
C76ee:
return $c513c;
goto Fc51a;
ad2d5:
$c135a = $this->getUser();
goto c4d70;
C00bd:
$e8378 = $this->readGTMCookie("OCSESSID");
goto E8673;
A3b98:
$e0279 = '';
goto f65c0;
f8ca0:
$Ad464 = '';
goto Adb16;
cd532:
$ff2c6 = $this->getTtp();
goto fd3d3;
Fe960:
return false;
goto eeff7;
Abd55:
if (!$c11ce["tiktok_status"]) {
goto Ba52c;
}
goto beafc;
d7bcc:
$D6af2 = ["external_id" => $e8378, "cid" => $E2248, "gclid" => $ffe3b, "gad_source" => isset($_GET["_gl"]) ? true : false, "fbc" => $Ad464, "fbp" => $C491d, "ttclid" => $bc793, "ttp" => $ff2c6, "sc_cookie1" => $f825c, "sccid" => $e0279];
goto c8165;
ee543:
$e8378 = $this->session->getId();
goto b9400;
C0dac:
Ca1b8:
goto Abd55;
a1c8c:
Bc7b6:
goto F4a34;
C776a:
F7c05:
goto a906f;
fd3d3:
Ba52c:
goto d9bc9;
c4d70:
if (!isset($c135a["external_id"])) {
goto E7d36;
}
goto F43e9;
eeff7:
D16b4:
goto a1017;
E8673:
if (!empty($e8378)) {
goto Ef547;
}
goto ee543;
a1017:
if (!$c11ce["pixel"]) {
goto Bc7b6;
}
goto D9dc7;
a6dc5:
$ffe3b = $this->getGclid();
goto C0dac;
d5181:
$f825c = '';
goto A3b98;
a906f:
$c11ce = array_merge($c11ce, $c135a);
goto D2ab7;
f65c0:
$ffe3b = '';
goto e4753;
Adb16:
$C491d = '';
goto a5680;
bd93d:
Fd438:
goto C00bd;
Fc51a:
}
public function isActive()
{
goto A268e;
eb449:
if (isset($Db528["status"]) && $Db528["status"]) {
goto E7fee;
}
goto e2325;
C2d6f:
E7fee:
goto c1423;
F5a04:
df98f:
goto F67c0;
e2325:
return false;
goto F9d69;
A268e:
$Db528 = $this->settings;
goto eb449;
c1423:
return true;
goto F5a04;
F9d69:
goto df98f;
goto C2d6f;
F67c0:
}
public function loadModel()
{
$this->load->model("extension/module/dmt");
}
public function getTagmanger()
{
return $this->config();
}
public function getVS()
{
$fe78e = $this->getNewURL();
return base64_encode($fe78e);
}
private function getTrackingCookies()
{
goto ba0cd;
ec211:
return $E2248;
goto F3352;
A4275:
$E2248 = preg_replace("/GA[0-9]+\.[0-9]+\./", '', $E2248);
goto ec211;
ba0cd:
$E2248 = isset($_COOKIE["_ga"]) ? $_COOKIE["_ga"] : '';
goto A4275;
F3352:
}
public function eventid()
{
goto e05aa;
E3b11:
$Db528[6] = chr(ord($Db528[6]) & 0xf | 0x40);
goto d91d9;
e05aa:
$Db528 = openssl_random_pseudo_bytes(16);
goto E3b11;
ee781:
return vsprintf("%s%s-%s-%s-%s-%s%s%s", str_split(bin2hex($Db528), 4));
goto F9cf3;
d91d9:
$Db528[8] = chr(ord($Db528[8]) & 0x3f | 0x80);
goto ee781;
F9cf3:
}
public function getUser()
{
goto febf7;
febf7:
$be3f4 = ["user_id" => '', "customer_id" => '', "external_id" => '', "email" => '', "telephone" => '', "em" => '', "ph" => '', "ph_e164" => '', "fn" => '', "ln" => '', "ad" => '', "ct" => '', "pc" => '', "st" => '', "cc" => ''];
goto a0aa6;
Dc386:
return $be3f4;
goto B22c1;
a0aa6:
if (!(isset($this->settings["customer_data"]) && $this->settings["customer_data"])) {
goto C0112;
}
goto Ed018;
Ed018:
$be3f4 = $this->getCustomerData($be3f4);
goto e102c;
e102c:
C0112:
goto Dc386;
B22c1:
}
public function getCustomerData($be3f4)
{
goto d5cfd;
D89d6:
$c0c35 = false;
goto D2f5b;
Ec27d:
ed402:
goto E8953;
e96a4:
e59a8:
goto Ee4fb;
c9237:
$this->saveCustomerData($be3f4);
goto Cab86;
f9378:
$c782a = '';
goto b4914;
Ec22a:
$c0c35 = true;
goto D1d64;
da65b:
goto e3118;
goto Ec27d;
Dc7c5:
$c5f4c = $E486e->row["name"];
goto D97ce;
ff167:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "customer WHERE customer_id = '" . (int) $D1131 . "'");
goto af5c8;
e2bf7:
$Eca20 = isset($this->session->data["guest"]["lastname"]) ? $this->session->data["guest"]["lastname"] : '';
goto Dfe2e;
F7f4d:
if (!(isset($D1131) && $D1131 > 0)) {
goto Fc877;
}
goto F9f40;
b4914:
$B05d4 = '';
goto A62cf;
ea720:
$C79ce = '';
goto fc435;
B9ec9:
b179e:
goto dcdaf;
Ff8fa:
$fc05f = isset($fc05f) ? $this->formatPostcode($fc05f) : '';
goto b013b;
adc91:
$c5f4c = '';
goto ea720;
E62e1:
$D41c7 = '';
goto e9c2c;
Bf645:
$D41c7 = '';
goto cb528;
a9f22:
$a3275 = '';
goto ab389;
B2cb2:
B3d0f:
goto Ec22a;
a4c01:
$c5f4c = isset($this->session->data["payment_address"]["zone"]) ? $this->session->data["payment_address"]["zone"] : '';
goto E198b;
Fc372:
$f85b3 = (int) $c63c0->row["address_id"];
goto acabb;
e9796:
$Dcd05 = isset($Dcd05) ? $Dcd05 : '';
goto Cbd21;
Dc329:
if (!$c49f0) {
goto b37a5;
}
goto d8b4b;
Aa62b:
e3118:
goto Ddd70;
Be659:
$ba42e = strtolower(trim(str_replace(" ", '', $c63c0->row["email"])));
goto cfb62;
Caef2:
goto e3118;
goto A52b7;
A5e9c:
if ($E486e->num_rows) {
goto ccafe;
}
goto adc91;
D8667:
Ba501:
goto c95c8;
B7a78:
$e71fa = $c63c0->row["newsletter"];
goto Fec38;
eb8f4:
$ba42e = strtolower(trim(str_replace(" ", '', $ba42e)));
goto Dcff6;
e9c2c:
goto Cf4da;
goto D8667;
dea4b:
$B05d4 = isset($B93dd->row["city"]) ? $B93dd->row["city"] : '';
goto Cb615;
ae477:
$Dcd05 = $c63c0->row["telephone"];
goto B7a78;
b347d:
if (!$B93dd->num_rows) {
goto d45ac;
}
goto E1e03;
b013b:
$be3f4 = ["user_id" => $D1131, "customer_id" => $D1131, "external_id" => $D1131, "email" => $ba42e, "telephone" => isset($b55e0["e164"]) ? $b55e0["e164"] : '', "em" => isset($ba42e) ? $this->getHash($ba42e) : '', "ph" => isset($b55e0["ph"]) ? $this->getHash($b55e0["ph"]) : '', "ph_e1" => isset($b55e0["e1"]) ? $this->getHash($b55e0["e4"]) : '', "fn" => isset($f9e0d) ? $this->getHash($f9e0d) : '', "ln" => isset($Eca20) ? $this->getHash($Eca20) : '', "ad" => isset($c782a) ? $this->getHash($c782a) : '', "ct" => isset($B05d4) ? $this->getHash($B05d4) : '', "pc" => isset($fc05f) ? $this->getHash($fc05f) : '', "st" => isset($c5f4c) ? $this->getHash($c5f4c) : '', "cc" => isset($D41c7) ? $this->getHash($D41c7) : ''];
goto Ded72;
D1d64:
Fc877:
goto da65b;
f76f9:
$F2ffe = $this->session->data["dmt_user"];
goto D45e1;
F5fd2:
ea9cc:
goto e9796;
c95c8:
$a3275 = $d4fbe->row["name"];
goto E4df6;
Dcff6:
$f9e0d = isset($this->session->data["guest"]["firstname"]) ? $this->session->data["guest"]["firstname"] : '';
goto e2bf7;
d8b4b:
return $c49f0;
goto A9762;
Ae67a:
$c0c35 = true;
goto Aa62b;
E198b:
$a3275 = isset($this->session->data["payment_address"]["country"]) ? $this->session->data["payment_address"]["country"] : '';
goto Bc0a4;
c3948:
ccafe:
goto Dc7c5;
b2f0c:
$ba42e = isset($this->session->data["guest"]["email"]) ? $this->session->data["guest"]["email"] : '';
goto eb8f4;
F7f3b:
$fc05f = isset($this->session->data["payment_address"]["postcode"]) ? $this->session->data["payment_address"]["postcode"] : '';
goto ff36a;
cfb62:
$f9e0d = $c63c0->row["firstname"];
goto ef6fe;
Ac323:
$this->cache->set("dmt.customer." . $D1131, $be3f4);
goto B2cb2;
Fec38:
$B05d4 = '';
goto Fdcba;
D9d92:
$Dcd05 = '';
goto f9378;
Ce0d1:
if ($this->customer->isLogged()) {
goto a4ed7;
}
goto Fd3f3;
E4df6:
$D41c7 = $d4fbe->row["iso_code_2"];
goto ee280;
dcdaf:
d45ac:
goto Ecf77;
b1c91:
$b55e0 = $this->formatPhone($Dcd05, $D41c7);
goto A1941;
D97ce:
$C79ce = $E486e->row["code"];
goto B9ec9;
e80fe:
return $be3f4;
goto eb560;
F9f40:
if (!$B5ef2) {
goto A59cf;
}
goto Fc268;
D39d4:
A59cf:
goto ff167;
ab389:
$D41c7 = '';
goto Cc644;
Ddd70:
if (!$c0c35) {
goto abb67;
}
goto c9237;
D2f5b:
$Fa48b = false;
goto ebe85;
Fd3f3:
if (isset($this->session->data["guest"])) {
goto ed402;
}
goto Caef2;
Ccbd0:
$c782a = isset($this->session->data["payment_address"]["address_1"]) ? $this->session->data["payment_address"]["address_1"] : '';
goto Bf236;
d9117:
$c3845 = $this->customer->getId();
goto c2366;
Ecf77:
F1cf3:
goto F5fd2;
b8700:
$B93dd = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "address WHERE address_id = '" . (int) $f85b3 . "' AND customer_id = '" . (int) $D1131 . "'");
goto b347d;
Dfe2e:
$Dcd05 = isset($this->session->data["guest"]["telephone"]) ? $this->session->data["guest"]["telephone"] : '';
goto Ccbd0;
Cc644:
$e71fa = '';
goto C34da;
Fc268:
$c49f0 = $this->cache->get("dmt.customer." . $D1131);
goto Dc329;
A52b7:
a4ed7:
goto d9117;
ebe85:
$ba42e = '';
goto D9d92;
b763b:
$a3275 = '';
goto E62e1;
ff36a:
$fc05f = isset($fc05f) ? $this->formatPostcode($fc05f) : '';
goto f6f85;
E62dd:
$c5f4c = '';
goto Bf645;
af5c8:
if (!$c63c0->num_rows) {
goto ea9cc;
}
goto Be659;
Bc0a4:
$D41c7 = isset($this->session->data["payment_address"]["iso_code_2"]) ? $this->session->data["payment_address"]["iso_code_2"] : '';
goto F7f3b;
Cab86:
abb67:
goto e80fe;
C34da:
if (!(isset($this->session->data["dmt_user"]) && !empty($this->session->data["dmt_user"]))) {
goto c6a9f;
}
goto f76f9;
A1941:
$be3f4 = ["user_id" => $D1131, "customer_id" => $D1131, "external_id" => $D1131, "email" => $ba42e, "telephone" => isset($b55e0["e1"]) ? $b55e0["e4"] : '', "em" => isset($ba42e) ? $this->getHash($ba42e) : '', "ph" => isset($b55e0["ph"]) ? $this->getHash($b55e0["ph"]) : '', "ph_e164" => isset($b55e0["e4"]) ? $this->getHash($b55e0["e1"]) : '', "fn" => isset($f9e0d) ? $this->getHash($f9e0d) : '', "ln" => isset($Eca20) ? $this->getHash($Eca20) : '', "ad" => isset($c782a) ? $this->getHash($c782a) : '', "ct" => isset($B05d4) ? $this->getHash($B05d4) : '', "pc" => isset($fc05f) ? $this->getHash($fc05f) : '', "st" => isset($c5f4c) ? $this->getHash($c5f4c) : '', "cc" => isset($D41c7) ? $this->getHash($D41c7) : ''];
goto Ae67a;
acabb:
if (!(isset($f85b3) && $f85b3 > 0)) {
goto F1cf3;
}
goto b8700;
a12d6:
$be3f4 = unserialize($F2ffe);
goto dd618;
c2366:
$D1131 = (int) $c3845;
goto F7f4d;
af240:
$c3845 = '';
goto b2f0c;
Ee4fb:
c6a9f:
goto Ce0d1;
E8953:
$D1131 = '';
goto af240;
D45e1:
if (!(isset($F2ffe) && $F2ffe)) {
goto e59a8;
}
goto a12d6;
d5cfd:
$B5ef2 = $this->dmt_cache;
goto D89d6;
fc435:
goto b179e;
goto c3948;
Cb615:
$fc05f = isset($B93dd->row["postcode"]) ? $B93dd->row["postcode"] : '';
goto a094c;
f6f85:
$Dcd05 = isset($Dcd05) ? $Dcd05 : '';
goto b1c91;
A62cf:
$fc05f = '';
goto f7aa5;
ef6fe:
$Eca20 = $c63c0->row["lastname"];
goto ae477;
f7aa5:
$c5f4c = '';
goto a9f22;
d306e:
if ($d4fbe->num_rows) {
goto Ba501;
}
goto b763b;
Bf236:
$B05d4 = isset($this->session->data["payment_address"]["city"]) ? $this->session->data["payment_address"]["city"] : '';
goto a4c01;
a094c:
$d4fbe = $this->db->query("SELECT * FROM `" . DB_PREFIX . "country` WHERE country_id = '" . (int) $B93dd->row["country_id"] . "'");
goto d306e;
ee280:
Cf4da:
goto b8616;
Fdcba:
$a3275 = '';
goto E62dd;
Ded72:
if (!$B5ef2) {
goto B3d0f;
}
goto Ac323;
cb528:
$fc05f = '';
goto Fc372;
dd618:
return $be3f4;
goto e96a4;
E1e03:
$c782a = isset($B93dd->row["address_1"]) ? $B93dd->row["address_1"] : '';
goto dea4b;
b8616:
$E486e = $this->db->query("SELECT * FROM `" . DB_PREFIX . "zone` WHERE zone_id = '" . (int) $B93dd->row["zone_id"] . "'");
goto A5e9c;
Cbd21:
$b55e0 = $this->formatPhone($Dcd05, $D41c7);
goto Ff8fa;
A9762:
b37a5:
goto D39d4;
eb560:
}
public function saveCustomerData($Db528)
{
goto f3ba0;
B1a06:
return;
goto e1377;
A3a1c:
A7fa5:
goto E8789;
f3ba0:
if (isset($Db528)) {
goto A7fa5;
}
goto d7313;
A3652:
$this->session->data["dmt_user"] = $F2ffe;
goto B1a06;
E8789:
$F2ffe = serialize($Db528);
goto A3652;
d7313:
return false;
goto A3a1c;
e1377:
}
public function resetCustomerData()
{
$this->session->data["dmt_user"] = '';
return;
}
public function saveOrderID($c58b0 = 0)
{
goto C4945;
A2724:
ad2f1:
goto F4ca4;
Fd9e3:
if (!($c58b0 > 0)) {
goto ad2f1;
}
goto c889e;
e2629:
$De11b = (int) $De11b;
goto F44a6;
Cb035:
$this->saveGTMCookie("dmt_orderid", $c58b0);
goto A2724;
F4ca4:
return;
goto A42b3;
F44a6:
$c58b0 = (int) $c58b0;
goto Fd9e3;
c889e:
$this->session->data["dmt_order_id"] = $c58b0;
goto Cb035;
C4945:
$De11b = isset($this->session->data["dmt_order_id"]) ? $this->session->data["dmt_order_id"] : 0;
goto e2629;
A42b3:
}
public function deleteOrderID()
{
goto c08e3;
Fe97f:
unset($this->session->data["dmt_order_id"]);
goto d4c92;
d4c92:
setcookie("dmt_order_id", '', time() - 3600);
goto F397f;
c08e3:
unset($this->session->data["tm_order_id"]);
goto Fe97f;
F397f:
}
public function saveGTMCookie($B1ba5, $Db528)
{
goto ed011;
Ab28c:
eca61:
goto B4727;
Bc46c:
setcookie($B1ba5, $Db528, ["expires" => $Dad62, "path" => $D6526, "domain" => $b3ca5, "samesite" => $B64b9, "secure" => true, "httponly" => true]);
goto b3e31;
B71f1:
$b3ca5 = isset($this->request->server["HTTP_HOST"]) ? $this->request->server["HTTP_HOST"] : '';
goto a24c0;
d01ca:
Df8bd:
goto A43bc;
ea0a0:
$c429e = true;
goto a823f;
B4727:
f2688:
goto c5e1e;
B69b8:
if (!(isset($Db528) && $Db528)) {
goto f2688;
}
goto c372d;
D6b97:
Fea3e:
goto B5d35;
d0aa9:
$Db528 = serialize($Db528);
goto b9533;
cac4b:
$D6526 = "/";
goto B69b8;
b9533:
A5235:
goto B71f1;
a24c0:
$B64b9 = "Lax";
goto D7c91;
e1dae:
return false;
goto d01ca;
a823f:
$Dad62 = time() + 86400 * 1;
goto cac4b;
B5d35:
setcookie($B1ba5, $Db528, $Dad62, $D6526 . "; samesite=" . $B64b9, $b3ca5, true, true);
goto Ab28c;
b3e31:
goto eca61;
goto D6b97;
A43bc:
if (!$this->check_array($Db528)) {
goto A5235;
}
goto d0aa9;
c5e1e:
return;
goto Cf1e2;
ed011:
if (!(!isset($Db528) || !isset($B1ba5))) {
goto Df8bd;
}
goto e1dae;
D7c91:
$b25dc = true;
goto ea0a0;
c372d:
if (PHP_VERSION_ID < 70300) {
goto Fea3e;
}
goto Bc46c;
Cf1e2:
}
public function resetGTMCookie($B1ba5)
{
goto B2c6e;
a42aa:
$b3ca5 = isset($this->request->server["HTTP_HOST"]) ? $this->request->server["HTTP_HOST"] : '';
goto e9219;
c68f8:
return;
goto Ad9d4;
ed557:
F91f4:
goto cd20f;
c0cd1:
eb5a1:
goto a42aa;
cd20f:
E9b8c:
goto c68f8;
C94ab:
return false;
goto c0cd1;
fd743:
C812d:
goto a4535;
Cba47:
goto F91f4;
goto fd743;
e9219:
$B64b9 = "strict";
goto f00fd;
A437e:
if (!(isset($B1ba5) && $B1ba5)) {
goto E9b8c;
}
goto Ec76d;
a4535:
setcookie($B1ba5, '', $Dad62, $D6526 . "; samesite=" . $B64b9, $b3ca5, $c429e, $b25dc);
goto ed557;
Cf380:
$c429e = true;
goto d4a3b;
Ec76d:
if (PHP_VERSION_ID < 70300) {
goto C812d;
}
goto f16a4;
d4a3b:
$Dad62 = time() - 7200;
goto bccdd;
B2c6e:
if (isset($B1ba5)) {
goto eb5a1;
}
goto C94ab;
bccdd:
$D6526 = "/";
goto A437e;
f16a4:
setcookie($B1ba5, '', ["expires" => $Dad62, "path" => $D6526, "domain" => $b3ca5, "samesite" => $B64b9, "secure" => $c429e, "httponly" => $b25dc]);
goto Cba47;
f00fd:
$b25dc = true;
goto Cf380;
Ad9d4:
}
public function readGTMCookie($B1ba5)
{
goto D29d2;
A6ec5:
if (!isset($B1ba5)) {
goto aa95a;
}
goto c69b6;
a7a05:
return $Db528;
goto adff0;
dccac:
aa95a:
goto a7a05;
c69b6:
$Db528 = isset($_COOKIE[$B1ba5]) ? $_COOKIE[$B1ba5] : false;
goto dccac;
D29d2:
$Db528 = false;
goto A6ec5;
adff0:
}
public function readConsent()
{
goto f90a3;
E7c24:
cec31:
goto a16b0;
F2530:
foreach ($d1051["categories"] as $bbbc1) {
goto Ac44d;
ecbec:
$Db528["cc_marketing"] = 1;
goto Dc932;
F0a9f:
$Db528["cc_analytics"] = 1;
goto e4673;
B8da1:
$Db528["ad_user_data"] = "granted";
goto a343a;
a457d:
$Db528["allowAdFeatures"] = "true";
goto Fef48;
Ac44d:
if (!($bbbc1 == "analytics")) {
goto a7ec2;
}
goto F0a9f;
C7dce:
$Db528["consent"] = "grant";
goto B198a;
a1d31:
if (!($bbbc1 == "marketing")) {
goto A0634;
}
goto ecbec;
c9e0d:
a7ec2:
goto a1d31;
fbff4:
$Db528["consent"] = "revoke";
goto c9e0d;
B198a:
A0634:
goto E3552;
Dc932:
$Db528["gdpr_marketing"] = "granted";
goto B8da1;
Fef48:
$Db528["marketing_block"] = false;
goto C7dce;
efe04:
$Db528["tracking_block"] = false;
goto fbff4;
a343a:
$Db528["ad_personalization"] = "granted";
goto a457d;
e4673:
$Db528["gdpr_analytics"] = "granted";
goto a1eca;
a1eca:
$Db528["allowAdFeatures"] = "false";
goto efe04;
E3552:
A8399:
goto ccbc6;
ccbc6:
}
goto C1dfb;
afbb8:
if (!isset($d1051["categories"])) {
goto Adeff;
}
goto F2530;
Fd369:
$d1051 = (array) json_decode(stripslashes(html_entity_decode($_COOKIE["_consents"])));
goto afbb8;
E6c81:
return $Db528;
goto E7c24;
eaaed:
if (!isset($_COOKIE["_consents"])) {
goto c57fb;
}
goto b0993;
a16b0:
if (!(isset($c513c["eu_cookie_enforce"]) && $c513c["eu_cookie_enforce"])) {
goto Df8ec;
}
goto Eceee;
Eceee:
$Db528 = ["cc_enabled" => 1, "cc_analytics" => 0, "cc_marketing" => 0, "gdpr_analytics" => "denied", "gdpr_marketing" => "denied", "ad_user_data" => "denied", "ad_personalization" => "denied", "consent" => "revoke", "allowAdFeatures" => "false", "tracking_block" => true, "marketing_block" => true, "consent_state" => "notset"];
goto E6ab4;
Add7c:
c57fb:
goto A5913;
De5bb:
Adeff:
goto Add7c;
b0993:
$d1051 = (array) json_decode($_COOKIE["_consents"]);
goto Fd369;
C84ec:
if (!(isset($c513c["consent_external"]) && $c513c["consent_external"])) {
goto F6c68;
}
goto Ffaa3;
baa4f:
F6c68:
goto cfd64;
E6ab4:
Df8ec:
goto eaaed;
Ab31a:
return $Db528;
goto baa4f;
f90a3:
$c513c = $this->settings;
goto f686e;
C1dfb:
fc6b5:
goto a9524;
f686e:
$Db528 = ["cc_enabled" => 0, "cc_analytics" => 1, "cc_marketing" => 1, "gdpr_analytics" => "granted", "gdpr_marketing" => "granted", "ad_user_data" => "granted", "ad_personalization" => "granted", "consent" => "grant", "allowAdFeatures" => "true", "tracking_block" => false, "marketing_block" => false, "consent_state" => "default"];
goto C84ec;
cfd64:
if (!(isset($c513c["eu_cookie"]) && !$c513c["eu_cookie"])) {
goto cec31;
}
goto E6c81;
A5913:
return $Db528;
goto adba7;
a9524:
$Db528["consent_state"] = "set";
goto De5bb;
Ffaa3:
$Db528 = ["cc_enabled" => 0, "cc_analytics" => 1, "cc_marketing" => 1, "gdpr_analytics" => '', "gdpr_marketing" => '', "ad_user_data" => '', "ad_personalization" => '', "consent" => '', "allowAdFeatures" => "true", "tracking_block" => false, "marketing_block" => false, "consent_state" => false];
goto Ab31a;
adba7:
}
public function getDataLayerSettings($A5606 = false, $c513c = false, $c9f9f = false)
{
goto Cb664;
c2f82:
D06fc:
goto B7fbd;
Abf10:
$A5606[] = ["adwordEnable" => $c513c["adword"], "adwordTagID" => $c513c["aw_tagid"], "adwordConversionID" => $c513c["conversion_id"], "adwordConversionLabel" => $c513c["conversion_label"], "adwordCurrency" => $c513c["currency"]];
goto Bcd01;
d27d5:
if (!(isset($c513c["fn"]) && !empty($c513c["fn"]))) {
goto d9acd;
}
goto C0b0b;
cacd4:
if (!(isset($c513c["useremail"]) && !empty($c513c["useremail"]))) {
goto C2f3f;
}
goto Ce4ff;
fd20e:
if (!isset($Ec703)) {
goto Aee90;
}
goto e1b41;
ba798:
edace:
goto Cb831;
C11f7:
d9acd:
goto fa8fd;
d1ddf:
$Fdb96 = [];
goto Dc4f7;
A4658:
if (!(isset($c513c["remarketing"]) && $c513c["remarketing"] == "1")) {
goto c03e1;
}
goto ec015;
D5912:
if (!(isset($c513c["cj_code"]) && !empty($c513c["cj_code"]) && $c513c["cj_status"] == "1")) {
goto edace;
}
goto c8bf9;
f119f:
if ($c9f9f) {
goto da06f;
}
goto e06a8;
ec015:
$A5606[] = ["RemarketingEnable" => "1"];
goto E4873;
dc1a7:
$A5606[] = ["cj_status" => "1", "cj_code" => $c513c["cj_code"], "cj_currency" => $c513c["cj_currency"], "cj_currency_value" => $c513c["cj_currency_value"], "cj_actionid" => $c513c["cj_actionid"], "cj_page" => $Cfb8d];
goto ba798;
Fab4e:
if (isset($c513c["aw_tagid"]) && !empty($c513c["aw_tagid"])) {
goto F40a9;
}
goto F4cc7;
B2054:
$A5606[] = ["pinterest_status" => "1", "pinterest_tag" => $c513c["pinterest_tag"]];
goto cdb32;
B95a8:
$A5606[] = ["up" => $c513c["telephone"]];
goto ae12c;
fdf02:
$A5606[] = ["url_passthrough" => "true"];
goto B2671;
Dc4f7:
foreach ($A5606 as $f2de0) {
goto efb3e;
B9388:
d0b38:
goto Aa4a2;
efb3e:
foreach ($f2de0 as $F54aa => $f5425) {
$Fdb96[$F54aa] = $f5425;
dafa0:
}
goto B9388;
Aa4a2:
C4a73:
goto D6301;
D6301:
}
goto C81b3;
Cb664:
if ($A5606) {
goto a03d1;
}
goto A86e0;
Aba1b:
if (!isset($c513c["ga4_mid"])) {
goto a758d;
}
goto b51ec;
De692:
$A5606[] = ["currencyCode" => $c513c["currency"], "store_country" => isset($c513c["store_country"]) ? $c513c["store_country"] : '', "locale" => $c513c["locale"]];
goto a084a;
Ce4ff:
$A5606[] = ["um" => $c513c["useremail"]];
goto Cea7f;
a9159:
if (!(isset($c513c["glami_code"]) && !empty($c513c["glami_code"]) && $c513c["glami_status"] == "1")) {
goto D368b;
}
goto B0dde;
B98af:
if (!isset($c513c["user_id"])) {
goto fd010;
}
goto B1ad6;
C719b:
A6136:
goto ae837;
fa8fd:
if (!(isset($c513c["ln"]) && !empty($c513c["ln"]))) {
goto B2dfa;
}
goto C3572;
d0c73:
$Cfb8d = '';
goto fd20e;
Cef6a:
da06f:
goto D0fcb;
b664c:
if (!(isset($c513c["ga4_status"]) && $c513c["ga4_status"])) {
goto f5522;
}
goto Aba1b;
E4831:
goto F2a48;
goto Df821;
B1ad6:
$A5606[] = ["user_id" => $c513c["user_id"]];
goto af363;
a83b9:
if (!isset($c513c["external_id"])) {
goto c77ef;
}
goto c37a6;
A86e0:
$A5606 = [];
goto a9b02;
bb303:
D368b:
goto D5912;
Ac52f:
$A5606[] = ["ue" => $c513c["email"]];
goto C719b;
d2ed5:
$be3f4["sha256_phone_number"] = $c513c["ph_e1"];
goto F3e3d;
c8bf9:
$cb074 = isset($Ec703) ? $Ec703 : "common/home";
goto d0c73;
e06a8:
$c9f9f = [];
goto Cef6a;
Cecce:
Aee90:
goto dc1a7;
ae12c:
d075c:
goto D2c36;
bb6b8:
a91cc:
goto Bbd20;
B0403:
if (!(isset($c513c["ph_e164"]) && !empty($c513c["ph_e164"]))) {
goto bc1f1;
}
goto d2ed5;
A13f9:
Edded:
goto a4ed2;
E4873:
c03e1:
goto a83b9;
fa9c4:
$Ec703 = $A5606[0]["route"];
goto D66d9;
e1b41:
switch ($Ec703) {
case "checkout/cart":
$Cfb8d = "cart";
goto d47e0;
case "product/product":
$Cfb8d = "productDetail";
goto d47e0;
case "product/category":
$Cfb8d = "category";
goto d47e0;
case "catalog/catalog":
$Cfb8d = "category";
goto d47e0;
case "catalog/search":
$Cfb8d = "search";
goto d47e0;
case "catalog/special":
$Cfb8d = "special";
goto d47e0;
case "catalog/manufacturer/info":
$Cfb8d = "Manufacturer";
goto d47e0;
case "common/home":
$Cfb8d = "homepage";
goto d47e0;
}
goto F1816;
Add1f:
$d5009 = $this->readConsent();
goto fa9c4;
D2c1a:
$be3f4["sha256_email_address"] = $c513c["em"];
goto Cbaea;
aa108:
$A5606[] = ["yandex_status" => "1", "yandex_code" => $c513c["yandex_code"]];
goto c2f82;
F1816:
E8076:
goto Fb3f7;
ca7e5:
a758d:
goto d59dd;
Dce52:
$A5606[] = ["adword2Enable" => $c513c["adword2"], "adwordConversionID2" => $c513c["conversion_id2"]];
goto bb6b8;
C3572:
$be3f4["address"]["sha2_last_name"] = $c513c["ln"];
goto f3552;
ae837:
if (!(isset($c513c["telephone"]) && !empty($c513c["telephone"]))) {
goto d075c;
}
goto B95a8;
B7fbd:
if (!(isset($c513c["pinterest_tag"]) && !empty($c513c["pinterest_tag"]) && $c513c["pinterest_status"] == "1")) {
goto Edf9d;
}
goto B2054;
Deccf:
$A5606[] = ["VER" => $c513c["ver"]];
goto c4d14;
D2c36:
$A5606[] = ["user_data" => $be3f4];
goto De692;
f3552:
B2dfa:
goto D07f2;
B0dde:
$A5606[] = ["GlamiEnable" => "1", "glami_code" => $c513c["glami_code"]];
goto bb303;
d4518:
$E1ad7 = $c513c["aw_tagid"];
goto E11fc;
a9b02:
a03d1:
goto f119f;
Cbaea:
A5324:
goto B0403;
Eea83:
if (!($c513c["conversion_id"] && $c513c["adword"] == "1")) {
goto d2cf3;
}
goto Fab4e;
Fb3f7:
d47e0:
goto Cecce;
D1e7a:
if (!($d5009["gdpr_analytics"] != "granted" || $d5009["gdpr_marketing"] != "granted")) {
goto E0019;
}
goto fdf02;
C81b3:
f62a4:
goto a5af4;
d59dd:
f5522:
goto Eea83;
Cea7f:
C2f3f:
goto Ec218;
Bbd20:
d2cf3:
goto A4658;
D0fcb:
$d5009 = ["cc_enabled" => 1, "gdpr_analytics" => "granted", "gdpr_marketing" => "granted", "ad_user_data" => "granted", "ad_personalization" => "granted", "consent" => "grant", "allowAdFeatures" => "true", "tracking_block" => false, "marketing_block" => false, "consent_state" => false];
goto Add1f;
E59bc:
b3c38:
goto cacd4;
Df821:
F40a9:
goto d4518;
b6ede:
$be3f4["address"] = [];
goto d27d5;
F3e3d:
bc1f1:
goto E59bc;
D66d9:
$A5606[] = ["consent_state" => $d5009["consent_state"], "allowAdFeatures" => $d5009["allowAdFeatures"], "analytics_storage" => $d5009["gdpr_analytics"], "ad_storage" => $d5009["gdpr_marketing"], "consent" => $d5009["consent"], "ad_user_data" => $d5009["ad_user_data"], "ad_personalization" => $d5009["ad_personalization"]];
goto D1e7a;
E11fc:
F2a48:
goto Abf10;
a084a:
if (!(isset($c513c["bing_uetid"]) && !empty($c513c["bing_uetid"]) && $c513c["bing_status"] == "1")) {
goto Edded;
}
goto ad58a;
af363:
fd010:
goto Be1c5;
a4ed2:
if (!(isset($c513c["yandex_status"]) && !empty($c513c["yandex_code"]) && $c513c["yandex_status"] == "1")) {
goto D06fc;
}
goto aa108;
Ec218:
if (!(isset($c513c["email"]) && !empty($c513c["email"]))) {
goto A6136;
}
goto Ac52f;
cdb32:
Edf9d:
goto a9159;
B2671:
E0019:
goto b664c;
c4d14:
Da694:
goto d1ddf;
B3837:
if (!(isset($c513c["customer_data"]) && $c513c["customer_data"])) {
goto b3c38;
}
goto b6ede;
Bcd01:
if (!($c513c["conversion_id2"] && $c513c["adword2"] == "1")) {
goto a91cc;
}
goto Dce52;
C0b0b:
$be3f4["address"]["sha256_first_name"] = $c513c["fn"];
goto C11f7;
a5af4:
return $Fdb96;
goto a8c20;
F4cc7:
$E1ad7 = "AW-" . $c513c["conversion_id"];
goto E4831;
Be1c5:
$be3f4 = [];
goto B3837;
D07f2:
if (!(isset($c513c["em"]) && !empty($c513c["em"]))) {
goto A5324;
}
goto D2c1a;
da357:
c77ef:
goto B98af;
b51ec:
$A5606[] = ["ga4_mid" => $c513c["ga4_mid"], "ga4_status" => $c513c["ga4_status"]];
goto ca7e5;
c37a6:
$A5606[] = ["user_id" => $c513c["external_id"]];
goto da357;
Cb831:
if (!isset($c513c["ver"])) {
goto Da694;
}
goto Deccf;
ad58a:
$A5606[] = ["bingEnable" => "1", "bingid" => $c513c["bing_uetid"]];
goto A13f9;
a8c20:
}
public function getDimensionsX()
{
goto Bb16f;
d6624:
if (!(isset($c513c["custom_dimension"]) && $c513c["custom_dimension"])) {
goto Fcaa9;
}
goto fb721;
B6eb6:
switch ($f2dd1) {
case "ecomm_prodid":
goto e607c;
d0990:
${"dimension_value" . $D27f1} = $e9677;
goto d0eee;
d2568:
$e9677 = '';
goto b67e2;
e607c:
if (isset($c9f9f["ecomm_prodid"])) {
goto C42cf;
}
goto Afb7a;
b03d0:
goto d95c3;
goto cc2f6;
cc2f6:
b8dbb:
goto Db1f2;
B76a7:
$e9677 = $c9f9f["ecomm_prodid"];
goto b03d0;
fa832:
goto a4b6f;
goto e2952;
Afb7a:
$e9677 = false;
goto fa832;
Dcf73:
if ($Bdb1b) {
goto b8dbb;
}
goto B76a7;
d0eee:
goto a017a;
goto a13d6;
b9958:
$b226b = 0;
goto d2568;
F27f3:
a4b6f:
goto d0990;
e2952:
C42cf:
goto b9958;
D5c89:
d95c3:
goto F27f3;
b67e2:
$Bdb1b = $this->gtm->check_array($c9f9f["ecomm_prodid"]);
goto Dcf73;
Db1f2:
foreach ($c9f9f["ecomm_prodid"] as $d4f52) {
goto A83a1;
e830a:
$e9677 .= isset($d4f52) ? $d4f52 : false;
goto a26ff;
A83a1:
if (!($b226b > 0)) {
goto E57e4;
}
goto f84c3;
Af3c1:
b479f:
goto Da891;
a26ff:
$b226b++;
goto Af3c1;
C63f1:
E57e4:
goto e830a;
f84c3:
$e9677 .= ",";
goto C63f1;
Da891:
}
goto F493c;
F493c:
D3d10:
goto D5c89;
a13d6:
case "ecomm_pagetype":
${"dimension_value" . $D27f1} = isset($c9f9f["ecomm_pagetype"]) ? $c9f9f["ecomm_pagetype"] : false;
goto a017a;
case "ecomm_totalvalue":
${"dimension_value" . $D27f1} = isset($c9f9f["ecomm_totalvalue"]) ? $c9f9f["ecomm_totalvalue"] : false;
goto a017a;
case "dynx_itemid":
${"dimension_value" . $D27f1} = isset($c9f9f["dynx_itemid"]) ? $c9f9f["dynx_itemid"] : false;
goto a017a;
case "dynx_itemid2":
${"dimension_value" . $D27f1} = isset($c9f9f["dynx_itemid2"]) ? $c9f9f["dynx_itemid2"] : false;
goto a017a;
case "dynx_pagetype":
${"dimension_value" . $D27f1} = isset($c9f9f["dynx_pagetype"]) ? $c9f9f["dynx_pagetype"] : false;
goto a017a;
case "dynx_totalvalue":
${"dimension_value" . $D27f1} = isset($c9f9f["dynx_totalvalue"]) ? $c9f9f["dynx_totalvalue"] : false;
goto a017a;
case "user_id":
${"dimension_value" . $D27f1} = isset($c513c["user_id"]) ? $c513c["user_id"] : false;
goto a017a;
case "disable":
${"dimension_value" . $D27f1} = false;
goto a017a;
}
goto F3b86;
d51fd:
$f2dd1 = '';
goto Aaaf4;
Bb16f:
$c513c = $this->settings;
goto d6624;
F8eef:
goto B4c07;
goto c8e66;
F916f:
goto c0b34;
goto Cf05a;
cb081:
$D27f1++;
goto F916f;
Ab44f:
if (!($D27f1 <= 8)) {
goto A3679;
}
goto D18cc;
A091e:
c0b34:
goto Ab44f;
b9564:
$A5606[] = ["dimension_index" . $D27f1 => $c513c["custom_dimension" . $D27f1], "dimension_text" . $D27f1 => ${"dimension_value" . $D27f1}];
goto C0add;
Fbec1:
$D27f1 = 1;
goto A091e;
Aab88:
a017a:
goto b0fd8;
d31e1:
if (!($D27f1 <= 8)) {
goto cda09;
}
goto d51fd;
Db01e:
$D27f1++;
goto F8eef;
ae984:
d5281:
goto cb081;
b0fd8:
Ac985:
goto B2588;
E5614:
$f2dd1 = $c513c["custom_dimension" . $D27f1 . "_text"];
goto A2262;
fb721:
$D27f1 = 1;
goto ef08c;
Cf05a:
A3679:
goto Fd96a;
C0add:
db878:
goto ae984;
B2588:
D432e:
goto Db01e;
ef08c:
B4c07:
goto d31e1;
F3b86:
B19b3:
goto Aab88;
Aaaf4:
if (!(isset($c513c["custom_dimension" . $D27f1 . "_text"]) && $c513c["custom_dimension" . $D27f1 . "_text"] != "disable")) {
goto Ac985;
}
goto E5614;
Fd96a:
Fcaa9:
goto fe8eb;
D18cc:
if (!(isset($c513c["custom_dimension" . $D27f1]) && $c513c["custom_dimension" . $D27f1] != "0" && isset(${"dimension_value" . $D27f1}) && ${"dimension_value" . $D27f1})) {
goto db878;
}
goto b9564;
A2262:
${"dimension_value" . $D27f1} = false;
goto B6eb6;
c8e66:
cda09:
goto Fbec1;
fe8eb:
}
public function tagmangerPmap($C6158 = '', $B49ec = '', $e9d1b = '')
{
goto dd4e3;
ce312:
$Ebf4f = $this->config->get("config_currency");
goto Fb12a;
Bc3a5:
if (!(isset($c513c["id_suffix"]) && !empty($c513c["id_suffix"]))) {
goto Dfb6e;
}
goto A6bd8;
E3442:
if ($Ebf4f == "MXN") {
goto F31db;
}
goto dfdf8;
f203f:
$ecc30 = $e9d1b . "_" . $this->config->get("config_language");
goto bcb39;
B3e80:
goto C13b2;
goto D6c9c;
cb12a:
Dfb6e:
goto e610f;
E8686:
b2f7b:
goto f203f;
Fb12a:
$fe6cc = ["GBP", "USD", "EUR", "AUD", "BRL", "CZK", "JPY", "CHF", "CAD", "DKK", "INR", "MXN", "NOK", "PLN", "RUB", "SEK", "TRY"];
goto b3be8;
C50ef:
goto C13b2;
goto af8e7;
D8ac9:
Ef6e3:
goto F265b;
F82ce:
$B0a29 = "au";
goto e0ca7;
ff77e:
goto C2426;
goto c58b0;
bd90a:
goto C13b2;
goto ed289;
B68f0:
if ($Ebf4f == "AUD") {
goto Ec211;
}
goto C4a26;
D31c3:
goto C2426;
goto ba8e5;
Ce6f3:
if ($c0549 == "sku") {
goto ac252;
}
goto E8e64;
Bd5f2:
F9b9e:
goto ce778;
d27bc:
E9b69:
goto Bc3a5;
c97bf:
if ($c0549 == "product_id_language") {
goto b2f7b;
}
goto Daa32;
b3be8:
if (in_array($Ebf4f, $fe6cc)) {
goto Ca1d5;
}
goto F6cd8;
d0d28:
goto C2426;
goto F2b8c;
dd39a:
$B0a29 = "mx";
goto E7c17;
a5105:
$B0a29 = "gb";
goto F8d57;
b24cc:
goto C2426;
goto f306d;
b92bb:
$B0a29 = "in";
goto Adb07;
bdd1d:
F31db:
goto dd39a;
Daa32:
$ecc30 = $e9d1b;
goto D31c3;
F2b8c:
ac252:
goto E458f;
Ce289:
a9e3a:
goto b92bb;
b1964:
if ($c0549 == "product_id_currency") {
goto F93ae;
}
goto c97bf;
c58b0:
F93ae:
goto c95e7;
ce778:
$ecc30 = $C6158;
goto d0d28;
dd4e3:
$c513c = $this->settings;
goto f509f;
a7e8f:
goto C2426;
goto E8686;
F6cd8:
$Ebf4f = "GBP";
goto caad1;
F265b:
$B0a29 = "ca";
goto C50ef;
Ac930:
e5289:
goto cdd61;
E7c17:
goto C13b2;
goto Ce289;
f509f:
$c0549 = $c513c["pmap"];
goto ce312;
C7acb:
if ($c0549 == "product_id") {
goto cfaa9;
}
goto a876e;
af8e7:
b6f53:
goto De8a6;
e0ca7:
goto C13b2;
goto D8ac9;
F2e8a:
if ($Ebf4f == "GBP") {
goto D29f5;
}
goto a0706;
ed289:
Ec211:
goto F82ce;
a05bd:
goto C13b2;
goto bdd1d;
cdd61:
$B0a29 = "us";
goto bd90a;
C4a26:
if ($Ebf4f == "CAD") {
goto Ef6e3;
}
goto fee3a;
F8d57:
goto C13b2;
goto Ac930;
C9558:
$ecc30 = trim($c513c["id_prefix"]) . $ecc30;
goto d27bc;
E8e64:
if ($c0549 == "model_product_id") {
goto e5015;
}
goto b1964;
Adb07:
C13b2:
goto C7acb;
bae89:
$ecc30 = $C6158 . "_" . $e9d1b;
goto ff77e;
fee3a:
if ($Ebf4f == "CHF") {
goto b6f53;
}
goto E3442;
D6c9c:
D29f5:
goto a5105;
Eca96:
if (!(isset($c513c["id_prefix"]) && !empty($c513c["id_prefix"]))) {
goto E9b69;
}
goto C9558;
a876e:
if ($c0549 == "model") {
goto F9b9e;
}
goto Ce6f3;
f306d:
e5015:
goto bae89;
ba8e5:
cfaa9:
goto Ad312;
bcb39:
C2426:
goto Eca96;
bd607:
goto C2426;
goto Bd5f2;
dfdf8:
if ($Ebf4f == "INR") {
goto a9e3a;
}
goto B3e80;
c95e7:
$ecc30 = $e9d1b . "_" . $B0a29;
goto a7e8f;
Ad312:
$ecc30 = $e9d1b;
goto bd607;
e610f:
return (string) $ecc30;
goto f74bc;
E458f:
$ecc30 = $B49ec;
goto b24cc;
a0706:
if ($Ebf4f == "USD") {
goto e5289;
}
goto B68f0;
A6bd8:
$ecc30 = $ecc30 . trim($c513c["id_suffix"]);
goto cb12a;
caad1:
Ca1d5:
goto F2e8a;
De8a6:
$B0a29 = "ch";
goto a05bd;
f74bc:
}
public function tagmangerPtitle($B1ba5 = '', $F2554 = '', $C6158 = '', $e9d1b = '')
{
goto bdc62;
d9b1b:
goto efee0;
goto bad55;
B45fe:
goto efee0;
goto Df9a8;
fb509:
$F8148 = $c513c["ptitle"];
goto Dddb1;
a07d2:
if ($F8148 == "brand_model") {
goto D5205;
}
goto ec62c;
aff4f:
return $F8148;
goto f3f63;
Dddb1:
if ($F8148 == "name") {
goto F26bc;
}
goto a07d2;
bad55:
F26bc:
goto b0023;
b0023:
$F8148 = $B1ba5;
goto B45fe;
Df9a8:
D5205:
goto b757d;
C228e:
$F8148 = $this->cleanStr($F8148);
goto aff4f;
bdc62:
$c513c = $this->settings;
goto fb509;
b757d:
$F8148 = $F2554 . " " . $C6158;
goto bd8f3;
bd8f3:
efee0:
goto C228e;
ec62c:
$F8148 = $B1ba5;
goto d9b1b;
f3f63:
}
public function fetchWithCache($A0b28, callable $d4aff, $Dc0a4 = false)
{
goto Fa046;
Ec505:
$Db528 = $d4aff();
goto f43be;
A4a2b:
e16af:
goto df79e;
df79e:
return $Db528;
goto Bd7b3;
F977f:
if (!$B5ef2) {
goto Fcf07;
}
goto e213c;
fe209:
$this->cache->set($A0b28, $Db528);
goto A4a2b;
f43be:
if (!($B5ef2 && ($Dc0a4 || !empty($Db528)))) {
goto e16af;
}
goto fe209;
F7a83:
Fcf07:
goto Ec505;
Fa046:
$B5ef2 = $this->dmt_cache;
goto F977f;
dcd85:
if (!$c49f0) {
goto c9ef4;
}
goto f8393;
f8393:
return $c49f0;
goto b3fec;
e213c:
$c49f0 = $this->cache->get($A0b28);
goto dcd85;
b3fec:
c9ef4:
goto F7a83;
Bd7b3:
}
public function getProductGTIN($e9d1b = 0)
{
goto F9163;
e7284:
return false;
goto Bba3b;
D0e84:
$A0b28 = "dmt.gtin." . (int) $e9d1b;
goto f286d;
F9163:
if ($e9d1b) {
goto da21e;
}
goto e7284;
f286d:
return $this->fetchWithCache($A0b28, function () use($e9d1b) {
$c63c0 = $this->db->query("
\x9 SELECT ean \xd
\x9\x9FROM " . DB_PREFIX . "product \xd\xa\x9\x9 \x9WHERE product_id = '" . (int) $e9d1b . "'
\x9 LIMIT 1\xd\xa \x9");
return isset($c63c0->row["ean"]) ? $c63c0->row["ean"] : '';
}, true);
goto e8c78;
Bba3b:
da21e:
goto D0e84;
e8c78:
}
public function getProductSKU($e9d1b = 0)
{
goto db02a;
E1e87:
$A0b28 = "dmt.sku." . (int) $e9d1b;
goto adbc4;
f230b:
return false;
goto Ab704;
Ab704:
F1d0c:
goto E1e87;
db02a:
if ($e9d1b) {
goto F1d0c;
}
goto f230b;
adbc4:
return $this->fetchWithCache($A0b28, function () use($e9d1b) {
$c63c0 = $this->db->query("
\xa\x9 \x9 SELECT sku
\xa \x9FROM " . DB_PREFIX . "product
\xa\x9\x9 \x9WHERE product_id = '" . (int) $e9d1b . "' \xd\xa \x9 LIMIT 1\xd
\x9\x9\x9");
return $c63c0->num_rows === 1 && isset($c63c0->row["sku"]) ? $c63c0->row["sku"] : '';
});
goto abcca;
abcca:
}
public function getProductCatName($e9d1b = 0, $bab60 = false)
{
goto a7631;
ba962:
foreach ($Ce4f5 as $f2de0) {
goto e859e;
df1ef:
goto d7d30;
goto D91db;
D5b22:
${"item_category" . $D27f1} = $this->cleanStr($f2de0["name"]);
goto df1ef;
C536e:
d7d30:
goto Eed05;
d3968:
goto D58f5;
goto Bd426;
aa772:
b6df1:
goto C1c41;
e859e:
if ($D27f1 == 1) {
goto Bc662;
}
goto D5b22;
ad434:
if (!($D27f1 > 6)) {
goto E2642;
}
goto d3968;
Bd426:
E2642:
goto aa772;
D91db:
Bc662:
goto F27f2;
Eed05:
$D27f1++;
goto ad434;
F27f2:
$C7834 = $this->cleanStr($f2de0["name"]);
goto C536e;
C1c41:
}
goto a95d6;
F7e5a:
$b249b = '';
goto d12bb;
d5a4c:
$ba10b = $c63c0->rows;
goto B5a16;
D14f1:
D0843:
goto Dcb8c;
a4bdb:
$b249b = $c63c0->row["category_id"];
goto A3bd6;
d657c:
$Ce4f5 = $ce112;
goto a1e81;
d8444:
$c49f0 = $this->cache->get($A0b28);
goto ee5e9;
ab2af:
$D27f1 = 1;
goto A5257;
b3b38:
$A0b28 = "dmt.catdata." . $e9d1b . ($bab60 ? . $bab60 : '');
goto C26a4;
ee5e9:
if (!$c49f0) {
goto bee1c;
}
goto E18d8;
e1585:
ceec2:
goto F631b;
bebab:
return false;
goto e1585;
f839f:
$Ce4f5 = [];
goto F7e5a;
E18d8:
return $c49f0;
goto C6d18;
C8307:
foreach ($ce112 as $f2de0) {
goto D593f;
d2e3b:
fdcbe:
goto Ae7e7;
c6432:
$ad240 .= " > ";
goto d7a21;
f28d4:
$Fff98 = $c63c0->row["category_id"];
goto c17d9;
D593f:
if (!($D27f1 > 1)) {
goto b47f1;
}
goto c6432;
c17d9:
$D27f1++;
goto d2e3b;
d7a21:
b47f1:
goto Ae0d0;
Ae0d0:
$ad240 .= $f2de0["name"];
goto f28d4;
Ae7e7:
}
goto Fadc6;
Bb75d:
f1f7b:
goto a2d17;
F977b:
$B5ef2 = $this->gtm->dmt_cache;
goto b3b38;
f23a9:
if (!isset($Ce4f5)) {
goto E7b23;
}
goto ba962;
B5a16:
foreach ($ba10b as $efc44) {
goto F7957;
A01eb:
goto D0843;
goto Eed95;
dcdd2:
goto ab096;
goto E94d0;
E94d0:
B44e9:
goto De2b2;
f2c1c:
$f2de0 = $this->getparent($efc44["category_id"]);
goto Adb39;
De2b2:
$f2de0 = $this->getparent($efc44["category_id"]);
goto A01eb;
F7957:
if ($bab60 && $bab60 == $efc44["category_id"]) {
goto B44e9;
}
goto f2c1c;
C8ecc:
bd306:
goto B1679;
Adb39:
goto D0843;
goto dcdd2;
Eed95:
ab096:
goto C8ecc;
B1679:
}
goto D14f1;
a2d17:
$Db528 = ["category" => isset($E88d3) ? $E88d3 : '', "item_list_id" => isset($D799d["category_id"]) ? $D799d["category_id"] : $b249b, "item_list_name" => isset($D799d["name"]) ? $D799d["name"] : $be627, "item_category" => isset($C7834) ? $C7834 : '', "item_category2" => isset($C0d0c) ? $C0d0c : '', "item_category3" => isset($fe36c) ? $fe36c : '', "item_category4" => isset($bf395) ? $bf395 : '', "item_category5" => isset($cda6c) ? $cda6c : ''];
goto dddf3;
c6245:
$ad240 = '';
goto ab2af;
C26a4:
if (!$B5ef2) {
goto ecdf3;
}
goto d8444;
F631b:
$ce112 = array_reverse($f2de0);
goto d657c;
a95d6:
D58f5:
goto f2eec;
dddf3:
if (!($B5ef2 && !empty($Db528))) {
goto D159b;
}
goto Bf613;
B5402:
$c63c0 = $this->db->query("SELECT category_id FROM " . DB_PREFIX . "product_to_category WHERE product_id = '" . (int) $e9d1b . "' ");
goto d5a4c;
D7dca:
$D799d = false;
goto B5402;
dc861:
return $Db528;
goto Dbe58;
a1e81:
if (!(isset($ce112) && $this->check_array($ce112))) {
goto f1f7b;
}
goto C8307;
Fadc6:
f6f29:
goto C8c26;
A5257:
$D6526 = '';
goto D7dca;
B926f:
aba4e:
goto F977b;
C6d18:
bee1c:
goto b655a;
Dcb8c:
if (!(!isset($f2de0) || !$this->check_array($f2de0))) {
goto ceec2;
}
goto bebab;
d12bb:
$be627 = '';
goto c6245;
Efd1f:
$D27f1 = 1;
goto f23a9;
C8c26:
$E88d3 = $this->cleanStr($ad240);
goto a4bdb;
b57f0:
D159b:
goto dc861;
Bf613:
$this->cache->set($A0b28, $Db528);
goto b57f0;
a7631:
if ($e9d1b) {
goto aba4e;
}
goto Aee69;
f2eec:
E7b23:
goto Bb75d;
b655a:
ecdf3:
goto f839f;
Aee69:
return false;
goto B926f;
A3bd6:
$be627 = $this->cleanStr($ad240);
goto Efd1f;
Dbe58:
}
public function getProductCatNameNew($e9d1b = 0, $bab60 = false)
{
goto A1a0f;
eb244:
return false;
goto d46d6;
a8cdc:
return $this->fetchWithCache($A0b28, function () use($e9d1b, $bab60) {
goto C3796;
C3796:
$c63c0 = $this->db->query("
\xa \x9 SELECT category_id
\x9FROM " . DB_PREFIX . "product_to_category \xd\xa\x9\x9 \x9WHERE product_id = '" . (int) $e9d1b . "'\xd\xa\x9 ");
goto D7d89;
Bb21c:
$be627 = $E88d3;
goto D30d9;
E0984:
return false;
goto b4ac0;
db2b1:
$b249b = $E3962;
goto B24d8;
D30d9:
$b249b = $c63c0->row["category_id"];
goto B0f37;
B24d8:
$be627 = '';
goto f37fe;
Ae5ce:
if ($E3962) {
goto bac72;
}
goto d13d7;
b3394:
if ($this->check_array($b6c9a)) {
goto aab02;
}
goto Af19b;
ef2e2:
return $F458a;
goto Cc159;
be947:
$D27f1 = 1;
goto F8239;
b4ac0:
A3504:
goto cb96d;
eeaf9:
C0ee0:
goto Ae5ce;
Ee7f3:
foreach ($ba10b as $efc44) {
goto B6502;
Cebd1:
A744a:
goto Ab692;
E56c3:
f9c0e:
goto Ef0f5;
b11b4:
$E3962 = $efc44["category_id"];
goto d25e9;
d25e9:
goto C0ee0;
goto d721d;
f76d2:
goto C0ee0;
goto Cebd1;
Ab692:
A3981:
goto A8ed4;
Ef0f5:
$E3962 = $efc44["category_id"];
goto f76d2;
d721d:
goto A744a;
goto E56c3;
B6502:
if ($bab60 && $bab60 == $efc44["category_id"]) {
goto f9c0e;
}
goto b11b4;
A8ed4:
}
goto eeaf9;
B0f37:
$F458a = ["category" => $E88d3, "item_list_id" => $b249b, "item_list_name" => $be627];
goto be947;
be079:
bac72:
goto Da410;
D7d89:
if ($c63c0->num_rows) {
goto A3504;
}
goto E0984;
f6eb0:
Cfc5b:
goto fc40c;
ffb99:
f7c00:
goto ef2e2;
Bd675:
aab02:
goto d5308;
f37fe:
$D27f1 = 1;
goto d0b26;
C2eaf:
$Ce4f5 = $b6c9a;
goto a1435;
Da410:
$b6c9a = $this->getparent($E3962);
goto b3394;
cb96d:
$ba10b = $c63c0->rows;
goto fb761;
d0b26:
foreach ($b6c9a as $a3461) {
goto a7efc;
d7f66:
$ad240 .= $a3461["name"];
goto d4927;
af58c:
b706a:
goto d7f66;
E933a:
d643c:
goto a7756;
a7efc:
if (!($D27f1 > 1)) {
goto b706a;
}
goto Ae169;
Ae169:
$ad240 .= " > ";
goto af58c;
d4927:
$D27f1++;
goto E933a;
a7756:
}
goto f6eb0;
fb761:
$E3962 = null;
goto Ee7f3;
a1435:
$ad240 = '';
goto db2b1;
d13d7:
return false;
goto be079;
fc40c:
$E88d3 = $this->cleanStr($ad240);
goto Bb21c;
Af19b:
return false;
goto Bd675;
d5308:
$b6c9a = array_reverse($b6c9a);
goto C2eaf;
F8239:
foreach ($Ce4f5 as $f2de0) {
goto C018d;
f8b01:
$F458a[$F54aa] = $this->cleanStr($f2de0["name"]);
goto Dba90;
Dba90:
if (!(++$D27f1 > 6)) {
goto De63e;
}
goto D80d9;
D80d9:
goto f7c00;
goto A67ce;
C018d:
$F54aa = $D27f1 === 1 ? "item_category" : "item_category" . $D27f1;
goto f8b01;
e0b41:
C7c8e:
goto E58e3;
A67ce:
De63e:
goto e0b41;
E58e3:
}
goto ffb99;
Cc159:
});
goto D5992;
A1a0f:
if ($e9d1b) {
goto B0bc5;
}
goto eb244;
d46d6:
B0bc5:
goto e62f0;
e62f0:
$A0b28 = "dmt.catdata." . $e9d1b . ($bab60 ? . $bab60 : '');
goto a8cdc;
D5992:
}
public function getProductCatID($e9d1b = 0)
{
goto Db8cc;
Dd59c:
return false;
goto be017;
C379c:
$A0b28 = "dmt.cat." . (int) $e9d1b;
goto A34c2;
Db8cc:
if ($e9d1b) {
goto a3562;
}
goto Dd59c;
A34c2:
return $this->fetchWithCache($A0b28, function () use($e9d1b) {
$c63c0 = $this->db->query("\xd
\x9 \x9SELECT category_id \xd\xa \x9\x9 FROM " . DB_PREFIX . "product_to_category \xd\xa\x9 WHERE product_id = '" . (int) $e9d1b . "' \xd
\x9 \x9 ORDER BY category_id DESC \xd\xa \x9LIMIT\xd
\x9 ");
return $c63c0->num_rows === 1 ? (int) $c63c0->row["category_id"] : 0;
}, true);
goto bcdf1;
be017:
a3562:
goto C379c;
bcdf1:
}
public function getParent($eebb6 = 0)
{
goto d6935;
d90f1:
Fa219:
goto adbbb;
adbbb:
$A0b28 = "dmt.parent." . (int) $eebb6;
goto f563e;
f563e:
return $this->fetchWithCache($A0b28, function () use($eebb6) {
goto B034a;
B8ac9:
$c63c0 = $this->db->query("
\xa \x9 SELECT c.category_id, cd1.name AS name, c.parent_id \xd
\x9 \x9FROM " . DB_PREFIX . "category c \xd
\x9 \x9\x9LEFT JOIN " . DB_PREFIX . "category_description cd1
\xa\x9 \x9 \x9ON c.category_id = cd1.category_id \xd
WHERE cd1.language_id = '" . (int) $this->config->get("config_language_id") . "'
\x9 AND c.category_id = '" . (int) $eebb6 . "'
\xa\x9\x9\x9 LIMIT 1
\xa \x9\x9");
goto da58a;
C0aff:
$Db528 = array_merge($Db528, $ddb38);
goto D0576;
a72da:
$Db528[] = $b5014;
goto e5a06;
e5a06:
if (!((int) $b5014["parent_id"] !== 0)) {
goto e8c46;
}
goto B9af0;
D0e8b:
return $Db528;
goto E6fbb;
D0576:
A0df5:
goto A220b;
A220b:
e8c46:
goto e07cd;
da58a:
if (!($c63c0->num_rows === 1)) {
goto E803e;
}
goto Ccb04;
e07cd:
E803e:
goto D0e8b;
Ccb04:
$b5014 = $c63c0->row;
goto a72da;
f911a:
if (empty($ddb38)) {
goto A0df5;
}
goto C0aff;
B9af0:
$ddb38 = $this->getParent($b5014["parent_id"]);
goto f911a;
B034a:
$Db528 = [];
goto B8ac9;
E6fbb:
});
goto a4ad4;
d6935:
if ($eebb6) {
goto Fa219;
}
goto E45c6;
E45c6:
return false;
goto d90f1;
a4ad4:
}
public function getProductBrandName($e9d1b = 0)
{
goto De775;
ee0cc:
c3e07:
goto bf086;
ae87e:
return $this->fetchWithCache($A0b28, function () use($e9d1b) {
goto d24ee;
d58a2:
$F2554 = isset($c63c0->row["name"]) ? $c63c0->row["name"] : '';
goto a5327;
d24ee:
$c63c0 = $this->db->query("\xd\xa\x9 \x9\x9SELECT m.name \xd\xa FROM " . DB_PREFIX . "manufacturer m
\xa \x9\x9LEFT JOIN " . DB_PREFIX . "product p
\xa \x9 \x9ON m.manufacturer_id = p.manufacturer_id
\xa\x9 \x9 WHERE p.product_id = '" . (int) $e9d1b . "'\xd\xa \x9LIMIT\xd\xa ");
goto d58a2;
a5327:
return $this->cleanStr($F2554);
goto caa6c;
caa6c:
}, true);
goto E9cb2;
De775:
if ($e9d1b) {
goto c3e07;
}
goto Eb9f7;
Eb9f7:
return '';
goto ee0cc;
bf086:
$A0b28 = "dmt.brand." . (int) $e9d1b;
goto ae87e;
E9cb2:
}
public function getProductImages($e9d1b = 0)
{
goto B0926;
B7238:
return [];
goto b3639;
B0926:
if ($e9d1b) {
goto E87c7;
}
goto B7238;
A84c1:
return $this->fetchWithCache($A0b28, function () use($e9d1b) {
$c63c0 = $this->db->query("
\xa \x9\x9 SELECT *
\xa\x9 \x9FROM " . DB_PREFIX . "product_image
\xa\x9\x9 \x9WHERE product_id = '" . (int) $e9d1b . "'
\x9\x9ORDER BY sort_order ASC \xd\xa\x9 \x9\x9LIMIT 1\xd\xa \x9");
return $c63c0->rows;
});
goto Dd866;
b3639:
E87c7:
goto dd904;
dd904:
$A0b28 = "dmt.images." . (int) $e9d1b;
goto A84c1;
Dd866:
}
public function getModuleProducts($Be00b = array(), $be5b4 = '', $E447f = '')
{
goto a9a4f;
D2336:
Ed8dd:
goto ffc99;
Fa98b:
if (!empty($be5b4)) {
goto Ed8dd;
}
goto B1d4d;
De859:
foreach ($Be00b as $f5425) {
goto af269;
Dee60:
$f5425["category"] = $be5b4;
goto D01b6;
b16b2:
Dd17b:
goto fb991;
Ff169:
befe7:
goto D7416;
Fa0dc:
$E4ccf = $this->model_extension_module_dmt->getProductInfo($e9d1b);
goto B6ef4;
c000a:
$f5425["item_list_id"] = $E447f;
goto F538b;
B6ef4:
$f5425["sku"] = isset($E4ccf["sku"]) ? $E4ccf["sku"] : $e9d1b;
goto b7ac2;
aa403:
$f2a49 = isset($E4ccf["price"]) ? $E4ccf["price"] : 0;
goto b16b2;
Bcf72:
$Ff056 = 0.0;
goto a51d1;
C49d7:
$f5425["item_category"] = $be5b4;
goto Dee60;
F6909:
$f5425["category_name"] = $be5b4;
goto C49d7;
E1bab:
$f5425["model"] = isset($E4ccf["model"]) ? $E4ccf["model"] : $e9d1b;
goto Cdbb8;
C61f7:
C68b4:
goto Cc33f;
b7ac2:
$f5425["gtin"] = isset($E4ccf["ean"]) ? $E4ccf["ean"] : '';
goto E1bab;
b73d9:
$f5425["tax_class_id"] = $E4ccf["tax_class_id"];
goto F6909;
Cc33f:
$f570e = 0.0;
goto Bcf72;
Cdbb8:
$f5425["pid"] = $this->tagmangerPmap($f5425["model"], $f5425["sku"], $e9d1b);
goto e92aa;
d82b7:
$f2a49 = 0;
goto Aee81;
F538b:
if (!($this->customer->isLogged() || !$this->config->get("config_customer_price"))) {
goto Dd17b;
}
goto aa403;
Aee81:
$e9d1b = $f5425["product_id"];
goto Fa0dc;
a51d1:
$B89c0 = 0;
goto d82b7;
e92aa:
$f5425["brand"] = isset($E4ccf["manufacturer"]) ? $this->cleanStr($E4ccf["manufacturer"]) : $this->getProductBrandName($e9d1b);
goto Af333;
B4393:
$f5425["item_price"] = $f2a49;
goto ff372;
D68ef:
$f2a49 = $E4ccf["special"];
goto Ff169;
D01b6:
$f5425["item_list_name"] = $be5b4;
goto c000a;
D7416:
$f570e = $this->currency->format($this->tax->calculate($f2a49, $f5425["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto B4393;
D60ca:
db39f:
goto B5b61;
af269:
if (!(!isset($f5425["product_id"]) || !isset($f5425["price"]))) {
goto C68b4;
}
goto A19e6;
fb991:
if (!(isset($E4ccf["special"]) && (float) $E4ccf["special"])) {
goto befe7;
}
goto D68ef;
A19e6:
goto db39f;
goto C61f7;
Af333:
$f5425["title"] = $this->tagmangerPtitle($f5425["name"], $f5425["brand"], $f5425["model"], $e9d1b);
goto b73d9;
ba4a0:
$f2de0[] = $f5425;
goto D60ca;
ff372:
$f5425["pprice"] = number_format((float) $f570e, 2, , '');
goto ba4a0;
B5b61:
}
goto d0250;
dc7bf:
return false;
goto A290f;
c18d1:
if (!($this->check_array($Be00b) && count($Be00b) < 1)) {
goto ef60b;
}
goto cf09a;
F0131:
dfe99:
goto B4b60;
A290f:
Ce626:
goto c18d1;
B4b60:
if ($this->check_array($Be00b)) {
goto Ce626;
}
goto dc7bf;
ffc99:
if (!empty($E447f)) {
goto dfe99;
}
goto d03e7;
cf09a:
return false;
goto B710d;
B1d4d:
$be5b4 = "Modules";
goto D2336;
d0250:
C20ca:
goto be01a;
d03e7:
$E447f = "modules";
goto F0131;
be01a:
return $f2de0;
goto d483b;
a9a4f:
$this->load->model("extension/module/dmt");
goto B703e;
B710d:
ef60b:
goto De859;
B703e:
$f2de0 = [];
goto Fa98b;
d483b:
}
public function getProduct($e9d1b = false, $B4f19 = array(), $Be248 = array())
{
goto dbf2b;
c4339:
$c36f9 = ["event" => "productView", "eventAction" => "productView", "eventLabel" => "Product Detail View", "ga" => $A8ce3, "content_name" => $fda0d, "content_category" => $Ea555, "content_ids" => $ecc30, "content_type" => "product", "category" => $Ea555, "brand" => $F2554, "remarketing_ids" => $c1aca, "currency" => $c513c["currency"], "value" => $bdea5, "event_id" => $e7e18];
goto F7d6c;
B473e:
$E850b[] = ["product_name" => $fda0d, "product_id" => $ecc30, "product_category" => $Ea555, "product_price" => $bdea5, "product_brand" => $F2554];
goto D6460;
Fa3f0:
$c1649 = 0;
goto b3653;
c2376:
goto cb3bd;
goto Abee5;
Bdfba:
if (!$c513c["twitter_status"]) {
goto bbd18;
}
goto a5f0d;
ea97a:
$C6970[] = ["content_category" => $Ea555, "content_name" => $fda0d, "price" => $bdea5, "content_id" => $ecc30, "quantity" => 1, "brand" => $F2554, "currency" => $A881c, "value" => $E06bd, "description" => $fda0d, "content_type" => "product"];
goto B9d51;
A5538:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto ba3f8;
}
goto Fc757;
Ba612:
if (!(!is_null($B4f19["special"]) && (float) $B4f19["special"] >= 0)) {
goto D2aca;
}
goto D0708;
aab5a:
$Edc97 = false;
goto aac7f;
a8ea9:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto Dd62c;
}
goto E44c9;
ec029:
$c1649 = $c513c["twitter_viewcontent"];
goto e6ecf;
b7681:
if (!isset($B4f19["image"])) {
goto F8cb4;
}
goto B2910;
D8add:
$E1d8b = false;
goto D5938;
C63e1:
$f2a49 = $B4f19["price"];
goto D7fd8;
D1dfe:
$d5ede = ["ecomm_prodid" => $ecc30, "ecomm_pagetype" => "product"];
goto caae7;
c7457:
if (isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"]) {
goto D7b54;
}
goto D0455;
Fe337:
if (isset($c513c["twitter_viewcontent"]) && !empty($c513c["twitter_viewcontent"])) {
goto ad889;
}
goto Cf97c;
b1f5f:
$b748b = false;
goto D8add;
af6ef:
$C0d0c = $E88d3["item_category2"];
goto dbaf3;
f2e77:
$C6158 = $B4f19["model"];
goto B8147;
D7fd8:
b222b:
goto Ba612;
ce86f:
$C8d20 = false;
goto e01ca;
c34f8:
return false;
goto C21e4;
c6bcb:
ba3f8:
goto da84e;
F8e5d:
$fd039 = '';
goto ce86f;
dda56:
D2aca:
goto A00fe;
da84e:
A65f0:
goto d610e;
B2910:
$fd039 = "//image/" . $B4f19["image"];
goto c2376;
e35f0:
$be627 = $E88d3["item_list_name"];
goto bf234;
A4879:
return false;
goto E44d6;
e65a8:
$b249b = $E88d3["item_list_id"];
goto e35f0;
c031e:
if (!$c513c["matomo_status"]) {
goto b583c;
}
goto E9f7c;
C414a:
$B1d02 = [];
goto cd2da;
D0455:
$C98e9 = $this->tax->calculate($f2a49, $cd714, $this->config->get("config_tax"));
goto eb4bd;
E4870:
$C98e9 = number_format((float) $this->currency->format($C98e9, $this->session->data["currency"], 0, false), 2, , '');
goto Fbe91;
eb4bd:
goto Ba471;
goto bf01b;
A5c37:
$bf395 = $E88d3["item_category4"];
goto fe95c;
f55d4:
$A881c = $c513c["currency"];
goto a8ea9;
E9d9a:
$E1d8b = ["content_category" => $Ea555, "currency" => $c513c["currency"], "content_ids" => $ecc30, "value" => $bdea5, "brands" => $F2554, "num_items" => 1];
goto De207;
a5f0d:
$Ec46e = [];
goto Fe337;
db36a:
$d5ede = false;
goto aab5a;
F0fca:
if (!($this->customer->isLogged() || !$this->config->get("config_customer_price"))) {
goto b222b;
}
goto C63e1;
e7d77:
if ($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"]) {
goto f79fb;
}
goto E4870;
cd2da:
$A8ce3 = [];
goto Ab8d9;
d1b0c:
$d4f2b = '';
goto F8e5d;
Aad7d:
$fda0d = $this->gtm->tagmangerPtitle($B4f19["name"], $F2554, $C6158, $B4f19["product_id"]);
goto da8c7;
bf01b:
D7b54:
goto B15a0;
Bd719:
$E06bd = number_format((float) $this->currency->format($f2a49, $this->session->data["currency"], 0, false), 2, , '');
goto f55d4;
c8054:
$c1aca[] = ["id" => (string) $ecc30, "google_business_vertical" => "retail"];
goto fdae2;
B8147:
$d1607 = isset($B4f19["ean"]) ? $B4f19["ean"] : '';
goto E131f;
f273a:
if (isset($B4f19["price"])) {
goto F39b3;
}
goto B171f;
Fc757:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto c6bcb;
d69c8:
Ba471:
goto e7d77;
b7f4e:
C0772:
goto Cf476;
d3352:
$d4f2b = $this->url->link("product/product", "&product_id=" . $e9d1b);
goto daa71;
f0b19:
$e7e18 = "1-" . $this->eventid();
goto Fa3f0;
B15a0:
$C98e9 = $f2a49;
goto d69c8;
bfeaf:
$b748b = ["price" => $bdea5, "currency" => $c513c["currency"], "item_ids" => $ecc30, "number_items" => 1, "brands" => $F2554, "item_category" => $Ea555, "description" => "Product Viewed"];
goto E9d9a;
da6d8:
$B49ec = isset($B4f19["sku"]) ? $B4f19["sku"] : '';
goto f2e77;
C6e04:
if (!$c513c["snap_pixel_status"]) {
goto Cf441;
}
goto bfeaf;
bf234:
$C7834 = $E88d3["item_category"];
goto af6ef;
D6460:
$Edc97 = ["event_id" => $e7e18, "currency" => $c513c["currency"], "line_items" => $E850b];
goto B16a5;
Cf97c:
$c1649 = 0;
goto Fea1f;
E8bf8:
goto C6522;
goto D83fc;
fe95c:
$cda6c = $E88d3["item_category5"];
goto b7f4e;
Bc8a1:
$A9f49 = $c513c["currency"];
goto C414a;
db4d2:
E8de2:
goto D8efa;
Cf476:
if (!$c513c["admitad_retag_status"]) {
goto Eacdf;
}
goto b7681;
D8efa:
$Db528 = ["error" => "false", "page_type" => "product", "datalayer" => $c36f9, "items" => $B1d02, "remarketing" => $a786b, "tiktok" => $b175e, "snapchat" => $b748b, "snapchat_api" => $E1d8b, "fb_data" => $C7054, "twitter_event" => $c1649, "twitter_data" => $cb6e9, "matomo" => $B5b4e, "bing_data" => $d5ede, "pinterest_data" => $Edc97, "related" => $C8d20];
goto Eae35;
cfb12:
if (!$c513c["bing_status"]) {
goto Ebdcf;
}
goto D1dfe;
B01e1:
$C98e9 = number_format((float) $this->currency->format($C98e9, $c513c["alt_currency"], 0, false), 2, , '');
goto D0bb4;
daa71:
Eacdf:
goto c8054;
aac7f:
$B5b4e = false;
goto c22de;
c22de:
$c1aca = [];
goto Bc8a1;
d610e:
$a786b = ["send_to" => "ads", "value" => $bdea5, "items" => $c1aca];
goto d1ee4;
D0708:
$f2a49 = $B4f19["special"];
goto dda56;
e0ee8:
$cb6e9 = false;
goto db36a;
F11b8:
$c513c = $this->config();
goto f0b19;
E131f:
$ecc30 = $this->gtm->tagmangerPmap($C6158, $B49ec, $B4f19["product_id"]);
goto f0431;
B9d51:
$b175e = ["contents" => $C6970, "content_type" => "product", "currency" => $A881c, "value" => $E06bd, "description" => $fda0d];
goto D686a;
d1ee4:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $bdea5, "items" => $B1d02];
goto c4339;
caae7:
Ebdcf:
goto a04cc;
a6cc9:
$cb6e9 = ["value" => $bdea5, "currency" => $c513c["currency"], "contents" => $Ec46e];
goto C1fd1;
De207:
Cf441:
goto Bdfba;
D83fc:
f79fb:
goto B01e1;
A2bb4:
b583c:
goto cfb12;
aaace:
F39b3:
goto B755a;
bae4d:
$Ec46e[] = ["content_id" => $ecc30, "content_type" => "product", "content_name" => $c513c["currency"], "content_price" => $bdea5, "content_group_id" => ''];
goto a6cc9;
B755a:
$f2a49 = 0;
goto F0fca;
c4a59:
D03b6:
goto E4165;
f9908:
$c36f9["cj_page"] = "productDetail";
goto c4a59;
e01ca:
$Ea555 = $b249b = $be627 = $C7834 = $C0d0c = $fe36c = $bf395 = $cda6c = '';
goto f273a;
a04cc:
if (!$c513c["pinterest_status"]) {
goto Af0a9;
}
goto F11dd;
E4165:
if (!($this->check_array($Be248) && count($Be248) > 0)) {
goto E8de2;
}
goto Ed28a;
Eae35:
return $Db528;
goto D74be;
D4256:
if (!$c513c["tiktok_status"]) {
goto C8ad7;
}
goto Bd719;
D0bb4:
$A9f49 = $c513c["alt_currency"];
goto a051d;
B171f:
return false;
goto aaace;
Abee5:
F8cb4:
goto A58d7;
C21e4:
adcb8:
goto F11b8;
B095e:
if (!$c513c["pixel"]) {
goto A65f0;
}
goto c7457;
Fd6a9:
$A881c = $c513c["tiktok_alt_currency"];
goto Ab4f0;
A8425:
cb3bd:
goto d3352;
Fbe91:
$A9f49 = $c513c["currency"];
goto E8bf8;
c4cea:
$C6970 = [];
goto ea97a;
bf1f0:
$cd714 = $B4f19["tax_class_id"];
goto e10b9;
e6ecf:
F4f4a:
goto bae4d;
F7d6c:
if (!$c513c["cj_status"]) {
goto D03b6;
}
goto f9908;
E44d6:
Ac648:
goto A2ee9;
Ca8f3:
$Ea555 = $E88d3["category"];
goto e65a8;
D6436:
foreach ($A356c as $f01e6) {
$fd039 = "//image/" . $f01e6["image"];
F8151:
}
goto bd83c;
F11dd:
$E850b = [];
goto B473e;
Ab8d9:
$a786b = [];
goto d1b0c;
e10b9:
$bdea5 = number_format((float) $bdea5, 2, , '');
goto da6d8;
b3653:
$Db528 = false;
goto C6caa;
A00fe:
$bdea5 = $this->currency->format($this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto bf1f0;
dbf2b:
if ($e9d1b) {
goto Ac648;
}
goto A4879;
da8c7:
$E88d3 = $this->gtm->getProductCatName($e9d1b);
goto eb2c7;
B3891:
$C7054 = ["content_name" => $fda0d, "content_category" => $Ea555, "content_ids" => $ecc30, "content_type" => "product", "value" => $C98e9, "currency" => $A9f49];
goto A5538;
f0431:
$F2554 = $this->gtm->cleanStr($B4f19["manufacturer"]);
goto Aad7d;
B16a5:
Af0a9:
goto D4256;
D5938:
$C7054 = false;
goto e0ee8;
Ab4f0:
Dd62c:
goto c4cea;
D686a:
C8ad7:
goto C6e04;
bd83c:
De9b2:
goto A8425;
Fea1f:
goto F4f4a;
goto E4898;
E9f7c:
$B5b4e = ["sku" => $ecc30, "name" => $fda0d, "category" => $C7834, "price" => $bdea5];
goto A2bb4;
a051d:
C6522:
goto B3891;
eb2c7:
if (!(isset($E88d3) && $E88d3)) {
goto C0772;
}
goto Ca8f3;
E4898:
ad889:
goto ec029;
C6caa:
$b175e = false;
goto b1f5f;
E44c9:
$E06bd = number_format((float) $this->currency->format($f2a49, $c513c["tiktok_alt_currency"], 0, false), 2, , '');
goto Fd6a9;
dbaf3:
$fe36c = $E88d3["item_category3"];
goto A5c37;
A58d7:
$A356c = $this->gtm->getProductImages($this->request->get["product_id"]);
goto D6436;
C1fd1:
bbd18:
goto B095e;
fdae2:
$B1d02[] = ["item_id" => $ecc30, "item_name" => $fda0d, "item_brand" => $F2554, "item_list_name" => $be627, "item_list_id" => $b249b, "item_category" => $C7834, "item_category2" => $C0d0c, "item_category3" => $fe36c, "item_category4" => $bf395, "item_category5" => $cda6c, "item_variant" => '', "affiliation" => '', "discount" => 0, "coupon" => '', "price" => $bdea5, "curency" => $c513c["currency"], "item_image" => $fd039, "item_url" => $d4f2b, "index" => 0, "quantity" => 1];
goto c031e;
A2ee9:
if (!($this->check_array($B4f19) && count($B4f19) < 1)) {
goto adcb8;
}
goto c34f8;
Ed28a:
$C8d20 = $this->getModuleProducts($Be248, "Related Items", "related_items");
goto db4d2;
D74be:
}
public function getProducts($Db528 = array(), $da009 = array())
{
goto a3ac7;
f1f72:
$ed197 = [];
goto d52b9;
E1a98:
$a9f50 = "view_search_results";
goto c63eb;
c437b:
if (isset($c513c["twitter_search"]) && !empty($c513c["twitter_search"])) {
goto f0a5c;
}
goto E67d8;
b75c6:
if (isset($A2d05) && !empty($A2d05)) {
goto Fe30e;
}
goto b0c85;
f5a7e:
Bccdd:
goto F192a;
fce4e:
$adebb = "view_search_result";
goto b7d87;
B868b:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto Cffbc;
}
goto C19d9;
c63eb:
$Cb091 = "searchResult";
goto db11d;
Cdd3e:
Fbc3c:
goto a3377;
B83a9:
abfb7:
goto F82b4;
a1113:
$cb6e9 = [];
goto b74e5;
b74e5:
$Ec46e = [];
goto cea28;
F5449:
$cec2f = 1;
goto Be4db;
c6cf7:
Cffbc:
goto A8119;
ed2b9:
$c36f9 = ["event" => $Cb091, "eventAction" => $Cb091, "eventLabel" => $Cb091, "content_name" => $be5b4, "content_category" => $be5b4, "content_ids" => $ed197, "ga" => $A8ce3, "content_type" => "product", "search" => $A2d05, "category" => $be5b4, "brand" => $Abc3c, "remarketing_ids" => $c1aca, "currency" => $c513c["currency"], "value" => $f5425, "pixel_value" => $f5425, "fb_currency" => $c513c["currency"], "event_id" => $e7e18];
goto d461a;
a571c:
$C7054 = ["content_name" => $be5b4, "content_category" => $be5b4, "content_ids" => $ed197, "content_type" => "product"];
goto B868b;
bf357:
Cf53d:
goto acb46;
b95dc:
if (!$A2d05) {
goto be8e6;
}
goto Df860;
b679a:
$c36f9["cj_page"] = "category";
goto E1bf8;
ea633:
Eef24:
goto f8767;
E5b91:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto D5a4a;
}
goto A66d2;
A66d2:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto fd910;
cc55f:
if (!$c513c["pinterest_status"]) {
goto da2a6;
}
goto b95dc;
ceaec:
return false;
goto Bf22a;
dd4a6:
$F1c28 = (int) array_pop($B6bc8);
goto F1827;
B6d5f:
goto E1fe7;
goto f317b;
Afd5a:
$a786b = [];
goto B3274;
C9aff:
$cb6e9 = ["search_string" => $A2d05, "value" => $f5425, "currency" => $c513c["currency"], "contents" => $Ec46e];
goto B83a9;
E9ea4:
$B5b4e = '';
goto f1f72;
F72eb:
Cdf5f:
goto b696d;
C947d:
da2a6:
goto c3e0a;
A7fd9:
$B6c9d = "ViewCategory";
goto Fa9df;
a3377:
$d5ede = ["ecomm_category" => $F1c28, "ecomm_prodid" => $E8e9c, "ecomm_pagetype" => "category"];
goto Ed164;
fd910:
D5a4a:
goto e5df7;
e0eb5:
$C7054 = ["content_name" => $be5b4, "content_category" => $be5b4, "content_ids" => $ed197, "content_type" => "product", "search_string" => $A2d05];
goto E5b91;
Aad98:
$c36f9 = [];
goto b0b8b;
c6e67:
$E850b = [];
goto F9226;
A46d7:
$A2d05 = $da009["search"];
goto e4a9d;
c1af6:
$Db528 = ["products" => $f2de0, "error" => "false", "page_type" => "listing", "category_id" => $F1c28, "category_name" => $be5b4, "datalayer" => $c36f9, "fb_data" => $C7054, "matomo" => $B5b4e, "snapchat" => $b748b, "snapchat_api" => $E1d8b, "tiktok" => $b175e, "items" => $B1d02, "remarketing" => $a786b, "twitter_event" => $c1649, "twitter_data" => $cb6e9, "bing_data" => $d5ede, "pinterest_data" => $Edc97];
goto E7f96;
Eda9b:
$C6970 = [];
goto Fab47;
b5c5b:
$c1aca = [];
goto Cea70;
E67d8:
$c1649 = 0;
goto B6d5f;
e4a9d:
$Abc3c = $da009["brand"];
goto a6ce7;
c3e0a:
$f5425 = number_format((float) $C7e06, 2, , '');
goto C8415;
a6439:
$E447f = $da009["list_id"];
goto A46d7;
d0195:
return false;
goto F9dd8;
c1cd1:
A537a:
goto C1089;
F2122:
$B5b4e = $be5b4;
goto C220f;
Fac76:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto E8476;
}
goto dcd7e;
Df860:
$Edc97 = ["event_id" => "1001", "search_query" => $A2d05, "currency" => $c513c["currency"], "line_items" => $E850b];
goto E6b8b;
C8415:
if (!(isset($c513c["twitter_status"]) & $c513c["twitter_status"] && !empty($A2d05))) {
goto Cdf5f;
}
goto c437b;
F9226:
if ($this->check_array($Db528)) {
goto B300b;
}
goto d0195;
E1bf8:
B9906:
goto Cb16d;
C1089:
$B6bc8 = explode("_", (string) $this->request->get["path"]);
goto dd4a6;
c615a:
$adebb = "view_item_list";
goto A7fd9;
fe9dd:
$A881c = $c513c["currency"];
goto Fac76;
Bec4b:
$C7e06 = 0;
goto C5e2d;
b0b8b:
$C7054 = false;
goto Afd5a;
Fd967:
goto Bccdd;
goto Ca4e3;
Acd12:
$c1649 = $c513c["twitter_search"];
goto D9d74;
abf25:
goto Ea8f4;
goto ea633;
C154a:
Fe187:
goto Cefc1;
a3299:
E8476:
goto D0921;
ca86b:
$f2de0 = [];
goto a93bb;
d461a:
if (!$c513c["cj_status"]) {
goto B9906;
}
goto b679a;
e2ba7:
goto A32eb;
goto Cdd3e;
Fadb3:
$D27f1 = 0;
goto Bec4b;
Bed24:
if (!($c513c["matomo_status"] && !$A2d05)) {
goto Bf17f;
}
goto F2122;
C26d9:
if (!$A2d05) {
goto E0416;
}
goto f8a21;
b7d87:
$B6c9d = "viewSearch";
goto E1a98;
afabf:
$Edc97 = false;
goto c6e67;
f8767:
$e7e18 = "2-" . $this->eventid();
goto fce4e;
Fa9df:
$a9f50 = "view_item_list";
goto c3484;
Ed164:
A32eb:
goto e7b50;
e69b5:
if (!$A2d05) {
goto Fbc3c;
}
goto B9b09;
D3b8e:
$b748b["description"] = "View Search Results";
goto C154a;
F63b8:
$b748b["search_string"] = $A2d05;
goto D3b8e;
e5df7:
$D9cc7 = "Search";
goto F33c9;
e19bb:
if (!(isset($c513c["twitter_status"]) & $c513c["twitter_status"] && !empty($A2d05))) {
goto abfb7;
}
goto C9aff;
F8fb5:
foreach ($Db528 as $f5425) {
goto a353f;
Bdde7:
cca31:
goto feae6;
Bc599:
E05a6:
goto A1972;
C4ecd:
C1cd8:
goto A2431;
cedae:
$f5425["item_list_name"] = $E88d3["item_list_name"];
goto ec108;
E7b71:
if ($F1c28) {
goto F2899;
}
goto B8e4a;
F96ce:
$f5425["item_list_name"] = $E447f;
goto d9925;
bfcef:
f6954:
goto B3810;
d7a24:
$f5425["item_category3"] = $E88d3["item_category3"];
goto C2008;
D84f1:
$E06bd = $this->currency->format($f5425["item_price"], $c513c["tiktok_alt_currency"], 0, false);
goto a9a27;
Bfbd9:
$f570e = $this->currency->format($this->tax->calculate($f2a49, $f5425["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto B47b2;
b9850:
$ad240[] = $E88d3;
goto F3d8e;
C2008:
$f5425["item_category4"] = $E88d3["item_category4"];
goto e128a;
c860d:
$f5425["item_category"] = '';
goto a6089;
a4043:
goto dd682;
goto e46dc;
c97f0:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto bfa1d;
}
goto D84f1;
feae6:
a3d5d:
goto babca;
A1972:
if (empty($E447f)) {
goto cca31;
}
goto F24ea;
Ce15c:
$f5425["brand"] = isset($E4ccf["manufacturer"]) ? $this->cleanStr($E4ccf["manufacturer"]) : $this->getProductBrandName($e9d1b);
goto B4d79;
Ad7d9:
$F5508[] = ["id" => $f5425["pid"], "quantity" => 1, "item_price" => $f5425["pprice"]];
goto fdc44;
B1d96:
if (!($this->customer->isLogged() || !$this->config->get("config_customer_price"))) {
goto b5459;
}
goto e5cba;
b5630:
if (empty($be5b4)) {
goto E05a6;
}
goto Fa2f6;
E9184:
$ed197[] = $f5425["pid"];
goto eda1d;
c596b:
$E06bd = $this->currency->format($f5425["item_price"], $this->session->data["currency"], 0, false);
goto c97f0;
e8de1:
cc20a:
goto Bfbd9;
Fa895:
$E850b[] = ["product_name" => $f5425["title"], "product_id" => $f5425["pid"], "product_category" => $f5425["item_list_name"], "product_price" => $f5425["pprice"], "product_brand" => $f5425["brand"]];
goto d1206;
cad1c:
$e5739 = $cec2f;
goto B1afd;
A9d32:
Eab2c:
goto Fa895;
E8a58:
goto a3d5d;
goto bea25;
a9a27:
bfa1d:
goto b543f;
a0662:
$f5425["item_price"] = $f2a49;
goto edcf5;
d9925:
$f5425["category_name"] = $be5b4;
goto c860d;
Fc9ee:
$f5425["item_list_id"] = $be5b4;
goto F96ce;
F4fed:
if (!(isset($E4ccf["special"]) && (float) $E4ccf["special"])) {
goto cc20a;
}
goto Bf79c;
B1afd:
$cec2f++;
goto c15b2;
C9cec:
$f5425["item_category3"] = '';
goto C0b1e;
d1eb4:
$f5425["item_category"] = $E88d3["item_category"];
goto dedb9;
a353f:
if (!(!isset($f5425["product_id"]) || !isset($f5425["price"]))) {
goto E7132;
}
goto a4043;
b543f:
$C6970[] = ["content_category" => $f5425["item_list_name"], "content_name" => $f5425["title"], "price" => number_format((float) $E06bd, 2, , ''), "content_id" => $f5425["pid"], "quantity" => 1, "brand" => $f5425["brand"]];
goto Ac201;
F24ea:
$f5425["item_list_id"] = $E447f;
goto Bdde7;
e128a:
$f5425["item_category5"] = $E88d3["item_category5"];
goto b5630;
bf3b8:
goto dd682;
goto a9003;
ef0ab:
$f5425["gtin"] = isset($E4ccf["ean"]) ? $E4ccf["ean"] : '';
goto A9550;
edcf5:
$f5425["pprice"] = number_format((float) $f570e, 2, , '');
goto A9338;
e46dc:
E7132:
goto f3f87;
a6089:
$f5425["item_category2"] = '';
goto C9cec;
ad088:
$E4ccf = $this->model_extension_module_dmt->getProductInfo($e9d1b);
goto E7b71;
A2431:
$f5425["brand"] = $this->cleanStr($Abc3c);
goto e5e32;
D4921:
$f5425["title"] = $this->tagmangerPtitle($f5425["name"], $f5425["brand"], $f5425["model"], $e9d1b);
goto e3a38;
fdc44:
if (!$c513c["tiktok_status"]) {
goto Eab2c;
}
goto c596b;
c15b2:
$D27f1++;
goto C0716;
C0539:
if (!($cec2f > $be8e9)) {
goto Afa69;
}
goto bf3b8;
fe4bb:
$f5425["item_list_id"] = $E88d3["item_list_id"];
goto cedae;
C0716:
dd682:
goto C70d6;
e3a38:
$f5425["tax_class_id"] = $E4ccf["tax_class_id"];
goto B1d96;
f7043:
$e9d1b = $f5425["product_id"];
goto ad088;
e5e32:
ca2e3:
goto D4921;
B8e4a:
$E88d3 = $this->getProductCatName($e9d1b);
goto Ddd3c;
eda1d:
$c1aca[] = ["id" => (string) $f5425["pid"], "google_business_vertical" => "retail"];
goto b2332;
A9338:
$f2de0[] = $f5425;
goto C0539;
Bf79c:
$f2a49 = isset($E4ccf["special"]) ? $E4ccf["special"] : 0;
goto e8de1;
F3d8e:
$B1d02[] = ["item_id" => $f5425["pid"], "item_name" => $f5425["title"], "item_brand" => $f5425["brand"], "item_list_name" => $f5425["item_list_name"], "item_list_id" => $f5425["item_list_id"], "item_category" => $f5425["item_category"], "item_category2" => $f5425["item_category2"], "item_category3" => $f5425["item_category3"], "item_category4" => $f5425["item_category4"], "item_category5" => $f5425["item_category5"], "item_variant" => '', "affiliation" => '', "discount" => 0, "coupon" => '', "price" => $f5425["pprice"], "curency" => $c513c["currency"], "index" => $D27f1, "quantity" => 1];
goto d044f;
fbf54:
$f2a49 = 0;
goto f7043;
E31aa:
$Ff056 = 0.0;
goto C4395;
B3810:
$f5425["sku"] = isset($E4ccf["sku"]) ? $E4ccf["sku"] : $e9d1b;
goto ef0ab;
A5a67:
D14c4:
goto a0662;
Ac201:
$ce100 += $E06bd;
goto A9d32;
b2332:
$C7e06 += $f570e;
goto cad1c;
e5cba:
$f2a49 = isset($E4ccf["price"]) ? $E4ccf["price"] : 0;
goto a1398;
B47b2:
if ($this->check_array($E88d3)) {
goto Fb1e3;
}
goto Fc9ee;
A4e03:
$E88d3 = $this->getProductCatName($e9d1b, $F1c28);
goto bfcef;
d1206:
$E8e9c[] = $f5425["pid"];
goto E9184;
A4b8a:
F2899:
goto A4e03;
ec108:
$f5425["category_name"] = $E88d3["category"];
goto d1eb4;
bea25:
Fb1e3:
goto fe4bb;
a1398:
b5459:
goto F4fed;
dedb9:
$f5425["item_category2"] = $E88d3["item_category2"];
goto d7a24;
babca:
if (!(!empty($Ec703) && $Ec703 == "product/search")) {
goto D14c4;
}
goto C3234;
E64b2:
if ($Abc3c) {
goto C1cd8;
}
goto Ce15c;
B4d79:
goto ca2e3;
goto C4ecd;
C4395:
$B89c0 = 0;
goto fbf54;
Fa2f6:
$f5425["item_list_name"] = $be5b4;
goto Bc599;
C8c77:
$f5425["item_list_name"] = $be5b4;
goto A5a67;
f3f87:
$f570e = 0.0;
goto E31aa;
C0b1e:
$f5425["item_category4"] = '';
goto fc401;
fc401:
$f5425["item_category5"] = '';
goto E8a58;
d044f:
$Ec46e[] = ["content_id" => $f5425["pid"], "content_type" => "product", "content_name" => $f5425["title"], "content_price" => $f5425["pprice"]];
goto Ad7d9;
C3234:
$f5425["item_list_id"] = $E447f;
goto C8c77;
A9550:
$f5425["model"] = isset($E4ccf["model"]) ? $E4ccf["model"] : $e9d1b;
goto a4524;
Ddd3c:
goto f6954;
goto A4b8a;
a4524:
$f5425["pid"] = $this->tagmangerPmap($f5425["model"], $f5425["sku"], $e9d1b);
goto E64b2;
a9003:
Afa69:
goto b9850;
C70d6:
}
goto fdd71;
Cea70:
$e5739 = 0;
goto Aad98;
c3484:
$Cb091 = "listingView";
goto abf25;
B9b09:
$d5ede = ["ecomm_query" => $A2d05, "ecomm_prodid" => $E8e9c, "ecomm_pagetype" => "searchresults"];
goto e2ba7;
E7405:
if (!($this->check_array($Db528) && count($Db528) < 1)) {
goto E88be;
}
goto ceaec;
E7f96:
return $Db528;
goto Dc339;
eca93:
$F5508 = [];
goto b443d;
Bf22a:
E88be:
goto Dd49d;
e1d7a:
$F1c28 = 0;
goto Aef0c;
Dd49d:
if (isset($this->request->get["path"])) {
goto A537a;
}
goto e1d7a;
f8a21:
$b175e["query"] = $A2d05;
goto F3c1c;
C058c:
$be5b4 = $da009["list_name"];
goto a6439;
f317b:
f0a5c:
goto Acd12;
b0c85:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "items" => $B1d02];
goto Fd967;
Be4db:
$be8e9 = 20;
goto a1113;
F82b4:
if (!$c513c["tiktok_status"]) {
goto Cf53d;
}
goto fe9dd;
ba0d0:
$b748b = ["price" => $f5425, "currency" => $c513c["currency"], "item_ids" => $E8e9c, "number_items" => $e5739, "item_category" => $be5b4, "description" => "Product Category View"];
goto e14e5;
Dcdef:
$a786b = [];
goto Eda9b;
B3e2c:
$Edc97 = ["event_id" => "1001", "currency" => $c513c["currency"], "line_items" => $E850b];
goto aae5e;
acb46:
if (!$c513c["snap_pixel_status"]) {
goto ad412;
}
goto ba0d0;
A26d6:
$c513c = $this->config();
goto F8fb5;
Aef0c:
goto c9d1e;
goto c1cd1;
Bffc8:
$E1d8b["search_string"] = $A2d05;
goto F63b8;
a42ac:
if (!(isset($A2d05) && !empty($A2d05))) {
goto Fe187;
}
goto Bffc8;
fdd71:
A8d03:
goto a6b78;
Af849:
goto C876e;
goto F9c9f;
E6b8b:
goto E0d7b;
goto B7471;
a93bb:
$e5d23 = [];
goto Fadb3;
B3274:
$d5ede = false;
goto afabf;
a3ac7:
$this->load->model("extension/module/dmt");
goto C058c;
D0921:
$b175e = ["contents" => $C6970, "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $ce100, 2, , ''), "description" => $be5b4];
goto C26d9;
F9dd8:
B300b:
goto E7405;
aae5e:
E0d7b:
goto C947d;
F1827:
c9d1e:
goto A26d6;
A3ef0:
F5da8:
goto Bed24;
b696d:
if ($A2d05) {
goto Eef24;
}
goto b8926;
fd878:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "search_term" => $A2d05, "term" => $A2d05, "items" => $B1d02];
goto f5a7e;
D9d74:
E1fe7:
goto F72eb;
e7b50:
Eaa85:
goto cc55f;
Ae85d:
$ce100 = 0;
goto a2b3a;
Abfaa:
$E1d8b = [];
goto eca93;
a6ce7:
$F1c28 = $da009["category"];
goto ca86b;
d52b9:
$B1d02 = [];
goto db07e;
F33c9:
C876e:
goto A3ef0;
Cefc1:
ad412:
goto b75c6;
a2b3a:
$b748b = [];
goto Abfaa;
b8926:
$e7e18 = "9-" . $this->eventid();
goto c615a;
b443d:
$E8e9c = [];
goto b5c5b;
cea28:
$c1649 = 0;
goto E9ea4;
dcd7e:
$A881c = $c513c["tiktok_alt_currency"];
goto a3299;
F3c1c:
E0416:
goto bf357;
Fab47:
$b175e = [];
goto Ae85d;
F192a:
$a786b = ["send_to" => "ads", "value" => $f5425, "items" => $c1aca];
goto ed2b9;
Ca4e3:
Fe30e:
goto fd878;
Cb16d:
if (!$c513c["pixel"]) {
goto F5da8;
}
goto cebad;
F9c9f:
E3d31:
goto e0eb5;
C5e2d:
$C98e9 = 0;
goto F5449;
e14e5:
$E1d8b = ["content_category" => $be5b4, "currency" => $c513c["currency"], "content_ids" => $ed197, "contents" => $F5508, "value" => $f5425];
goto a42ac;
C19d9:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto c6cf7;
A8119:
$D9cc7 = "ViewCategory";
goto Af849;
C220f:
Bf17f:
goto c1af6;
cebad:
if ($A2d05) {
goto E3d31;
}
goto a571c;
db07e:
$A8ce3 = [];
goto Dcdef;
B7471:
be8e6:
goto B3e2c;
db11d:
Ea8f4:
goto e19bb;
a6b78:
if (!$c513c["bing_status"]) {
goto Eaa85;
}
goto e69b5;
Dc339:
}
public function prepareAddtoCart($e9d1b, $B4f19, $Ea153, $a17f7, $f2bcc, $C54b0 = 0)
{
goto E63c2;
A8052:
$C98e9 = number_format((float) $c2fce, 2, , '');
goto ddf53;
A4d24:
$de779 = array_keys($a17f7);
goto B79d6;
d130a:
$b726f = $b726f / $Ddb25;
goto Cde22;
D9370:
ac64b:
goto d11b3;
bd512:
$e7e18 = "5-" . $this->eventid();
goto eebd7;
d91aa:
$Ccad7 = "Snapchat";
goto F4366;
d390a:
fd489:
goto bfdc3;
f7a25:
$Adddc = $this->cart->getTotal();
goto Db090;
d11b3:
$Ec46e = ["content_id" => (string) $ecc30, "content_type" => "product", "content_name" => $fda0d, "num_items" => $Ea153, "content_price" => $f2a49, "content_group_id" => ''];
goto ac4fc;
Cd113:
$Ec46e = [];
goto ecf78;
b554b:
d77ad:
goto ca53c;
C6d4e:
$F2554 = $this->getProductBrandName($B4f19["product_id"]);
goto d9169;
caf52:
$Ea555 = $E88d3["category"];
goto E836d;
d65e2:
Bac8c:
goto c9174;
d8f25:
$fda0d = $this->tagmangerPtitle($B4f19["name"], $F2554, $B4f19["model"], $B4f19["product_id"]);
goto B0cff;
bfdc3:
if (!$c513c["snap_pixel_status"]) {
goto e3054;
}
goto B018f;
a9513:
$E06bd = number_format((float) $this->currency->format($f2a49, $this->session->data["currency"], 0, false), 2, , '');
goto B46aa;
D5f9a:
foreach ($a17f7[$de779[$D27f1]] as $Ac077) {
$a6669[] = ["option_id" => $de779[$D27f1], "option_values" => $Ac077];
a5ca8:
}
goto C1f19;
B1bcb:
if (!$c513c["fb_api"]) {
goto d9d01;
}
goto e24e0;
cb10c:
$C7834 = $E88d3["item_category"];
goto E48ae;
ecf78:
$E02ed = [];
goto Afd41;
B30f7:
$A881c = $c513c["currency"];
goto A415c;
df3b9:
$Af6d1 = ["email" => $c513c["email"], "event" => "add_to_cart", "cuid" => $this->getCuid(), "properties" => ["FIRSTNAME" => $c513c["fn"], "LASTNAME" => $c513c["ln"]], "eventdata" => ["id" => $this->GUID(), "data" => []]];
goto a7ca4;
B46d6:
$Af6d1["eventdata"]["data"]["currency"] = $c513c["currency"];
goto dd18e;
B63c4:
$Aefb2 = $aaedc["pixel_user_data"];
goto a0a41;
A23db:
E2ddd:
goto Fc495;
a59bd:
if (!(isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"])) {
goto C4b12;
}
goto db438;
cc271:
$Ff056 = 0;
goto D1988;
f740c:
$f2a49 = number_format((float) $f2a49, 2, , '');
goto f4f6f;
A415c:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto Eb406;
}
goto F6e30;
E48ae:
$C0d0c = $E88d3["item_category2"];
goto D3035;
f7ec2:
ea6f3:
goto c9eb0;
Ba958:
Bf92c:
goto b635b;
C4ba6:
$cb6e9 = [];
goto Cd113;
C925b:
$Ddb25 = $c513c["tax"];
goto Ca491;
cbf6c:
if (!($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"])) {
goto e14ac;
}
goto cde1b;
A5f3d:
Ef2d9:
goto e069e;
Eb0af:
if (!$c513c["pinterest_status"]) {
goto F0c62;
}
goto c49f1;
B268a:
$f2a49 = $B4f19["price"];
goto Fc077;
f08be:
$ce100 = $this->currency->format($ce100, $c513c["tiktok_alt_currency"], 0, false);
goto a19b3;
af384:
$this->Log("API Post Results - ADD TO CART " . $d787b);
goto Ae0c9;
B0511:
$c6d1a = [];
goto d24fd;
f6e57:
$E850b[] = ["product_name" => $fda0d, "product_id" => $ecc30, "product_category" => $Ea555, "product_price" => $f2a49, "product_brand" => $F2554, "product_quantity" => $Ea153, "product_variant" => $a78f5];
goto B48c3;
A4189:
$Ae039 = [];
goto C0d35;
D9314:
$c97c7 = 0;
goto Afca8;
B73fd:
Ac0e7:
goto B262f;
Db6c9:
$d5ede = ["ecomm_prodid" => $ecc30, "ecomm_pagetype" => "product", "ecomm_totalvalue" => $f2a49, "revenue_value" => $f2a49, "currency" => $c513c["currency"], "items" => $Ae039];
goto c4e15;
C6413:
c221e:
goto Eda53;
C0d35:
$Ae039[] = ["id" => $ecc30, "quantity" => $Ea153, "price" => $f2a49];
goto Db6c9;
e24e0:
$B19ca = $C7054;
goto dc66f;
Fa3a2:
$D9ecc = $Ccad7 . " / Result: error occourced data not posted";
goto E9685;
a6e40:
$f5425 = 0;
goto D9314;
Ffd20:
$b175e = ["contents" => $C6970, "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $ce100, 2, , ''), "description" => $fda0d];
goto Fd972;
Fc495:
Bd9c5:
goto c7dac;
D3035:
$fe36c = $E88d3["item_category3"];
goto e5e7f;
Cf650:
$D9ecc = $Ccad7 . " / Result: error occourced data not posted";
goto Ef144;
B71e0:
$D9ecc = $Ccad7 . " / Result: Success data sent";
goto E0979;
d7d47:
b8bea:
goto af384;
D9762:
F542d:
goto d390a;
D1679:
e3486:
goto a9ec3;
e99fb:
$B4f19["special"] = $B4f19["special"] + $c97c7;
goto B787d;
dd18e:
$b6280 = [];
goto b5282;
cf864:
F0c62:
goto B9779;
Efd56:
if (!isset($E88d3)) {
goto D63ee;
}
goto caf52;
ff378:
D63ee:
goto d8f25;
Ae0c9:
Ca413:
goto Ac29d;
F5ead:
$a6669[] = ["option_id" => $de779[$D27f1], "option_values" => $a17f7[$de779[$D27f1]]];
goto f5a3b;
b635b:
$c6d1a[$Ccad7] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $D9ecc];
goto a9f2c;
E6199:
D0d33:
goto Af73b;
Af54d:
$C7054 = ["contents" => $E02ed, "content_type" => "product", "value" => $C98e9, "currency" => $A9f49, "product_catalog_id" => $c513c["fb_catalog_id"], "quantity" => $Ea153, "content_ids" => $ecc30];
goto Fcc41;
F640e:
fcbe7:
goto C1865;
e0355:
$f2de0 = $this->tiktokAPI($c513c, "AddToCart", $b175e, $F9b77);
goto de216;
e1ce1:
$Edc97 = false;
goto D8813;
a58bb:
$Bbec2 = ["value" => $f5425, "currency" => $c513c["currency"], "pixel_value" => $C98e9, "fcurrency" => $A9f49, "ga" => $A8ce3, "event_id" => $e7e18, "name" => $fda0d, "id" => $ecc30, "price" => $f5425, "brand" => $F2554, "category" => isset($Ea555) ? $Ea555 : '', "quantity" => $Ea153, "variant" => $a78f5];
goto fe9f6;
dc66f:
$f2de0 = $this->facebookAPI($c513c, "AddToCart", $B19ca, $Aefb2, $e7e18);
goto Df8a0;
b2f01:
$E1d8b = ["content_category" => isset($be627) ? $be627 : '', "currency" => $c513c["currency"], "content_ids" => $ecc30, "value" => $f2a49, "brands" => $F2554, "num_items" => $Ea153];
goto bf3d8;
b9a17:
$Af6d1["eventdata"]["data"]["tax"] = number_format((float) $F388e, 2, , '');
goto Fed11;
Be268:
if (!(isset($c513c["twitter_status"]) && $c513c["twitter_status"])) {
goto E87bb;
}
goto F3120;
ede86:
$B1d02[] = ["item_id" => $ecc30, "item_name" => $fda0d, "item_brand" => $F2554, "item_list_name" => isset($be627) ? $be627 : '', "item_list_id" => isset($b249b) ? $b249b : '', "item_category" => isset($C7834) ? $C7834 : '', "item_category2" => isset($C0d0c) ? $C0d0c : '', "item_category3" => isset($fe36c) ? $fe36c : '', "item_category4" => isset($bf395) ? $bf395 : '', "item_category5" => isset($cda6c) ? $cda6c : '', "item_variant" => $a78f5, "affiliation" => '', "discount" => 0, "coupon" => '', "price" => $f2a49, "currency" => $c513c["currency"], "quantity" => $Ea153];
goto Da93a;
d24fd:
$d5ede = false;
goto e1ce1;
B9173:
$A9f49 = $c513c["alt_currency"];
goto dd5ea;
c770c:
if (!$this->checkapiStatus("tiktok")) {
goto F542d;
}
goto e0355;
d3bf6:
$C6970[] = ["content_category" => isset($be627) ? $be627 : '', "content_name" => $fda0d, "price" => $E06bd, "content_id" => $ecc30, "quantity" => $Ea153, "brand" => $F2554, "currency" => $A881c, "value" => number_format((float) $ce100, 2, , ''), "description" => $fda0d, "content_type" => "product"];
goto Ffd20;
E9685:
goto Bac8c;
goto Adf05;
Fc077:
if (!(float) $B4f19["special"]) {
goto Ef2d9;
}
goto Fe819;
C9a44:
if (!$cd974) {
goto B0b3c;
}
goto d91aa;
B46aa:
$ce100 = $f2a49 * $Ea153;
goto d5375;
F21b9:
$A9f49 = $c513c["currency"];
goto cbf6c;
e5256:
foreach ($f2bcc as $fee0a) {
goto d26df;
d26df:
foreach ($a6669 as $a2e15) {
goto d2b69;
bbacd:
c0cd3:
goto Fba75;
a3071:
D2eec:
goto ceb54;
C3ee3:
if (substr(VERSION, 0, 1) == "1") {
goto b07a8;
}
goto E1a5f;
ceb54:
foreach ($b2cd4 as $f5425) {
goto De681;
Bc80a:
Ce457:
goto e5d59;
De681:
if (!($a2e15["option_values"] == $f5425["product_option_value_id"])) {
goto Ce457;
}
goto a5e1b;
a5e1b:
$a78f5 .= $f5425["name"];
goto Bc80a;
e5d59:
C28a4:
goto c9218;
c9218:
}
goto bbacd;
eb733:
goto C2ed8;
goto a3071;
f36ed:
if (!(isset($b2cd4) && !empty($b2cd4))) {
goto F6856;
}
goto F6924;
Fba75:
C2ed8:
goto db8b0;
eeeef:
F59b9:
goto a77d4;
E8cbd:
$a78f5 .= ", ";
goto eeeef;
bd5ab:
c2434:
goto a08f5;
E1a5f:
$b2cd4 = isset($fee0a["product_option_value"]) ? $fee0a["product_option_value"] : false;
goto a5a44;
db8b0:
e6a77:
goto C7af4;
a08f5:
if (isset($b2cd4) && $this->check_array($b2cd4)) {
goto D2eec;
}
goto f36ed;
d1da8:
b07a8:
goto Bbe63;
a5a44:
goto c2434;
goto d1da8;
C7af4:
F4301:
goto df57a;
Bbe63:
$b2cd4 = isset($fee0a["option_value"]) ? $fee0a["option_value"] : false;
goto bd5ab;
a77d4:
$cec2f++;
goto C3ee3;
Bd5b5:
F6856:
goto eb733;
ce5b8:
if (!($cec2f > 0)) {
goto F59b9;
}
goto E8cbd;
d2b69:
if (!($fee0a["product_option_id"] == $a2e15["option_id"])) {
goto e6a77;
}
goto ce5b8;
F6924:
$a78f5 .= $b2cd4;
goto Bd5b5;
df57a:
}
goto Dc7d4;
E253f:
b821a:
goto D9182;
Dc7d4:
fcd23:
goto E253f;
D9182:
}
goto E6199;
Fed11:
$Af6d1["eventdata"]["data"]["discount"] = 0;
goto Acbfc;
A6dfb:
$c1649 = 0;
goto A4fea;
F6e30:
$ce100 = $f2a49 * $Ea153;
goto f08be;
f021a:
$Af6d1["eventdata"]["data"]["shipping"] = 0;
goto Caef5;
C7f30:
$C85f9 = [];
goto Fc15b;
ab80e:
$C6970 = [];
goto dfb31;
C1f19:
F1c9c:
goto F640e;
c4d47:
$D27f1 = 0;
goto B73fd;
ff75b:
$ecc30 = $this->tagmangerPmap($B4f19["model"], $B4f19["sku"], $B4f19["product_id"]);
goto C6d4e;
bf3d8:
if (!(isset($aaedc["snapchat_user_data"]) && $aaedc)) {
goto f99da;
}
goto E9571;
c8ae0:
$D9ecc = $Ccad7 . " / Result: error occourced data not posted";
goto E2020;
fe9f6:
if (!$c513c["pixel"]) {
goto c221e;
}
goto A4493;
a9ec3:
e3054:
goto Be268;
Df34e:
$b748b = [];
goto b1ff8;
Ac29d:
a22f9:
goto F1f6c;
c5065:
$f2a49 = $this->currency->format($this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto Bfa5a;
b628d:
b727c:
goto b99e9;
c8be6:
$d787b = '';
goto A8af0;
a11ef:
$d4bfa = $c513c["override_tax"];
goto C925b;
cde1b:
$c2fce = $this->currency->format($c922b, $c513c["alt_currency"], 0, false);
goto B9173;
Bbba8:
$F9b77 = $aaedc["tiktok_user_data"];
goto bf93f;
E0979:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto Edda0;
}
goto c8ae0;
be1d8:
db692:
goto e89cf;
ddf53:
if (isset($B4f19["sku"])) {
goto ef016;
}
goto Fe764;
a7ca4:
$b726f = $this->cart->getSubTotal();
goto f7a25;
Fd972:
if (!(isset($aaedc["tiktok_user_data"]) && $aaedc)) {
goto db6f0;
}
goto Bbba8;
C2aa5:
$cda6c = $E88d3["item_category5"];
goto ff378;
f2b0c:
$C7054 = false;
goto a11ef;
F3120:
if (isset($c513c["twitter_addcart"]) && !empty($c513c["twitter_addcart"])) {
goto d77ad;
}
goto A6dfb;
c49f1:
$E850b = [];
goto f6e57;
B79d6:
$a99b8 = count($a17f7);
goto c4d47;
B48c3:
$Edc97 = ["event_id" => $e7e18, "value" => $f2a49, "order_quantity" => $Ea153, "currency" => $c513c["currency"], "line_items" => $E850b];
goto cf864;
b1ff8:
$E1d8b = [];
goto C7f30;
F8692:
$Af6d1["eventdata"]["data"]["products"] = $b6280;
goto f61fb;
B1090:
if (!($c513c["snap_pixel_api"] && !empty($c513c["snap_pixel_token"]) && isset($E1d8b))) {
goto e3486;
}
goto ff34d;
B0cff:
$aaedc = $this->formatUserdata($c513c);
goto C9957;
bdc07:
a63e1:
goto C7e72;
E63c2:
$c513c = $this->config();
goto B9b71;
A8e46:
C4b12:
goto c5065;
dba3b:
$D27f1++;
goto C145a;
e069e:
$f5425 = $f2a49 * $Ea153;
goto ca9d5;
e5e7f:
$bf395 = $E88d3["item_category4"];
goto C2aa5;
fc451:
E87bb:
goto ede86;
f5a3b:
goto fcbe7;
goto e1fd9;
b3550:
foreach ($c6d1a as $F54aa => $f5425) {
$d787b .= "\xa" . strtoupper($F54aa) . " ----> " . $f5425["post_result"] . "\xa" . $f5425["message"] . "\xa";
E7239:
}
goto d7d47;
B262f:
if (!($D27f1 < $a99b8)) {
goto ea6f3;
}
goto e8366;
Af73b:
a8d57:
goto B268a;
eabd4:
$cd974 = true;
goto cea4e;
C9cd3:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto d4342;
}
goto Fa3a2;
eebd7:
$a78f5 = '';
goto f2b0c;
Ad37d:
return $Ed7a1;
goto Ac14c;
ac4fc:
$cb6e9 = ["value" => $f5425, "currency" => $c513c["currency"], "contents" => $Ec46e];
goto fc451;
e89cf:
if (!$cd974) {
goto a22f9;
}
goto c8be6;
a0a41:
D8d25:
goto B1bcb;
ca9d5:
$c922b = $this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax"));
goto a59bd;
B787d:
$a6669 = [];
goto A4d24;
Acbfc:
$Af6d1["eventdata"]["data"]["total"] = number_format((float) $Adddc, 2, , '');
goto D431f;
B018f:
$b748b = ["client_deduplication_id" => $e7e18, "event_id" => $e7e18, "price" => $f2a49, "currency" => $c513c["currency"], "item_ids" => $ecc30, "number_items" => $Ea153, "brands" => $F2554, "item_category" => isset($be627) ? $be627 : '', "description" => "Item Added to Cart"];
goto b2f01;
c9174:
$c6d1a[$Ccad7] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $D9ecc];
goto f83ba;
f61fb:
$this->sendinbluePost($Af6d1, "trackEvent");
goto be1d8;
A4493:
$E02ed[] = ["id" => $ecc30, "quantity" => $Ea153];
goto Af54d;
Db090:
$F388e = $Adddc - $b726f;
goto ec9a5;
a9f2c:
bf8ca:
goto D9762;
Da93a:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f2a49, "items" => $B1d02];
goto a58bb;
b5282:
foreach ($B1d02 as $E4ccf) {
$b6280[] = ["id" => $E4ccf["item_id"], "name" => $E4ccf["item_name"], "quantity" => $E4ccf["quantity"], "price" => $E4ccf["price"], "url" => str_replace("&", "&", $this->url->link("product/product", "product_id=" . $e9d1b))];
d24e0:
}
goto Baa2d;
cea4e:
F141d:
goto a2d5b;
f3655:
ef016:
goto ff75b;
ec9a5:
if (!$d4bfa) {
goto b727c;
}
goto d130a;
D431f:
$Af6d1["eventdata"]["data"]["url"] = str_replace("&", "&", $this->url->link("checkout/checkout", '', "SSL"));
goto B46d6;
Df8a0:
if (!$cd974) {
goto a63e1;
}
goto b8379;
a2d5b:
$c513c["event_id"] = $e7e18;
goto Ef7e7;
Fe764:
$B4f19["sku"] = $B4f19["model"];
goto f3655;
b8379:
$Ccad7 = "Meta Facebook";
goto b2c0f;
A8af0:
if (!(isset($c6d1a) && $this->check_array($c6d1a))) {
goto Ca413;
}
goto b3550;
Adf05:
d4342:
goto d65e2;
Fcc41:
if (!(isset($aaedc["pixel_user_data"]) && $aaedc)) {
goto D8d25;
}
goto B63c4;
F4366:
$D9ecc = $Ccad7 . " / Result: Success data sent";
goto C9cd3;
C7e72:
d9d01:
goto C6413;
D1988:
$a688c = 0;
goto ef787;
dd5ea:
e14ac:
goto f740c;
Caef5:
$Af6d1["eventdata"]["data"]["total_before_tax"] = number_format((float) $b726f, 2, , '');
goto b9a17;
de216:
if (!$cd974) {
goto bf8ca;
}
goto f36a8;
C1865:
d0e7b:
goto dba3b;
da86c:
$be627 = $E88d3["item_list_name"];
goto cb10c;
Afca8:
$cd974 = false;
goto B0511;
A4fea:
goto ac64b;
goto b554b;
b2c0f:
$D9ecc = $Ccad7 . " / Result: Success data sent";
goto Ca9fe;
d9169:
$E88d3 = $this->getProductCatName($e9d1b);
goto Efd56;
a19b3:
$E06bd = number_format((float) $this->currency->format($f2a49, $c513c["tiktok_alt_currency"], 0, false), 2, , '');
goto B0082;
Baa2d:
Fe9c9:
goto F8692;
c4e15:
B6c8f:
goto Eb0af;
Ef144:
goto Bd9c5;
goto A23db;
C9957:
if (!$c513c["bing_status"]) {
goto B6c8f;
}
goto A4189;
Bfa5a:
$f5425 = $this->currency->format($this->tax->calculate($f5425, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto D33c4;
c7dac:
$c6d1a[$Ccad7] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $D9ecc];
goto bdc07;
c9eb0:
$cec2f = 0;
goto e5256;
E836d:
$b249b = $E88d3["item_list_id"];
goto da86c;
f36a8:
$Ccad7 = "Tiktok";
goto B71e0;
f83ba:
B0b3c:
goto D1679;
ae1e3:
Eb406:
goto d3bf6;
Eda53:
if (!(isset($c513c["sendinblue_status"]) && $c513c["sendinblue_status"])) {
goto db692;
}
goto df3b9;
b99e9:
$Af6d1["eventdata"]["data"]["subtotal"] = number_format((float) $b726f, 2, , '');
goto f021a;
ee14c:
f99da:
goto B1090;
Ca9fe:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto E2ddd;
}
goto Cf650;
B9b71:
$b175e = [];
goto bd512;
e1fd9:
cf1ea:
goto D5f9a;
D0fa1:
Edda0:
goto Ba958;
D8813:
if (!(isset($c513c["debug_api"]) && $c513c["debug_api"])) {
goto F141d;
}
goto eabd4;
f4f6f:
$f5425 = number_format((float) $f5425, 2, , '');
goto A8052;
F1f6c:
$Ed7a1 = ["error" => "false", "action" => "addToCart", "data" => $Bbec2, "fb_data" => $C7054, "tiktok" => $b175e, "twitter_event" => $c1649, "twitter_data" => $cb6e9, "bing_data" => $d5ede, "pinterest_data" => $Edc97, "snapchat" => $b748b, "user_data" => $aaedc, "event_id" => $e7e18];
goto Ad37d;
B9779:
if (!$c513c["tiktok_status"]) {
goto fd489;
}
goto a9513;
bf93f:
db6f0:
goto c770c;
E2020:
goto Bf92c;
goto D0fa1;
d5375:
$ce100 = $this->currency->format($ce100, $this->session->data["currency"], 0, false);
goto B30f7;
e8366:
if (is_array($a17f7[$de779[$D27f1]])) {
goto cf1ea;
}
goto F5ead;
Fe819:
$f2a49 = $B4f19["special"];
goto A5f3d;
B0082:
$A881c = $c513c["tiktok_alt_currency"];
goto ae1e3;
dfb31:
$F9b77 = [];
goto Df34e;
Afd41:
$Aefb2 = [];
goto ab80e;
D33c4:
$c2fce = $this->currency->format($c922b, $this->session->data["currency"], 0, false);
goto F21b9;
Fc15b:
$f570e = 0;
goto cc271;
E9571:
$C85f9 = $aaedc["snapchat_user_data"];
goto ee14c;
Cde22:
$F388e = $Adddc - $b726f;
goto b628d;
db438:
$c922b = $f2a49;
goto A8e46;
C145a:
goto Ac0e7;
goto f7ec2;
ca53c:
$c1649 = $c513c["twitter_addcart"];
goto D9370;
Ef7e7:
if (!(isset($a17f7) && isset($f2bcc))) {
goto a8d57;
}
goto B740e;
B740e:
$c97c7 = $this->getOptionPrice($e9d1b, $a17f7, $B4f19["price"], $Ea153);
goto aaf60;
aaf60:
$B4f19["price"] = $B4f19["price"] + $c97c7;
goto e99fb;
ef787:
$b0845 = 0;
goto Ec560;
ff34d:
$f2de0 = $this->snapchatAPI($c513c, "ADD_CART", $E1d8b, $C85f9, $e7e18);
goto C9a44;
Ca491:
$c1649 = 0;
goto C4ba6;
Ec560:
$f2a49 = 0;
goto a6e40;
Ac14c:
}
public function prepareRemoveCart($e9d1b, $B4f19, $Ea153)
{
goto c8bfc;
d3733:
$f5425 = 0;
goto Ff7cb;
Db729:
E2846:
goto fe1ff;
c3e92:
$fe36c = $E88d3["item_category3"];
goto b290d;
Fb97e:
$cda6c = $E88d3["item_category5"];
goto Db729;
Ab602:
a3f7b:
goto d75bf;
f19ee:
$c2fce = $this->currency->format($c922b, $this->session->data["currency"], 0, false);
goto Fdae3;
de142:
return $Ed7a1;
goto d05bb;
D8000:
$Ff056 = 0;
goto df9d9;
B1a78:
if (!isset($E88d3)) {
goto E2846;
}
goto f1a57;
A0c6f:
$f5425 = $this->currency->format($this->tax->calculate($f5425, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto f19ee;
Fae85:
$c922b = $f2a49;
goto B131d;
a55c4:
$Bbec2 = ["name" => $fda0d, "id" => $ecc30, "price" => $f5425, "value" => $f5425, "brand" => $F2554, "category" => isset($Ea555) ? $Ea555 : '', "quantity" => $Ea153, "currency" => $c513c["currency"], "pixel_value" => $C98e9, "fcurrency" => $A9f49, "ga" => $A8ce3, "event_id" => $e7e18];
goto c4904;
E1890:
$C98e9 = number_format((float) $c2fce, 2, , '');
goto c4b48;
E554d:
$f2a49 = 0;
goto d3733;
Def6c:
$B4f19["price"] = $B4f19["price"] + $c97c7;
goto Ff45d;
c0953:
return false;
goto Ab602;
Fe88e:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f2a49, "items" => $B1d02];
goto a55c4;
Bc739:
$f2a49 = $this->currency->format($dd0ad, $this->session->data["currency"], 0, false);
goto a0392;
f1a57:
$Ea555 = $E88d3["category"];
goto f14c6;
f3695:
$f570e = 0;
goto D8000;
B131d:
Cf72f:
goto ebb4a;
Ff45d:
$f2a49 = $B4f19["price"];
goto f341f;
D56de:
$F0b8f = $this->check_array($B4f19);
goto f3695;
E0952:
$ecc30 = $this->tagmangerPmap($B4f19["model"], $B4f19["sku"], $B4f19["product_id"]);
goto b0750;
Aa5be:
$dd0ad = $b0845;
goto Bc739;
d4a5f:
$B1d02[] = ["item_id" => $ecc30, "item_name" => $fda0d, "item_brand" => $F2554, "item_list_name" => isset($be627) ? $be627 : '', "item_list_id" => isset($b249b) ? $b249b : '', "item_category" => isset($C7834) ? $C7834 : '', "item_category2" => isset($C0d0c) ? $C0d0c : '', "item_category3" => isset($fe36c) ? $fe36c : '', "item_category4" => isset($bf395) ? $bf395 : '', "item_category5" => isset($cda6c) ? $cda6c : '', "item_variant" => '', "affiliation" => '', "discount" => 0, "coupon" => '', "price" => $f2a49, "currency" => $c513c["currency"], "quantity" => $Ea153];
goto Fe88e;
d75bf:
$c97c7 = $this->getOptionPrice($e9d1b, $B4f19["option"], $B4f19["price"], $Ea153);
goto Def6c;
ad70b:
$b0845 = 0;
goto E554d;
f341f:
$f5425 = $f2a49 * $Ea153;
goto C69f8;
df9d9:
$a688c = 0;
goto ad70b;
a6630:
$C7834 = $E88d3["item_category"];
goto baa98;
f14c6:
$b249b = $E88d3["item_list_id"];
goto E3d72;
F4487:
if (!(isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"])) {
goto Cf72f;
}
goto Fae85;
F99aa:
if ($F0b8f) {
goto a3f7b;
}
goto c0953;
b05f1:
$f5425 = number_format((float) $f5425, 2, , '');
goto E1890;
E8ff1:
if (!($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"])) {
goto a1b18;
}
goto fc5c4;
b9170:
$B4f19["sku"] = $B4f19["model"];
goto C3e06;
a0392:
$f570e = $dd0ad * $Ea153;
goto C013b;
ebb4a:
$f2a49 = $this->currency->format($this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto A0c6f;
b3b4a:
$E88d3 = $this->getProductCatName($e9d1b);
goto B1a78;
f363e:
$A9f49 = $c513c["alt_currency"];
goto a1010;
F3ad2:
$f2a49 = number_format((float) $f2a49, 2, , '');
goto b05f1;
Fdae3:
$A9f49 = $c513c["currency"];
goto E8ff1;
Ff7cb:
$c97c7 = 0;
goto ecbe8;
b0750:
$F2554 = $this->getProductBrandName($B4f19["product_id"]);
goto b3b4a;
baa98:
$C0d0c = $E88d3["item_category2"];
goto c3e92;
b0147:
$Ff056 = $this->currency->format($f570e, $c513c["alt_currency"], 0, false);
goto d593b;
c8bfc:
$c513c = $this->config();
goto ca92c;
b290d:
$bf395 = $E88d3["item_category4"];
goto Fb97e;
E3d72:
$be627 = $E88d3["item_list_name"];
goto a6630;
ecbe8:
$c6d1a = [];
goto F99aa;
c4b48:
$b0845 = $this->tax->calculate($B4f19["price"], $B4f19["tax_class_id"], $this->config->get("config_tax"));
goto Aa5be;
C013b:
$f570e = $this->currency->format($f570e, $this->session->data["currency"], 0, false);
goto b0147;
c4904:
$Ed7a1 = ["error" => "false", "action" => "RemoveCart", "data" => $Bbec2];
goto de142;
ca92c:
$e7e18 = "10-" . $this->eventid();
goto D56de;
C3e06:
Dabab:
goto E0952;
C69f8:
$c922b = $this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax"));
goto F4487;
a1010:
a1b18:
goto F3ad2;
d593b:
if (isset($B4f19["sku"])) {
goto Dabab;
}
goto b9170;
fe1ff:
$fda0d = $this->tagmangerPtitle($B4f19["name"], $F2554, $B4f19["model"], $B4f19["product_id"]);
goto d4a5f;
fc5c4:
$c2fce = $this->currency->format($c922b, $c513c["alt_currency"], 0, false);
goto f363e;
d05bb:
}
public function prepareAddtoWishlist($e9d1b, $B4f19)
{
goto c1e5b;
Bdb9f:
$B1d02[] = ["item_id" => $ecc30, "item_name" => $fda0d, "item_brand" => $F2554, "item_list_name" => isset($be627) ? $be627 : '', "item_list_id" => isset($b249b) ? $b249b : '', "item_category" => isset($C7834) ? $C7834 : '', "item_category2" => isset($C0d0c) ? $C0d0c : '', "item_category3" => isset($fe36c) ? $fe36c : '', "item_category4" => isset($bf395) ? $bf395 : '', "item_category5" => isset($cda6c) ? $cda6c : '', "item_variant" => '', "affiliation" => '', "discount" => 0, "coupon" => '', "price" => $f2a49, "currency" => $c513c["currency"], "quantity" => 1];
goto D8159;
Bb137:
$Aefb2 = $aaedc["pixel_user_data"];
goto dada8;
Cc7a5:
$E06bd = number_format((float) $this->currency->format($f2a49, $c513c["tiktok_alt_currency"], 0, false), 2, , '');
goto e46bc;
dc014:
$f2a49 = $B4f19["special"];
goto E9dca;
D3366:
$be627 = $E88d3["item_list_name"];
goto b8c40;
Ffa58:
$a688c = 0;
goto d2958;
f371b:
$c1649 = 0;
goto ab832;
aeefa:
$c2fce = $this->currency->format($c922b, $c513c["alt_currency"], 0, false);
goto C6b70;
edb24:
$b175e = ["contents" => $C6970, "content_type" => "product", "currency" => $A881c, "value" => $E06bd, "description" => $fda0d];
goto Cd83f;
Cf603:
$c1649 = $c513c["twitter_addwishlist"];
goto c5612;
ab832:
$cb6e9 = [];
goto F4a87;
a3738:
$f5425 = number_format((float) $f5425, 2, , '');
goto Ae0b0;
A4e26:
$ecc30 = $this->tagmangerPmap($B4f19["model"], $B4f19["sku"], $B4f19["product_id"]);
goto Da024;
b0927:
if (!$c513c["pixel"]) {
goto Dbea6;
}
goto a5c2c;
c0c3a:
$C85f9 = [];
goto c42c4;
e46bc:
$A881c = $c513c["tiktok_alt_currency"];
goto d5546;
c6218:
$Ff056 = 0;
goto Ffa58;
e628a:
$C0d0c = $E88d3["item_category2"];
goto Cf7fd;
bf7ae:
$C670a = $this->gtm->tiktokAPI($c513c, "AddToWishlist", $b175e, $F9b77);
goto a809f;
b8c40:
$C7834 = $E88d3["item_category"];
goto e628a;
D2988:
if (isset($B4f19["sku"])) {
goto ed50a;
}
goto e2598;
Aae7e:
$A881c = $c513c["currency"];
goto D8f08;
Ffc63:
$C670a = $this->gtm->facebookAPI($c513c, "AddToWishlist", $B19ca, $Aefb2, $e7e18);
goto D0741;
dada8:
ec856:
goto beb85;
F4a87:
$Ec46e = [];
goto D6ebc;
F47b3:
$E1d8b = ["content_category" => isset($be627) ? $be627 : '', "currency" => $c513c["currency"], "content_ids" => $ecc30, "value" => $f2a49, "brands" => $F2554, "num_items" => 1];
goto Ac22d;
c3a4d:
$c922b = $f2a49;
goto a663c;
ac370:
$f2a49 = $B4f19["price"];
goto D16ae;
d2958:
$b0845 = 0;
goto a8fc8;
F0531:
$Ec46e = ["content_id" => (string) $ecc30, "content_type" => "product", "content_name" => $fda0d, "num_items" => 1, "content_price" => $f2a49, "content_group_id" => ''];
goto B333c;
Cd83f:
if (!(isset($aaedc["tiktok_user_data"]) && $aaedc)) {
goto fead1;
}
goto C4041;
C9349:
B17cc:
goto Cf603;
Cc8af:
$Ed7a1 = ["error" => "false", "action" => "addToWishlist", "data" => $Bbec2, "twitter_event" => $c1649, "twitter_data" => $cb6e9, "snapchat" => $b748b, "tiktok" => $b175e, "fb_data" => $C7054, "event_id" => $e7e18];
goto b189f;
aa7d0:
ae01f:
goto e903a;
e2598:
$B4f19["sku"] = $B4f19["model"];
goto Ff3c6;
E1d95:
C19b4:
goto Fcd3a;
Ac22d:
if (!(isset($aaedc["snapchat_user_data"]) && $aaedc)) {
goto e4ec5;
}
goto C70ae;
Fcd3a:
$fda0d = $this->tagmangerPtitle($B4f19["name"], $F2554, $B4f19["model"], $B4f19["product_id"]);
goto Bdb9f;
Bd392:
e4ec5:
goto C6f4b;
a5c2c:
$C7054 = ["content_ids" => $ecc30, "content_type" => "product", "value" => $C98e9, "currency" => $A9f49, "product_catalog_id" => $c513c["fb_catalog_id"]];
goto A95ea;
A0632:
$aaedc = $this->formatUserdata($c513c);
goto Ff04f;
c1e5b:
$c513c = $this->config();
goto A050d;
Cbfd9:
$c922b = $this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax"));
goto Ac8b9;
E0247:
$E88d3 = $this->getProductCatName($e9d1b);
goto Fed2d;
c7e98:
return false;
goto a4a3f;
D6083:
$Bbec2 = ["name" => $fda0d, "id" => $ecc30, "price" => $f2a49, "value" => $f5425, "brand" => $F2554, "quantity" => 1, "category" => isset($Ea555) ? $Ea555 : '', "currency" => $c513c["currency"], "pixel_value" => $C98e9, "fcurrency" => $A9f49, "ga" => $A8ce3, "event_id" => $e7e18];
goto b0927;
A050d:
$e7e18 = "4-" . $this->eventid();
goto cb98f;
a809f:
a8573:
goto A6449;
Ff3c6:
ed50a:
goto A4e26;
B333c:
$cb6e9 = ["value" => $f5425, "currency" => $c513c["currency"], "contents" => $Ec46e];
goto E7985;
cb98f:
$F0b8f = $this->check_array($B4f19);
goto f371b;
Baa57:
$b748b = ["client_deduplication_id" => $e7e18, "event_id" => $e7e18, "price" => $f2a49, "currency" => $c513c["currency"], "item_ids" => $ecc30, "number_items" => 1, "brands" => $F2554, "item_category" => isset($be627) ? $be627 : '', "description" => "Item added to wishlist"];
goto F47b3;
D0741:
B2a33:
goto f5463;
d9ef1:
fead1:
goto bf7ae;
A7334:
$C670a = $this->gtm->snapchatAPI($c513c, "ADD_TO_WISHLIST", $E1d8b, $C85f9, $e7e18);
goto C0697;
a663c:
Aaf1e:
goto Da8b2;
Ea6b4:
goto D7341;
goto C9349;
Fed2d:
if (!isset($E88d3)) {
goto C19b4;
}
goto Df084;
Da8b2:
$f2a49 = $this->currency->format($this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto E94f4;
E9dca:
a66ff:
goto a2129;
a2129:
$f5425 = $f2a49;
goto Cbfd9;
c42c4:
$C7054 = false;
goto A0580;
Fa1bc:
$b175e = [];
goto c0c3a;
D8159:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f2a49, "items" => $B1d02];
goto E1478;
D8f08:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto E4587;
}
goto Cc7a5;
b6897:
$b748b = [];
goto F7575;
f5463:
Dbea6:
goto Cc8af;
F7575:
$E1d8b = [];
goto Fa1bc;
F6f34:
$Aefb2 = [];
goto D3937;
b189f:
return $Ed7a1;
goto Ecf87;
a19ea:
if (isset($c513c["twitter_addwishlist"]) && !empty($c513c["twitter_addwishlist"])) {
goto B17cc;
}
goto Aeba2;
A6449:
if (!$c513c["snap_pixel_status"]) {
goto ae01f;
}
goto Baa57;
a075b:
$bf395 = $E88d3["item_category4"];
goto d0d14;
E10ca:
$b249b = $E88d3["item_list_id"];
goto D3366;
C70ae:
$C85f9 = $aaedc["snapchat_user_data"];
goto Bd392;
b7a33:
$f2a49 = number_format((float) $f2a49, 2, , '');
goto a3738;
Ce465:
$C6970[] = ["content_category" => isset($be627) ? $be627 : '', "content_name" => $fda0d, "price" => $E06bd, "content_id" => $ecc30, "quantity" => 1, "brand" => $F2554, "currency" => $A881c, "value" => $E06bd, "description" => $fda0d, "content_type" => "product"];
goto edb24;
D16ae:
if (!(float) $B4f19["special"]) {
goto a66ff;
}
goto dc014;
Cf7fd:
$fe36c = $E88d3["item_category3"];
goto a075b;
C6b70:
$A9f49 = $c513c["alt_currency"];
goto a9aa8;
D3937:
$C6970 = [];
goto Fe942;
a9aa8:
B320e:
goto b7a33;
c5612:
D7341:
goto F0531;
a4fc2:
$f5425 = 0;
goto B7aaf;
A0580:
$c6d1a = [];
goto ddc95;
d5546:
E4587:
goto Ce465;
a8fc8:
$f2a49 = 0;
goto a4fc2;
C4041:
$F9b77 = $aaedc["tiktok_user_data"];
goto d9ef1;
e903a:
if (!(isset($c513c["twitter_status"]) && $c513c["twitter_status"])) {
goto e9b0a;
}
goto a19ea;
a4a3f:
A49d4:
goto ac370;
F20d3:
$c2fce = $this->currency->format($c922b, $this->session->data["currency"], 0, false);
goto a83fd;
Df084:
$Ea555 = $E88d3["category"];
goto E10ca;
E1478:
if (!$c513c["tiktok_status"]) {
goto a8573;
}
goto F1167;
beb85:
if (!$c513c["fb_api"]) {
goto B2a33;
}
goto D9622;
Da024:
$F2554 = $this->getProductBrandName($B4f19["product_id"]);
goto E0247;
F5bc3:
if (!($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"])) {
goto B320e;
}
goto aeefa;
Fe942:
$F9b77 = [];
goto b6897;
D9622:
$B19ca = $C7054;
goto Ffc63;
Aeba2:
$c1649 = 0;
goto Ea6b4;
Ff04f:
if ($F0b8f) {
goto A49d4;
}
goto c7e98;
C6f4b:
if (!($c513c["snap_pixel_api"] && !empty($c513c["snap_pixel_token"]) && isset($E1d8b))) {
goto D8e40;
}
goto A7334;
F1167:
$E06bd = number_format((float) $this->currency->format($f2a49, $this->session->data["currency"], 0, false), 2, , '');
goto Aae7e;
ddc95:
$c513c["event_id"] = $e7e18;
goto A0632;
a83fd:
$A9f49 = $c513c["currency"];
goto F5bc3;
D6ebc:
$f570e = 0;
goto c6218;
E7985:
e9b0a:
goto D6083;
A95ea:
if (!(isset($aaedc["pixel_user_data"]) && $aaedc)) {
goto ec856;
}
goto Bb137;
d0d14:
$cda6c = $E88d3["item_category5"];
goto E1d95;
Ac8b9:
if (!(isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"])) {
goto Aaf1e;
}
goto c3a4d;
E94f4:
$f5425 = $this->currency->format($this->tax->calculate($f5425, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto F20d3;
B7aaf:
$c97c7 = 0;
goto F6f34;
Ae0b0:
$C98e9 = number_format((float) $c2fce, 2, , '');
goto D2988;
C0697:
D8e40:
goto aa7d0;
Ecf87:
}
public function prepareCart()
{
goto A9c9c;
e8f06:
$c36f9 = ["event" => "CART_VIEW", "eventAction" => "CART_VIEW", "eventLabel" => "CART_VIEW", "ga" => $A8ce3, "content_name" => "View Cart", "content_category" => "Checkout", "content_ids" => $E8e9c, "content_type" => "product", "contents" => $Db528["fb_contents"], "number_items" => $Db528["fb_items"], "pixel_value" => number_format((float) $c2fce, 2, , ''), "fb_currency" => $A9f49, "remarketing_ids" => $c1aca, "currency" => $c513c["currency"], "value" => $f5425, "event_id" => $e7e18];
goto a2b03;
F95eb:
$b175e = ["contents" => $Db528["tiktok_items"], "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $Db528["tiktok_value"], 2, , ''), "description" => "View Cart"];
goto d5a73;
a6b99:
$A881c = $c513c["tiktok_alt_currency"];
goto bcfdc;
Ac130:
$c513c = $this->config();
goto D4e4b;
Be10e:
$Af6d1["eventdata"]["data"]["subtotal"] = number_format((float) $b726f, 2, , '');
goto ad6fd;
D5e52:
E399f:
goto a6c02;
d0853:
$E1d8b = ["currency" => $c513c["currency"], "content_ids" => $E8e9c, "value" => $f5425, "num_items" => $Db528["fb_items"]];
goto a5a95;
E733f:
$E1d8b["search_string"] = $A2d05;
goto F6b6f;
C008f:
$b748b = ["price" => $f5425, "currency" => $c513c["currency"], "item_ids" => $E8e9c, "number_items" => $Db528["fb_items"]];
goto d0853;
fb4f5:
$b726f = $this->cart->getSubTotal();
goto C44ad;
f9350:
$Db528 = $this->model_extension_module_dmt->getCartProducts();
goto E321b;
de4c5:
$Ceefe = ["error" => "true"];
goto C1395;
c70a7:
fa40f:
goto B4103;
D9d39:
$Edc97 = false;
goto E5763;
aa6b2:
if (!$c513c["pixel"]) {
goto fa40f;
}
goto f2611;
acbb2:
$A9f49 = $c513c["currency"];
goto D66a6;
a5a95:
if (!(isset($A2d05) && !empty($A2d05))) {
goto A22e4;
}
goto E733f;
B6a38:
$F388e = $Adddc - $b726f;
goto C01e9;
d736f:
$A9f49 = $c513c["alt_currency"];
goto A4952;
bdef9:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto B7b46;
}
goto a6b99;
A53a6:
$Af6d1["eventdata"]["data"]["discount"] = 0;
goto B972d;
c28af:
$b726f = $b726f / $Ddb25;
goto B6a38;
bdd6b:
$b8f3a = $Db528["matomo_items"];
goto ad86d;
B4103:
if (!(isset($c513c["sendinblue_status"]) && $c513c["sendinblue_status"])) {
goto A468c;
}
goto fe4f5;
d21a9:
$c2fce = $f5425;
goto acbb2;
f0318:
$F388e = $Adddc - $b726f;
goto B4067;
F72d5:
$C7054 = false;
goto e3a08;
Eee0b:
C6b7f:
goto B3f90;
Ab4f6:
if (!$c513c["tiktok_status"]) {
goto Bb989;
}
goto d09ff;
fe4f5:
$Af6d1 = ["email" => $c513c["email"], "event" => "view_cart", "cuid" => $this->getCuid(), "properties" => ["FIRSTNAME" => $c513c["fn"], "LASTNAME" => $c513c["ln"]], "eventdata" => ["id" => $this->GUID(), "data" => []]];
goto fb4f5;
Eb08c:
$c1aca = $Db528["remarketing_ids"];
goto c87e6;
a1a74:
$E8e9c = $Db528["ecom_prodid"];
goto Eb08c;
C1395:
return $Ceefe;
goto D5e52;
D4588:
b02b2:
goto aa5fe;
C44ad:
$Adddc = $this->cart->getTotal();
goto f0318;
E5763:
$d4bfa = $c513c["override_tax"];
goto Ce7d6;
B3f90:
if (!$c513c["pinterest_status"]) {
goto b02b2;
}
goto E6163;
a2b03:
if (!$c513c["cj_status"]) {
goto Da2bf;
}
goto e5411;
D66a6:
goto D41ba;
goto E03e1;
E1399:
A22e4:
goto f0afe;
ad6fd:
$Af6d1["eventdata"]["data"]["shipping"] = 0;
goto Aba80;
a36c1:
aac4b:
goto f0c1b;
f0c1b:
$Ed7a1 = ["error" => "false", "page_type" => "cart", "datalayer" => $c36f9, "fb_data" => $C7054, "sendinblue" => $Af6d1, "tiktok" => $b175e, "matomo" => $B5b4e, "snapchat" => $b748b, "snapchat_api" => $E1d8b, "items" => $Db528["ga4_items"], "bing_data" => $d5ede, "pinterest_data" => $Edc97];
goto df96d;
F6329:
$Af6d1["eventdata"]["data"]["url"] = str_replace("&", "&", $this->url->link("checkout/checkout", '', "SSL"));
goto C51dd;
ac049:
if (!$c513c["bing_status"]) {
goto C6b7f;
}
goto faa60;
df96d:
return $Ed7a1;
goto c2421;
F6b6f:
$b748b["search_string"] = $A2d05;
goto E1399;
e5f82:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto C49b4;
B4067:
if (!$d4bfa) {
goto Ddd6f;
}
goto c28af;
A9c9c:
$this->load->model("extension/module/dmt");
goto f9350;
Ce7d6:
$Ddb25 = $c513c["tax"];
goto a1a74;
ad86d:
$A8ce3 = [];
goto Ab4f6;
aa5fe:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "items" => $Db528["ga4_items"]];
goto e8f06;
d09ff:
$A881c = $c513c["currency"];
goto bdef9;
f588d:
$E1d8b = false;
goto c29fe;
aae89:
$c2fce = $Db528["ftotal"];
goto d736f;
a6c02:
$b175e = false;
goto F72d5;
C51dd:
$Af6d1["eventdata"]["data"]["currency"] = $c513c["currency"];
goto ae4ba;
A4952:
D41ba:
goto d7432;
bcfdc:
B7b46:
goto F95eb;
b520d:
$Af6d1["eventdata"]["data"]["tax"] = number_format((float) $F388e, 2, , '');
goto A53a6;
e5b6a:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto Fc525;
}
goto e5f82;
D4e4b:
$Ceefe = [];
goto B1443;
E3477:
if ($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"]) {
goto c46be;
}
goto d21a9;
C01e9:
Ddd6f:
goto Be10e;
C49b4:
Fc525:
goto c70a7;
B1443:
if (isset($Db528["ga4_items"])) {
goto E399f;
}
goto de4c5;
d5a73:
Bb989:
goto E3477;
dbf42:
if (!$c513c["matomo_status"]) {
goto aac4b;
}
goto A931a;
E134b:
$b748b = false;
goto f588d;
E03e1:
c46be:
goto aae89;
f0afe:
fe948:
goto ac049;
d7432:
if (!$c513c["snap_pixel_status"]) {
goto fe948;
}
goto C008f;
E321b:
$e7e18 = "12-" . $this->eventid();
goto Ac130;
ae4ba:
$Af6d1["eventdata"]["data"]["products"] = isset($Db528["sendinblue_products"]) ? $Db528["sendinblue_products"] : [];
goto D43d5;
c29fe:
$d5ede = false;
goto D9d39;
D43d5:
A468c:
goto dbf42;
e5411:
$c36f9["cj_page"] = "cart";
goto d1e8b;
e3a08:
$Af6d1 = false;
goto E134b;
Aba80:
$Af6d1["eventdata"]["data"]["total_before_tax"] = number_format((float) $b726f, 2, , '');
goto b520d;
d1e8b:
Da2bf:
goto aa6b2;
c87e6:
$f5425 = number_format((float) $Db528["ecom_totalvalue"], 2, , '');
goto Ab19e;
E6163:
$Edc97 = ["event_id" => $e7e18, "value" => $f5425, "order_quantity" => $Db528["fb_items"], "currency" => $c513c["currency"], "line_items" => $Db528["pinterest_items"]];
goto D4588;
B972d:
$Af6d1["eventdata"]["data"]["total"] = number_format((float) $Adddc, 2, , '');
goto F6329;
faa60:
$d5ede = ["ecomm_prodid" => $E8e9c, "ecomm_pagetype" => "cart", "ecomm_totalvalue" => $f5425, "revenue_value" => $f5425, "currency" => $c513c["currency"], "items" => $Db528["bing_items"]];
goto Eee0b;
f2611:
$C7054 = ["contents" => isset($Db528["fb_contents"]) ? $Db528["fb_contents"] : false, "content_type" => "product", "value" => number_format((float) $c2fce, 2, , ''), "currency" => $A9f49, "content_ids" => $E8e9c];
goto e5b6a;
A931a:
$B5b4e = ["items" => $b8f3a, "total" => $f5425];
goto a36c1;
Ab19e:
$B5b4e = '';
goto bdd6b;
c2421:
}
public function prepareCheckout($Ea0d3 = null)
{
goto dbc2b;
fda83:
$A9f49 = $c513c["currency"];
goto Bbbbb;
af81c:
$c1649 = 0;
goto d6ceb;
aa41f:
$Af6d1["eventdata"]["data"]["discount"] = 0;
goto E9096;
E84b5:
a4077:
goto D1622;
B9509:
$b175e = false;
goto fba1a;
a547b:
return $Ed7a1;
goto A0e4d;
Db4c0:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto A6847;
}
goto a2e5f;
D4a3d:
$Af6d1["eventdata"]["data"]["total_before_tax"] = number_format((float) $b726f, 2, , '');
goto ffa0e;
bcbca:
if (!(isset($c513c["sendinblue_status"]) && $c513c["sendinblue_status"])) {
goto f18b9;
}
goto ffc17;
eb8d2:
unset($this->session->data["ga4_payment_sent"]);
goto Dd0b8;
C233b:
$Ceefe = ["error" => "true"];
goto A97bc;
a2e5f:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto B6139;
Dfba4:
a8a44:
goto cad29;
F102f:
c772a:
goto bcbca;
d51cf:
if (!isset($this->session->data["ga4_shipping_method"])) {
goto A2a4f;
}
goto E5782;
f6da9:
if (!$d4bfa) {
goto a4077;
}
goto d463e;
d0f6a:
$c2fce = number_format((float) $Db528["ftotal"], 2, , '');
goto e01c3;
B6139:
A6847:
goto C31bf;
a1edd:
$f5425 = number_format((float) $Db528["ecom_totalvalue"], 2, , '');
goto Ab4b1;
eb12f:
$b726f = $this->cart->getSubTotal();
goto c2f18;
E3fcd:
if (!$c513c["snap_pixel_status"]) {
goto c772a;
}
goto f00c8;
a51b0:
$c36f9 = ["event" => "initiateCheckout", "eventAction" => "initiateCheckout", "eventLabel" => "Checkout Initiated", "content_name" => "Checkout", "content_category" => "Checkout", "ga" => $A8ce3, "content_ids" => $Db528["ecom_prodid"], "contents" => $Db528["fb_contents"], "number_items" => $Db528["fb_items"], "content_type" => "product", "pixel_value" => $c2fce, "fb_currency" => $A9f49, "remarketing_ids" => $Db528["remarketing_ids"], "currency" => $c513c["currency"], "value" => $f5425, "event_id" => $e7e18];
goto F91be;
C95e6:
$Af6d1["eventdata"]["data"]["url"] = str_replace("&", "&", $this->url->link("checkout/checkout", '', "SSL"));
goto C5b53;
D377d:
$Edc97 = ["event_id" => $e7e18, "value" => $f5425, "order_quantity" => $Db528["fb_items"], "currency" => $c513c["currency"], "line_items" => $Db528["pinterest_items"]];
goto a473e;
B5870:
$Db528 = $this->model_extension_module_dmt->getCartProducts();
goto Bdc61;
fbe75:
$c1649 = $c513c["twitter_checkout"];
goto C4efc;
e0e64:
if (isset($Ea0d3)) {
goto b04f4;
}
goto cea6d;
a746a:
if (!$c513c["bing_status"]) {
goto Cd841;
}
goto E79b1;
fe33f:
if (!isset($this->session->data["ga4_payment_sent"])) {
goto D7de6;
}
goto eb8d2;
b4191:
$Af6d1["eventdata"]["data"]["shipping"] = 0;
goto D4a3d;
A9f29:
F0e76:
goto Eebc5;
Ba0bd:
$C7054 = false;
goto Cc1b0;
C5b53:
$Af6d1["eventdata"]["data"]["currency"] = $c513c["currency"];
goto a87ca;
dbc2b:
$c513c = $this->config();
goto F663b;
Bbbbb:
if (!($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"])) {
goto a8232;
}
goto d0f6a;
cad29:
$b175e = ["contents" => $Db528["tiktok_items"], "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $Db528["tiktok_value"], 2, , ''), "description" => "Initiate Checkout"];
goto F3527;
C31bf:
E87dc:
goto fe634;
B4ed0:
if (!$c513c["pinterest_status"]) {
goto b1a74;
}
goto D377d;
faf45:
A2a4f:
goto Dfcf4;
D1622:
$Af6d1["eventdata"]["data"]["subtotal"] = number_format((float) $b726f, 2, , '');
goto b4191;
d6ceb:
$cb6e9 = false;
goto Ba0bd;
Bf514:
$Ddb25 = $c513c["tax"];
goto F410a;
Aee52:
f1e93:
goto d51cf;
fba1a:
$B5b4e = false;
goto a4257;
A92bb:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto a8a44;
}
goto cbc09;
Efb9b:
if (!$c513c["pixel"]) {
goto E87dc;
}
goto ca538;
F3527:
e88f8:
goto a746a;
E79b1:
$d5ede = ["ecomm_prodid" => $Db528["ecom_prodid"], "ecomm_pagetype" => "cart", "ecomm_totalvalue" => $f5425, "revenue_value" => $f5425, "currency" => $c513c["currency"], "items" => $Db528["bing_items"]];
goto Fad2d;
E9096:
$Af6d1["eventdata"]["data"]["total"] = number_format((float) $Adddc, 2, , '');
goto C95e6;
A2b2a:
$Ed7a1 = ["error" => "false", "currency" => $c513c["currency"], "datalayer" => $c36f9, "fb_data" => $C7054, "tiktok" => $b175e, "twitter_event" => $c1649, "twitter_data" => $cb6e9, "snapchat" => $b748b, "snapchat_api" => $E1d8b, "matomo" => $B5b4e, "items" => $Db528["ga4_items"], "bing_data" => $d5ede, "pinterest_data" => $Edc97, "sendinblue" => $Af6d1];
goto a547b;
f4c82:
B3b76:
goto Efb9b;
Cab53:
$E1d8b = ["currency" => $c513c["currency"], "content_ids" => $Db528["ecom_prodid"], "value" => $f5425, "num_items" => $Db528["fb_items"]];
goto F102f;
ca538:
$C7054 = ["content_category" => "Checkout", "content_ids" => $Db528["ecom_prodid"], "contents" => $Db528["fb_contents"], "currency" => $A9f49, "num_items" => $Db528["fb_items"], "value" => $c2fce, "content_type" => "product"];
goto Db4c0;
d59b3:
unset($this->session->data["ga4_payment_method"]);
goto d78f5;
E5782:
unset($this->session->data["ga4_shipping_method"]);
goto faf45;
e0097:
$d5ede = false;
goto cbd61;
Dd0b8:
D7de6:
goto A7c47;
cbd61:
$Edc97 = false;
goto B9509;
a473e:
b1a74:
goto a0117;
Ab4b1:
ab9b6:
goto fe33f;
Fad2d:
Cd841:
goto B4ed0;
b1285:
$b748b = false;
goto b606d;
Bdc61:
$e7e18 = "6-" . $this->eventid();
goto af81c;
cbc09:
$A881c = $c513c["tiktok_alt_currency"];
goto Dfba4;
e01c3:
$A9f49 = $c513c["alt_currency"];
goto Ce69d;
A97bc:
return $Ceefe;
goto A9f29;
ffc17:
$Af6d1 = ["email" => $c513c["email"], "event" => "checkout", "cuid" => $this->getCuid(), "properties" => ["FIRSTNAME" => $c513c["fn"], "LASTNAME" => $c513c["ln"]], "eventdata" => ["id" => $this->GUID(), "data" => []]];
goto eb12f;
a0117:
if (!$c513c["twitter_status"]) {
goto aa124;
}
goto c0243;
a4257:
$A8ce3 = false;
goto D1649;
Ae5de:
$B5b4e = ["items" => $Db528["matomo_items"], "total" => $f5425];
goto f4c82;
d463e:
$b726f = $b726f / $Ddb25;
goto Aa962;
cea6d:
$Ea0d3 = ["page" => "checkout", "step" => "1", "mode" => "onecheckout"];
goto e0190;
a87ca:
$b6280 = $Db528["sendinblue_products"];
goto Fbafb;
F91be:
if (!$c513c["matomo_status"]) {
goto B3b76;
}
goto Ae5de;
c2f18:
$Adddc = $this->cart->getTotal();
goto cd4e2;
D1649:
$f5425 = 0.0;
goto F08aa;
ffa0e:
$Af6d1["eventdata"]["data"]["tax"] = number_format((float) $F388e, 2, , '');
goto aa41f;
Cc1b0:
$Af6d1 = false;
goto b1285;
Ce69d:
a8232:
goto D487c;
Fd0ef:
$cb6e9 = ["value" => $f5425, "currency" => $c513c["currency"], "contents" => $Db528["twitter_items"]];
goto d9e9f;
C4efc:
b3f3f:
goto Fd0ef;
d78f5:
c09d9:
goto e0e64;
F410a:
if (isset($Db528["ga4_items"])) {
goto F0e76;
}
goto C233b;
F663b:
$this->load->model("extension/module/dmt");
goto B5870;
Dfcf4:
if (!isset($this->session->data["ga4_payment_method"])) {
goto c09d9;
}
goto d59b3;
Bf3ed:
$A881c = $c513c["currency"];
goto A92bb;
F08aa:
$d4bfa = $c513c["override_tax"];
goto Bf514;
e2515:
f18b9:
goto A2b2a;
b606d:
$E1d8b = false;
goto e0097;
cd4e2:
$F388e = $Adddc - $b726f;
goto f6da9;
A7c47:
if (!isset($this->session->data["ga4_shipping_sent"])) {
goto f1e93;
}
goto D7c6b;
fe634:
if (!$c513c["tiktok_status"]) {
goto e88f8;
}
goto Bf3ed;
Db3b6:
$c2fce = $f5425;
goto fda83;
D7c6b:
unset($this->session->data["ga4_shipping_sent"]);
goto Aee52;
d9e9f:
aa124:
goto E3fcd;
D487c:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "items" => $Db528["ga4_items"]];
goto a51b0;
f00c8:
$b748b = ["price" => $f5425, "currency" => $c513c["currency"], "item_ids" => $Db528["ecom_prodid"], "number_items" => $Db528["fb_items"], "description" => "Checkout Started"];
goto Cab53;
Aa962:
$F388e = $Adddc - $b726f;
goto E84b5;
e0190:
b04f4:
goto Db3b6;
Fbafb:
$Af6d1["eventdata"]["data"]["products"] = $b6280;
goto e2515;
Eebc5:
if (!isset($Db528["ecom_totalvalue"])) {
goto ab9b6;
}
goto a1edd;
c0243:
if (!(isset($c513c["twitter_checkout"]) && !empty($c513c["twitter_checkout"]))) {
goto b3f3f;
}
goto fbe75;
A0e4d:
}
public function prepareShipping($A407d = '')
{
goto bcd6e;
F64d0:
$e7e18 = "7-" . $this->eventid();
goto Bcf17;
cf5d2:
if (!($this->session->data["ga4_shipping_method"] == $A407d)) {
goto Ea9bd;
}
goto d66b7;
E6f1a:
$c513c = $this->config();
goto fbea9;
C9908:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "shipping_tier" => $A407d, "items" => $Db528["ga4_items"]];
goto a06ff;
d7039:
$Ceefe = ["error" => "true"];
goto A25a1;
B600a:
$this->load->model("extension/module/dmt");
goto ee8f9;
e703b:
return $Ceefe;
goto bf733;
bcd6e:
$this->resetCustomerData();
goto B600a;
c8974:
if (!(isset($this->session->data["ga4_shipping_sent"]) && isset($this->session->data["ga4_shipping_method"]))) {
goto f4799;
}
goto cf5d2;
d66b7:
$Ceefe = ["error" => "true"];
goto e703b;
f8d55:
return $Ed7a1;
goto ec0b6;
ee8f9:
$Db528 = $this->model_extension_module_dmt->getCartProducts();
goto F64d0;
bbe4b:
c4b36:
goto E6f1a;
fbea9:
$f5425 = isset($Db528["ecom_totalvalue"]) ? number_format((float) $Db528["ecom_totalvalue"], 2, , '') : 0;
goto c8974;
a06ff:
$c36f9 = ["event" => "add_shipping_info", "ga" => $A8ce3, "currency" => $c513c["currency"], "value" => $f5425, "event_id" => $e7e18, "shipping_tier" => $A407d];
goto F7cc6;
A25a1:
return $Ceefe;
goto bbe4b;
F7cc6:
$Ed7a1 = ["error" => "false", "datalayer" => $c36f9, "ga" => $A8ce3, "currency" => $c513c["currency"]];
goto f8d55;
Bcf17:
$Ceefe = [];
goto db033;
db033:
if (isset($Db528["ga4_items"])) {
goto c4b36;
}
goto d7039;
bf733:
Ea9bd:
goto Da139;
Da139:
f4799:
goto C9908;
ec0b6:
}
public function preparePayment($a81e4 = '')
{
goto Ee5c8;
fa82a:
if (!(isset($this->session->data["ga4_payment_sent"]) && isset($this->session->data["ga4_payment_method"]))) {
goto E7c31;
}
goto D2ee0;
Aebdc:
goto Aea27;
goto eeb1e;
b8841:
$Ceefe = [];
goto E2499;
eeb1e:
Dcd74:
goto Af063;
F946d:
if (!(isset($c513c["twitter_status"]) && $c513c["twitter_status"])) {
goto b566f;
}
goto A8ba8;
E970e:
c8d8f:
goto a1cf2;
aa02d:
E7c31:
goto cc9fb;
aab09:
if (!($c513c["pixel"] && $c513c["fb_api"])) {
goto b1025;
}
goto b0ee6;
a73c4:
return $Ceefe;
goto c168a;
b1a5a:
if (!(isset($aaedc["tiktok_user_data"]) && $aaedc)) {
goto e169d;
}
goto e04e3;
F6cc2:
$c1649 = $c513c["twitter_payment"];
goto E970e;
B16ab:
E23f8:
goto F946d;
f7420:
Eedb5:
goto c4bb0;
b2035:
$Db528 = $this->model_extension_module_dmt->getCartProducts();
goto B0ed7;
B6029:
$F9b77 = [];
goto ecc12;
e00b9:
$b175e = false;
goto a418f;
D5de3:
b4ccc:
goto bb791;
E76b8:
$A9f49 = $c513c["currency"];
goto Aebdc;
fc438:
$C7054 = ["content_category" => "Confirm", "content_type" => "product", "content_ids" => isset($Db528["ecom_prodid"]) ? $Db528["ecom_prodid"] : '', "contents" => isset($Db528["fb_contents"]) ? $Db528["fb_contents"] : array(), "currency" => $A9f49, "value" => number_format((float) $c2fce, 2, , ''), "num_items" => $Db528["fb_items"]];
goto C946b;
B0ed7:
$e7e18 = "7-" . $this->eventid();
goto b8841;
F7ed5:
Bdb2f:
goto Ae299;
c5626:
goto c8d8f;
goto b7cc6;
Abd74:
$aaedc = $this->formatUserdata($c513c);
goto fa82a;
e1d06:
$c36f9 = ["event" => "add_payment_info", "ga" => $A8ce3, "currency" => $c513c["currency"], "value" => $f5425, "event_id" => $e7e18, "payment_type" => $a81e4, "content_ids" => isset($Db528["ecom_prodid"]) ? $Db528["ecom_prodid"] : '', "number_items" => isset($Db528["fb_items"]) ? $Db528["fb_items"] : '', "content_type" => "product", "pixel_value" => number_format((float) $c2fce, 2, , ''), "fb_currency" => $A9f49];
goto C11bd;
Af063:
$A9f49 = $c513c["alt_currency"];
goto ae330;
ae330:
Aea27:
goto fd337;
cbf0d:
$C670a = $this->gtm->tiktokAPI($c513c, "AddPaymentInfo", $b175e, $F9b77);
goto D562a;
C09a1:
$Aefb2 = [];
goto B6029;
C11bd:
if (!$c513c["pixel"]) {
goto E23f8;
}
goto fc438;
fd74e:
$c1649 = 0;
goto Ab350;
e38c3:
c7504:
goto E6c67;
Ee5c8:
$this->resetCustomerData();
goto A3eb6;
d65e5:
return $Ed7a1;
goto F9444;
Aceab:
$Ceefe = ["error" => "true"];
goto Ef2df;
D562a:
F8a32:
goto e38c3;
b7cc6:
Dc32e:
goto F6cc2;
E6c67:
$Ed7a1 = ["error" => "false", "datalayer" => $c36f9, "fb_data" => $C7054, "currency" => $c513c["currency"], "twitter_event" => $c1649, "twitter_data" => $cb6e9, "tiktok" => $b175e, "ga" => $A8ce3, "event_id" => $e7e18];
goto d65e5;
cc9fb:
$c2fce = $Db528["ftotal"];
goto F2ace;
e04e3:
$F9b77 = $aaedc["tiktok_user_data"];
goto ae3a3;
ecc12:
$c513c["event_id"] = $e7e18;
goto Abd74;
Ae299:
if (!(isset($aaedc["pixel_user_data"]) && $aaedc)) {
goto B071a;
}
goto ecef7;
ecef7:
$Aefb2 = $aaedc["pixel_user_data"];
goto C61c9;
C54c8:
if (!$c513c["tiktok_status"]) {
goto c7504;
}
goto A05f6;
Ab350:
$cb6e9 = false;
goto e00b9;
c4bb0:
$b175e = ["contents" => $Db528["tiktok_items"], "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $Db528["tiktok_value"], 2, , ''), "description" => "Payment Confirm", "payment_method" => $a81e4];
goto b1a5a;
fd337:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "items" => $Db528["ga4_items"], "payment_type" => $a81e4];
goto e1d06;
e3a0d:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto Eedb5;
}
goto e7d80;
C946b:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto Bdb2f;
}
goto dcff5;
a418f:
$A8ce3 = [];
goto C09a1;
Ebfbb:
b566f:
goto C54c8;
e7d80:
$A881c = $c513c["tiktok_alt_currency"];
goto f7420;
b0ee6:
$C670a = $this->gtm->facebookAPI($c513c, "AddPaymentInfo", $C7054, $Aefb2, $e7e18);
goto dcf72;
C22fd:
$Ceefe = ["error" => "true"];
goto a73c4;
A8ba8:
if (isset($c513c["twitter_payment"]) && !empty($c513c["twitter_payment"])) {
goto Dc32e;
}
goto fdd94;
A3eb6:
$this->load->model("extension/module/dmt");
goto b2035;
ae3a3:
e169d:
goto Cf020;
Cf020:
if (!$this->checkapiStatus("tiktok")) {
goto F8a32;
}
goto cbf0d;
dd660:
$C7054 = false;
goto fd74e;
dcf72:
b1025:
goto B16ab;
E2499:
if (isset($Db528["ga4_items"])) {
goto b4ccc;
}
goto Aceab;
a1cf2:
$cb6e9 = ["value" => $f5425, "currency" => $c513c["currency"], "contents" => $Db528["twitter_items"]];
goto Ebfbb;
A05f6:
$A881c = $c513c["currency"];
goto e3a0d;
D2ee0:
if (!($this->session->data["ga4_payment_method"] == $a81e4)) {
goto Ba5eb;
}
goto C22fd;
C61c9:
B071a:
goto aab09;
Ef2df:
return $Ceefe;
goto D5de3;
fdd94:
$c1649 = 0;
goto c5626;
bb791:
$c513c = $this->config();
goto D88ac;
D88ac:
$f5425 = isset($Db528["ecom_totalvalue"]) ? number_format((float) $Db528["ecom_totalvalue"], 2, , '') : 0;
goto dd660;
F2ace:
if ($c513c["alt_currency_status"] && isset($c513c["alt_currency"]) && $c513c["alt_currency"] != $c513c["currency"]) {
goto Dcd74;
}
goto E76b8;
dcff5:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto F7ed5;
c168a:
Ba5eb:
goto aa02d;
F9444:
}
public function prepareConfirm($Ea0d3 = null)
{
goto Cfe2e;
B784a:
$Ed7a1 = ["error" => "false", "datalayer" => $c36f9, "currency" => $c513c["currency"], "items" => $Db528["ga4_items"]];
goto A7233;
Ee6d6:
E4f23:
goto Fc094;
E4bb7:
$f2de0 = [];
goto D1339;
Fc094:
if (!$c513c["tiktok_status"]) {
goto dbd3c;
}
goto ded1e;
f3eef:
if (isset($Db528["ga4_items"])) {
goto fb3b5;
}
goto df74a;
Bccb9:
$b175e = [];
goto d3c29;
Ff1b4:
$C7054 = ["content_category" => "Confirm", "content_type" => "product", "content_ids" => $Db528["ecom_prodid"], "contents" => $Db528["fb_contents"], "currency" => $A9f49, "value" => number_format((float) $c2fce, 2, , ''), "num_items" => $Db528["fb_items"]];
goto f423d;
D9a6a:
$Db528 = $this->model_extension_module_dmt->getCartProducts();
goto f3639;
df74a:
$Ceefe = ["error" => "true"];
goto Cfb40;
C728c:
C1137:
goto ba877;
f8948:
$c1aca = [];
goto A4a2c;
Debd8:
$A8ce3 = [];
goto C3263;
C3263:
$a786b = [];
goto Bccb9;
F4e36:
$c2fce = $Db528["ecom_totalvalue"];
goto f3a6f;
f3a6f:
$A9f49 = $c513c["currency"];
goto Cafb4;
d5412:
$Ea0d3 = ["page" => "checkout", "step" => isset($this->session->data["steps"]) ? $this->session->data["steps"] + 1 : 2, "mode" => "onecheckout"];
goto F096e;
E0b27:
$b175e = ["contents" => $Db528["tiktok_items"], "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $Db528["tiktok_value"], 2, , ''), "description" => "Payment Confirm"];
goto a85f3;
bb49c:
if (isset($Ea0d3)) {
goto Def29;
}
goto d5412;
eb679:
$f5425 = number_format((float) $Db528["ecom_totalvalue"], 2, , '');
goto Debd8;
A4a2c:
$E8e9c = [];
goto C09ee;
Cfe2e:
$this->resetCustomerData();
goto Fbb5e;
affe1:
$A9f49 = $c513c["alt_currency"];
goto Ee6d6;
ee3f0:
if ($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"]) {
goto e6661;
}
goto F4e36;
d87d1:
$Ddb25 = $c513c["tax"];
goto eb679;
Ec071:
aa5bb:
goto E0b27;
f3639:
$e7e18 = "7s-" . $this->eventid();
goto B6758;
Db474:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "items" => $Db528["ga4_items"]];
goto c69bb;
B64cb:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto aa5bb;
}
goto F932b;
eee8d:
return $Ed7a1;
goto De5f3;
f423d:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto C1137;
}
goto aee02;
F932b:
$A881c = $c513c["tiktok_alt_currency"];
goto Ec071;
F096e:
Def29:
goto ee3f0;
Cafb4:
goto E4f23;
goto e3a46;
ded1e:
$A881c = $c513c["currency"];
goto B64cb;
ed3a8:
$c2fce = $Db528["ftotal"];
goto affe1;
Fbb5e:
$this->load->model("extension/module/dmt");
goto D9a6a;
ba877:
f14b7:
goto eee8d;
d3c29:
$D27f1 = 1;
goto bb49c;
D1339:
$B86f9 = [];
goto f8948;
B6758:
$Ceefe = [];
goto f3eef;
a85f3:
dbd3c:
goto Db474;
Cfb40:
return $Ceefe;
goto Bc4b1;
A1610:
$c513c = $this->config();
goto E4bb7;
A7233:
if (!$c513c["pixel"]) {
goto f14b7;
}
goto Ff1b4;
aee02:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto C728c;
c69bb:
$c36f9 = ["event" => "confirmCheckout", "eventAction" => "confirmCheckout", "eventLabel" => "Order Confirm", "content_name" => "Checkout", "ga" => $A8ce3, "content_category" => "Confirm", "content_ids" => $Db528["ecom_prodid"], "contents" => $Db528["fb_contents"], "number_items" => $Db528["fb_items"], "content_type" => "product", "pixel_value" => number_format((float) $c2fce, 2, , ''), "fb_currency" => $A9f49, "remarketing_ids" => $Db528["remarketing_ids"], "currency" => $c513c["currency"], "value" => $f5425, "tiktok" => $b175e, "event_id" => $e7e18];
goto B784a;
C09ee:
$d4bfa = $c513c["override_tax"];
goto d87d1;
e3a46:
e6661:
goto ed3a8;
Bc4b1:
fb3b5:
goto A1610;
De5f3:
}
public function preparePurchase($c58b0)
{
goto C586d;
be858:
if (!$c513c["cj_status"]) {
goto c0bf1;
}
goto a28d9;
ac3e8:
B9acc:
goto A6ac2;
Dfba3:
d6633:
goto B0730;
a69d3:
Cda3c:
goto be858;
D4adf:
c7424:
goto Cbc96;
dca6a:
if (!(isset($A8e72) && !empty($A8e72))) {
goto F0a49;
}
goto F54c9;
C987d:
d2503:
goto C71ab;
Faae3:
if ($Db528) {
goto E76ff;
}
goto be278;
A9dad:
if (!$c513c["pinterest_status"]) {
goto fb383;
}
goto cbd58;
Aaebe:
ed3e8:
goto Aac04;
E96a3:
$C3fdb = isset($Db528["ec_orderDetails"]["shipping_code"]) ? $Db528["ec_orderDetails"]["shipping_code"] : '';
goto d3c17;
Dd273:
if (!(isset($c513c["debug_order"]) && $c513c["debug_order"])) {
goto F2a49;
}
goto A4164;
D61d9:
$b748b = [];
goto C6436;
B56bf:
C0f03:
goto cd80a;
D627a:
$be3f4 = [];
goto C238a;
Bd1f1:
b79a3:
goto A7b0b;
Dabcf:
F0a49:
goto ab120;
C0189:
$Ed7a1 = ["error" => "false", "event_id" => $e7e18, "order_id" => $c58b0, "currency" => $Aa33a, "revenue" => $Db528["ec_orderValue"], "value" => $dccfe, "tax" => $cfb0a, "shipping" => $Bdba7, "discount" => '', "coupon" => isset($Db528["ec_orderCoupon"]) ? $Db528["ec_orderCoupon"] : '', "shipping_method" => $A407d, "payment_method" => $a81e4, "items" => $f2de0["products"], "product_value" => number_format((float) $F234c, 2, , ''), "customer" => $be3f4, "cost" => number_format((float) $f2de0["cost"], 2, , ''), "datalayer" => $c36f9, "fb_data" => $C7054, "google_review" => $d32c4, "tiktok" => $b175e, "snapchat" => $b748b, "snapchat_api" => $E1d8b, "twitter_event" => $c1649, "twitter_data" => $cb6e9, "bing_data" => $d5ede, "bing_items" => $f2de0["bing_items"], "adword_items" => $f2de0["aw_items"], "remarketing_ids" => $f2de0["remarketing_ids"], "sendinblue" => $Af6d1, "matomo" => $B5b4e, "affiliate_gateway" => $f2de0["affiliate_gateway"], "linkwise" => $f9459, "skroutz" => $A0690, "admitad_items" => $f2de0["admitad"], "sendinblue" => $Af6d1, "pinterest_data" => $Edc97, "performant_value" => $ed3cb, "cj_value" => $e5431, "cj_items" => $f2de0["cj_items"], "dmt" => $c513c, "hit" => $Db528["hit"]];
goto Dd273;
cd80a:
if (!$c513c["skroutz_status"]) {
goto be873;
}
goto d1a11;
b3c5b:
$A881c = $c513c["currency"];
goto Aa27d;
fed85:
$Af6d1["eventdata"]["data"]["Billing_Details"] = ["billing_FIRST_NAME" => $Db528["ec_orderDetails"]["payment_firstname"], "billing_LAST_NAME" => $Db528["ec_orderDetails"]["payment_lastname"], "billing_COMPANY " => $Db528["ec_orderDetails"]["payment_company"], "billing_ADDRESS_1" => $Db528["ec_orderDetails"]["payment_address_1"], "billing_ADDRESS_2" => $Db528["ec_orderDetails"]["payment_address_2"], "billing_CITY" => $Db528["ec_orderDetails"]["payment_city"], "billing_STATE" => $Db528["ec_orderDetails"]["payment_zone"], "billing_POSTCODE" => $Db528["ec_orderDetails"]["payment_postcode"], "billing_COUNTRY" => $Db528["ec_orderDetails"]["payment_country"], "billing_PHONE" => $Db528["ec_orderDetails"]["telephone"], "billing_EMAIL" => $Db528["ec_orderDetails"]["email"]];
goto A20c4;
Cbc96:
de658:
goto eb682;
Fb81d:
$this->saveCustomerData($be3f4);
goto c998b;
b3470:
$f2f93 = ["sha6_email_address" => $be3f4["em"], "sha256_phone_number" => $be3f4["ph_e164"], "address" => ["sha256_first_name" => $be3f4["fn"], "sha6_last_name" => $be3f4["ln"], "street" => $c782a, "city" => $B05d4, "postal_code" => $b5384, "region" => $c5f4c, "country" => $D41c7]];
goto afadf;
f2f2f:
b46bf:
goto b1a30;
C98ad:
return $Ed7a1;
goto Cd4ce;
ab120:
$cedc0 = ["order_total" => $Db528["ec_orderValue"], "shipping" => $Db528["ec_orderShipping"], "tax" => $Db528["ec_orderTax"], "adjustment_plus" => $Db528["adjustment"]["plus"], "adjustment_minus" => $Db528["adjustment"]["minus"], "sub_total" => $Db528["adjustment"]["sub_total"], "order_totals" => $Db528["adjustment"]["order_totals"], "order_products" => $f2de0["products"]];
goto ef6ab;
cf513:
$e12bb = ["order_id" => $c58b0, "revenue" => number_format((float) $aeb79, 2, , ''), "shipping" => $Bdba7, "tax" => $cfb0a];
goto A6807;
b1a30:
$C7054 = ["content_category" => "Confirm", "content_ids" => $f2de0["ecom_prodid"], "contents" => $f2de0["fb_contents"], "currency" => $B2567, "num_items" => $f2de0["number_of_items"], "value" => number_format((float) $c140b, 2, , ''), "order_id" => $c58b0, "content_name" => "Purchase", "content_type" => "product"];
goto bc406;
F37e8:
$c513c["ph_e164"] = $be3f4["ph_e164"];
goto a921a;
c56f7:
fb383:
goto Ec77d;
d2656:
$A3019 = number_format((float) $B6ff9, 2, , '');
goto Db428;
d044b:
a6bd1:
goto F1dbe;
ba770:
$cfb0a = number_format((float) $Db528["ec_orderTax"], 2, , '');
goto dcfaf;
Aac04:
if (!(isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"])) {
goto B6b03;
}
goto f77dc;
cbd58:
$Edc97 = ["event_id" => $e7e18, "order_id" => $c58b0, "value" => $A3019, "order_quantity" => $f2de0["number_of_items"], "currency" => $c513c["currency"], "line_items" => $f2de0["pinterest_items"]];
goto c56f7;
a95d5:
$c1649 = 0;
goto aec92;
afadf:
c926c:
goto cd4b8;
C71ab:
$e5431 = number_format((float) $e5431, 2, , '');
goto ff780;
f88ef:
B6b03:
goto A9b73;
Fe641:
$Eca20 = $Db528["ec_orderDetails"]["lastname"];
goto aca07;
fd0ba:
f7468:
goto Dfba3;
bb76f:
$c513c["ct"] = $be3f4["ct"];
goto da04c;
F6260:
$A8ce3 = [];
goto D61d9;
a6ffb:
$B5b4e = ["items" => $f2de0["matomo_items"], "order_id" => $c58b0, "revenue" => $dccfe, "tax" => $cfb0a, "shipping" => $Bdba7, "discount" => 0];
goto a69d3;
fce40:
$f9e0d = $Db528["ec_orderDetails"]["firstname"];
goto Fe641;
Daa85:
Cf919:
goto daf63;
A6ac2:
$Aee65 = $cedc0["order_total"] - $cedc0["shipping"] - $cedc0["tax"];
goto E27ab;
C04f3:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto fd0ba;
ef6ab:
$A8ce3 = ["transaction_id" => (string) $c58b0, "value" => $dccfe, "currency" => $Aa33a, "tax" => $cfb0a, "shipping" => $Bdba7, "coupon" => isset($Db528["ec_orderCoupon"]) ? $Db528["ec_orderCoupon"] : '', "items" => $f2de0["ga4_items"]];
goto be62d;
acd6c:
$d32c4 = [];
goto b91a1;
fddd3:
if (!$c513c["linkwise_status"]) {
goto fe92f;
}
goto E949c;
C238a:
$e5431 = 0;
goto F5a55;
dcfaf:
$Bdba7 = number_format((float) $Db528["ec_orderShipping"], 2, , '');
goto ac8e5;
bdb21:
$c140b = $cedc0["order_total"];
goto d8cc4;
A6807:
$f9459 = ["items" => $f2de0["linkwise_items"], "order" => $e12bb];
goto ed5cd;
B0730:
if (!$c513c["adword"]) {
goto C6e0a;
}
goto c299a;
d37d1:
$b748b["search_string"] = $A2d05;
goto D4adf;
C657f:
$a81e4 = isset($Db528["ec_orderDetails"]["payment_method"]) ? $Db528["ec_orderDetails"]["payment_method"] : "payment";
goto E96a3;
E0ab2:
$c1649 = 0;
goto c058d;
Ce29a:
Aa8c5:
goto d972a;
be278:
if (!$this->dmt_debug) {
goto F4fa1;
}
goto eccca;
E949c:
$aeb79 = $cedc0["order_total"];
goto c480c;
c998b:
$a7845 = $this->getCustomerHistory($Db528["ec_orderDetails"]["email"], $c58b0);
goto F0ac2;
Cc7eb:
if (!isset($cedc0["adjustment_plus"])) {
goto ac71f;
}
goto e161d;
dddbb:
$b175e = ["contents" => $f2de0["tiktok_items"], "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $ce100, 2, , ''), "description" => "Purchase", "transaction_id" => $c58b0];
goto Bd1f1;
c480c:
if (!isset($cedc0["adjustment_plus"])) {
goto af9f3;
}
goto Fa1b5;
Fb7df:
E76ff:
goto A7b26;
D6e1e:
be873:
goto fddd3;
F1dbe:
return $Db528["error"] = "Empty Order";
goto Ce29a;
A79e4:
$d1607 = [];
goto D627a;
Ae84e:
$E1d8b["search_string"] = $A2d05;
goto d37d1;
D4a35:
if (isset($c513c["twitter_purchase"]) && !empty($c513c["twitter_purchase"])) {
goto a5beb;
}
goto a95d5;
d3c17:
$c58b0 = $Db528["ec_orderDetails"]["order_id"];
goto Cdfe6;
A0d0d:
$ba42e = str_replace(" ", '', $Db528["ec_orderDetails"]["email"]);
goto Df1bd;
d8cc4:
if (!(isset($c513c["fb_shipping_exclude"]) && $c513c["fb_shipping_exclude"])) {
goto ed3e8;
}
goto c232e;
D4b42:
$c513c["cc"] = $be3f4["cc"];
goto Fb81d;
ac8e5:
$A407d = isset($Db528["ec_orderDetails"]["shipping_method"]) ? $Db528["ec_orderDetails"]["shipping_method"] : "shipping";
goto C657f;
fe3e8:
$Af6d1 = ["email" => $Db528["ec_orderDetails"]["email"], "event" => "order_completed", "cuid" => $this->getCuid(), "properties" => ["FIRSTNAME" => $Db528["ec_orderDetails"]["firstname"], "LASTNAME" => $Db528["ec_orderDetails"]["lastname"], "LOCATION" => $Db528["ec_orderDetails"]["payment_city"], "COUNTRY" => $Db528["ec_orderDetails"]["payment_country"], "TELEPHONE" => $Db528["ec_orderDetails"]["telephone"]], "eventdata" => ["id" => $this->GUID(), "cuid" => $this->getCuid(), "data" => []]];
goto fed85;
C8e31:
if (!(isset($A2d05) && !empty($A2d05))) {
goto c7424;
}
goto Ae84e;
ed5cd:
fe92f:
goto b0f01;
A9b73:
if ($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"]) {
goto b5085;
}
goto Fe688;
Faf99:
$d5ede = ["transaction_id" => $c58b0, "ecomm_prodid" => $f2de0["ecom_prodid"], "ecomm_pagetype" => "purchase", "ecomm_totalvalue" => $A3019, "currency" => $c513c["currency"], "items" => $f2de0["bing_items"]];
goto b93df;
B25c6:
$d5ede = false;
goto b62ff;
d5ae2:
$this->Log($aa044);
goto A7d7c;
cd6c7:
$e5431 = $cedc0["order_total"] - $cedc0["shipping"] - $cedc0["tax"];
goto Aa400;
b91a1:
$B5b4e = [];
goto f4058;
cd4b8:
$c513c["em"] = $be3f4["em"];
goto eb917;
E68cb:
Cb5b8:
goto dddbb;
fe3af:
$B05d4 = $Db528["ec_orderDetails"]["payment_city"];
goto Ce0c3;
Fa1b5:
$aeb79 = $aeb79 - $cedc0["adjustment_plus"];
goto f45fc;
Aa27d:
$ce100 = $B6ff9;
goto C158d;
C3857:
if (!$c513c["tiktok_status"]) {
goto b79a3;
}
goto b3c5b;
ff780:
c0bf1:
goto f4d9f;
be62d:
if (!$c513c["pixel"]) {
goto d6633;
}
goto bdb21;
da04c:
$c513c["st"] = $be3f4["st"];
goto c685b;
Cdfe6:
$A8e72 = $this->DeliveryEstimate("15:00:00", 5, $C3fdb);
goto Eea6f;
Ec77d:
$c3845 = $this->customer->getId();
goto A0d0d;
a6aa9:
$ed3cb = $Db528["ec_orderValue"] - $Db528["ec_orderShipping"] - $Db528["ec_orderTax"] + $Db528["adjustment"]["minus"] - $Db528["adjustment"]["plus"];
goto Df466;
Df1bd:
$Dcd05 = $this->formatPhone($Db528["ec_orderDetails"]["telephone"], $Db528["ec_orderDetails"]["payment_iso_code_2"]);
goto afcaf;
E757d:
if (!$c513c["bing_status"]) {
goto d67bc;
}
goto Faf99;
D48b8:
$b1da1 = $cedc0["order_total"] - $cedc0["tax"];
goto Daa85;
Cbda6:
B351e:
goto e2d92;
aec92:
goto B9acc;
goto d0de9;
d431b:
if (!empty($c58b0)) {
goto Aa8c5;
}
goto D6be1;
bc406:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto f7468;
}
goto C04f3;
d62e2:
$Af6d1 = [];
goto E0ab2;
fdc6b:
$Af6d1["eventdata"]["data"]["Miscalleneous"] = ["cart_DISCOUNT" => "0", "cart_DISCOUNT_TAX" => "0", "customer_USER " => $Db528["ec_orderDetails"]["customer_id"], "payment_METHOD" => $Db528["ec_orderDetails"]["payment_code"], "payment_METHOD_TITLE" => $Db528["ec_orderDetails"]["payment_method"], "customer_IP_ADDRESS" => $Db528["ec_orderDetails"]["ip"], "customer_USER_AGENT" => $Db528["ec_orderDetails"]["user_agent"]];
goto dede6;
Ce0c3:
$b5384 = isset($Db528["ec_orderDetails"]["payment_postcode"]) ? $this->formatPostcode($Db528["ec_orderDetails"]["payment_postcode"]) : '';
goto afae1;
A14b5:
$dccfe = number_format((float) $Db528["ec_orderValue"], 2, , '');
goto ba770;
Eb9b9:
F6560:
goto fb040;
E31d5:
return false;
goto Fb7df;
Cf24b:
if (!($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"])) {
goto ae2d9;
}
goto f3e0a;
Bf3c1:
$B2567 = $c513c["alt_currency"];
goto f2f2f;
A7d7c:
F2a49:
goto C98ad;
e73d2:
$c513c["ph"] = $be3f4["ph"];
goto F37e8;
c299a:
if (!(isset($c513c["aw_tax_exclude"]) && $c513c["aw_tax_exclude"])) {
goto Cf919;
}
goto D48b8;
d1a11:
$Aab5b = $cedc0["order_total"];
goto Cc7eb;
b3c81:
$B6ff9 = $f2de0["ecom_totalvalue"];
goto d2656;
fb040:
if (!$c513c["matomo_status"]) {
goto Cda3c;
}
goto a6ffb;
e2d92:
if (!(isset($c513c["sendinblue_status"]) && $c513c["sendinblue_status"])) {
goto eaab2;
}
goto fe3e8;
eccca:
$this->Log("DMT: Order Id Not Found in preparePurchase()");
goto de965;
f77dc:
$c140b = $c140b - $Db528["ec_orderTax"];
goto f88ef;
b93df:
d67bc:
goto A9dad;
a80af:
ae2d9:
goto Cbda6;
cdb2b:
$D41c7 = $Db528["ec_orderDetails"]["payment_iso_code_2"];
goto fce40;
A7b0b:
if (!$c513c["snap_pixel_status"]) {
goto de658;
}
goto f1eaf;
F5a55:
$ed3cb = 0;
goto B25c6;
B0e9f:
$e92d3 = isset($c513c["cj_currency"]) ? $c513c["cj_currency"] : $c513c["currency"];
goto cd6c7;
b62ff:
$Edc97 = false;
goto d431b;
A7129:
b5085:
goto ece82;
cc52f:
$c1649 = $c513c["twitter_purchase"];
goto ac3e8;
E2b21:
if (!(isset($c513c["adword_ec"]) && $c513c["adword_ec"])) {
goto c926c;
}
goto b3470;
b4a78:
goto b46bf;
goto A7129;
F0ac2:
$c36f9 = ["event" => "new_order", "eventAction" => "new_order", "eventLabel" => "Order Completed", "event_id" => $e7e18, "order_id" => $c58b0, "currency" => $Aa33a, "value" => $dccfe, "order_email" => $Db528["ec_orderDetails"]["email"], "email_hash" => $be3f4["em"], "tax" => $cfb0a, "shipping" => $Bdba7, "ga" => $A8ce3, "remarketing_ids" => $f2de0["remarketing_ids"], "adword_items" => $f2de0["aw_items"], "user_data" => $f2f93, "aw_merchant_id" => $c513c["aw_optional"] ? $c513c["aw_merchant_id"] : '', "aw_feed_country" => $c513c["aw_optional"] ? $c513c["aw_feed_country"] : '', "aw_feed_language" => $c513c["aw_optional"] ? $c513c["aw_feed_language"] : '', "content_ids" => $f2de0["ecom_prodid"], "number_items" => $f2de0["number_of_items"], "gtins" => isset($d1607) ? $d1607 : null, "conversion_value" => number_format((float) $b1da1, 2, , ''), "estimated_delivery" => $A8e72, "country_code" => $Db528["ec_orderDetails"]["shipping_iso_code_2"], "affiliation" => isset($Db528["ec_affiliate_code"]) ? $Db528["ec_affiliate_code"] : '', "cj_value" => $e5431, "cj_items" => $f2de0["cj_items"], "lifetime_value" => isset($a7845["total"]) ? $a7845["total"] : 0, "new_customer" => isset($a7845["new_customer"]) ? $a7845["new_customer"] : true];
goto C0189;
C586d:
$c513c = $this->config();
goto F6260;
Fe688:
$B2567 = $Aa33a;
goto b4a78;
C158d:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto Cb5b8;
}
goto cb334;
Adb56:
$c513c["ln"] = $be3f4["ln"];
goto e73d2;
E7195:
$A0690 = [];
goto b4c38;
f4058:
$C7054 = false;
goto E7195;
e161d:
$Aab5b = $Aab5b - $cedc0["adjustment_plus"];
goto d5a0d;
d0de9:
a5beb:
goto cc52f;
A7b26:
$e7e18 = isset($Db528["event_id"]) ? $Db528["event_id"] : "8-" . $this->eventid();
goto dab76;
A20c4:
$Af6d1["eventdata"]["data"]["Shipping_Details"] = ["shipping_FIRST_NAME" => $Db528["ec_orderDetails"]["shipping_firstname"], "shipping_LAST_NAME" => $Db528["ec_orderDetails"]["shipping_lastname"], "shipping_COMPANY " => $Db528["ec_orderDetails"]["shipping_company"], "shipping_ADDRESS_1" => $Db528["ec_orderDetails"]["shipping_address_1"], "shipping_ADDRESS_2" => $Db528["ec_orderDetails"]["shipping_address_2"], "shipping_CITY" => $Db528["ec_orderDetails"]["shipping_city"], "shipping_STATE" => $Db528["ec_orderDetails"]["shipping_zone"], "shipping_POSTCODE" => $Db528["ec_orderDetails"]["shipping_postcode"], "shipping_COUNTRY" => $Db528["ec_orderDetails"]["shipping_country"], "shipping_METHOD_TITLE" => $Db528["ec_orderDetails"]["shipping_method"]];
goto f0309;
eb917:
$c513c["fn"] = $be3f4["fn"];
goto Adb56;
cf3a1:
$d32c4 = ["order_id" => $c58b0, "email" => $Db528["ec_orderDetails"]["email"], "country" => $Db528["ec_orderDetails"]["shipping_iso_code_2"], "estimate" => $A8e72];
goto Eb9b9;
f3e0a:
$ed3cb = number_format($this->currency->format($ed3cb, $c513c["alt_currency"], '', false), 2, , '');
goto a80af;
C6436:
$E1d8b = [];
goto d62e2;
ece82:
$c140b = number_format($this->currency->format($c140b, $c513c["alt_currency"], '', false), 2, , '');
goto Bf3c1;
b0f01:
if (!$c513c["greview"]) {
goto F6560;
}
goto cf3a1;
c058d:
$cb6e9 = [];
goto B8a4b;
a28d9:
$D1baf = isset($c513c["cj_currency_value"]) && (int) $c513c["cj_currency_value"] > 0 ? (float) $c513c["cj_currency_value"] : 1;
goto B0e9f;
Db428:
$F234c = (int) $B6ff9 - (int) $Db528["ec_orderTax"];
goto F214e;
dede6:
eaab2:
goto E757d;
d972a:
$Db528 = $this->getOrder($c58b0);
goto Faae3;
e48be:
$E1d8b = ["currency" => $c513c["currency"], "content_ids" => $f2de0["ecom_prodid"], "contents" => $f2de0["snapchat_items"], "value" => $A3019, "order_id" => $c58b0, "num_items" => $f2de0["number_of_items"], "delivery_method" => $A407d, "payment_method" => $a81e4];
goto C8e31;
f4d9f:
if (!$c513c["performant_status"]) {
goto B351e;
}
goto a6aa9;
dab76:
$Aa33a = $Db528["ec_currency"];
goto A14b5;
f0309:
$Af6d1["eventdata"]["data"]["Order_Details"] = ["order_ID" => $c58b0, "order_KEY" => $c58b0, "order_TAX" => $cedc0["tax"], "order_SHIPPING_TAX" => 0, "order_SHIPPING" => $cedc0["shipping"], "order_PRICE" => $dccfe, "order_DATE" => $Db528["ec_orderDetails"]["date_added"], "order_SUBTOTAL" => $cedc0["sub_total"], "order_DOWNLOAD_LINK" => ''];
goto fdc6b;
afae1:
$c5f4c = $Db528["ec_orderDetails"]["payment_zone"];
goto cdb2b;
F54c9:
$A8e72 = date("Y-m-d", $A8e72);
goto Dabcf;
eb682:
if (!$c513c["twitter_status"]) {
goto C0f03;
}
goto D4a35;
Eea6f:
$f2de0 = $Db528["ec_orderProducts"];
goto b3c81;
Aa400:
if (!($e92d3 !== $c513c["currency"])) {
goto d2503;
}
goto F3505;
Aaf2c:
$A0690 = ["order" => ["order_id" => $c58b0, "revenue" => number_format((float) $Aab5b, 2, , ''), "shipping" => $Bdba7, "tax" => $cfb0a], "items" => $f2de0["skroutz_items"]];
goto D6e1e;
c232e:
$c140b = $c140b - $Db528["ec_orderShipping"];
goto Aaebe;
B8a4b:
$b175e = [];
goto B048b;
F214e:
$b1da1 = $Db528["ec_orderValue"];
goto dca6a;
c685b:
$c513c["pc"] = $be3f4["pc"];
goto D4b42;
afcaf:
$c782a = $Db528["ec_orderDetails"]["payment_address_1"];
goto fe3af;
f45fc:
af9f3:
goto cf513;
B048b:
$f9459 = [];
goto acd6c;
a921a:
$c513c["ad"] = $be3f4["ad"];
goto bb76f;
b4c38:
$f2f93 = [];
goto A79e4;
d5a0d:
ac71f:
goto Aaf2c;
D6be1:
if (!$this->dmt_debug) {
goto a6bd1;
}
goto ef4be;
E27ab:
$cb6e9 = ["value" => number_format((float) $Aee65, 2, , ''), "conversion_id" => $c58b0, "currency" => $Aa33a, "email_address" => $Db528["ec_orderDetails"]["email"], "phone_number" => $Db528["ec_orderDetails"]["telephone"], "contents" => $f2de0["twitter_items"]];
goto B56bf;
f1eaf:
$b748b = ["price" => $A3019, "currency" => $c513c["currency"], "item_ids" => $f2de0["ecom_prodid"], "contents" => $f2de0["snapchat_items"], "transaction_id" => $c58b0, "delivery_method" => $A407d, "payment_method" => $a81e4];
goto e48be;
aca07:
$be3f4 = ["user_id" => $c3845, "external_id" => $c3845, "customer_id" => $c3845, "email" => $ba42e, "telephone" => $Dcd05, "em" => $this->getHash($ba42e), "fn" => $this->getHash($f9e0d), "ln" => $this->getHash($Eca20), "ph" => $this->getHash($Dcd05["ph"]), "ph_e164" => $this->getHash($Dcd05["e164"]), "ad" => $this->getHash($c782a), "ct" => $this->getHash($B05d4), "pc" => $this->getHash($b5384), "st" => $this->getHash($c5f4c), "cc" => $this->getHash($D41c7)];
goto E2b21;
F3505:
$e5431 = $e5431 / $D1baf;
goto C987d;
A4164:
$aa044 = ["order_id" => $c58b0, "DATALAYER" => $c36f9, "revenue" => $Db528["ec_orderValue"], "tax" => $cfb0a, "shipping" => $Bdba7, "discount" => ''];
goto d5ae2;
Df466:
$ed3cb = number_format((float) $ed3cb, 2, , '');
goto Cf24b;
F0ddd:
$ce100 = $this->currency->format($B6ff9, $c513c["tiktok_alt_currency"], 0, false);
goto E68cb;
cb334:
$A881c = $c513c["tiktok_alt_currency"];
goto F0ddd;
ef4be:
$this->Log("DMT: Procedure Call preparePurchase(). Result: Order Id Empty");
goto d044b;
daf63:
C6e0a:
goto C3857;
de965:
F4fa1:
goto E31d5;
Cd4ce:
}
private function getOrder($c58b0)
{
goto F3ce6;
acf3c:
$Ddb25 = $c513c["tax"];
goto f96ed;
dba7d:
$this->load->model("checkout/marketing");
goto C3479;
Eae78:
$a54f2 = $dccfe / $Ddb25;
goto a24d5;
Bc8a7:
$this->Log("DMT: Order Id Not Found in gerOrder");
goto C9b85;
Bb34c:
A5945:
goto F213a;
D11bb:
$Db528["ec_affiliate_code"] = $D633a["name"];
goto E75d0;
e823f:
$Db528["adjustment"] = $this->getOrderTotalAdjustment($c58b0, $Db528["ec_orderDetails"]["currency_value"]);
goto B0b84;
A5e08:
$Db528["ec_orderCoupon"] = $this->getOrderCoupon($c58b0);
goto E4f78;
e64d9:
return $Db528;
goto B494f;
ef1e1:
$Db528["event_id"] = false;
goto C2b2c;
F213a:
$Db528["ec_language"] = $this->config->get("config_language");
goto A5e08;
d32e1:
return false;
goto Bb34c;
a24d5:
$cfb0a = $dccfe - $a54f2;
goto Ea2cb;
e1a81:
$Db528["hit"] = 0;
goto ef1e1;
E75d0:
B534b:
goto D0d1f;
Cbeb5:
return false;
goto a0aa2;
B0b4e:
if (!$d4bfa) {
goto B3a52;
}
goto Eae78;
Ed351:
$Db528["hit"] = $c63c0->row["hit"];
goto C435f;
Ce5d0:
$this->load->model("account/customer");
goto f6d97;
C3479:
$D633a = $this->model_checkout_marketing->getMarketingByCode($Db528["ec_orderDetails"]["tracking"]);
goto E7379;
F3ce6:
$this->load->model("checkout/order");
goto Ce5d0;
f96ed:
if (!(!isset($c58b0) || empty($c58b0))) {
goto a863e;
}
goto Cbeb5;
E4f78:
$Db528["ec_currency"] = $Db528["ec_orderDetails"]["currency_code"];
goto A632c;
C60ed:
$d4bfa = $c513c["override_tax"];
goto acf3c;
c2e41:
if ($c63c0->num_rows) {
goto C3ae4;
}
goto e1a81;
Ef24d:
C3ae4:
goto Ed351;
B0b84:
$Db528["ec_affiliate_code"] = '';
goto D8533;
Ea2cb:
$Bdba7 = $Bdba7 / $Ddb25;
goto debb5;
ceb57:
$cfb0a = $this->getOrderTax($c58b0) * $Db528["ec_orderDetails"]["currency_value"];
goto B0b4e;
Bec27:
$Db528["ec_orderValue"] = $dccfe;
goto e823f;
F21d8:
$Db528["ec_orderShipping"] = $Bdba7;
goto D3973;
f6d97:
$c513c = $this->config();
goto C60ed;
debb5:
B3a52:
goto F21d8;
C9b85:
ccb06:
goto d32e1;
bdc00:
$dccfe = $Db528["ec_orderDetails"]["total"] * $Db528["ec_orderDetails"]["currency_value"];
goto ceb57;
c46c3:
dd297:
goto e64d9;
C2b2c:
goto dd297;
goto Ef24d;
c8e7c:
$Db528["ec_orderDetails"]["coupon"] = $this->getOrderCoupon($c58b0);
goto b905e;
A132f:
$Db528["hit"] = 0;
goto c2e41;
a0aa2:
a863e:
goto ee487;
D0d1f:
fdba2:
goto eac9c;
C435f:
$Db528["event_id"] = $c63c0->row["event_id"];
goto c46c3;
D3973:
$Db528["ec_orderTax"] = $cfb0a;
goto Bec27;
E8b49:
if (!$this->dmt_debug) {
goto ccb06;
}
goto Bc8a7;
A632c:
$Bdba7 = $this->getOrderShipping($c58b0) * $Db528["ec_orderDetails"]["currency_value"];
goto bdc00;
D8533:
if (!(isset($Db528["ec_orderDetails"]["tracking"]) && !empty($Db528["ec_orderDetails"]["tracking"]))) {
goto fdba2;
}
goto dba7d;
ee487:
$Db528["ec_orderDetails"] = $this->model_checkout_order->getOrder($c58b0);
goto c1f91;
c1f91:
if ($Db528["ec_orderDetails"]) {
goto A5945;
}
goto E8b49;
eac9c:
$Db528["ec_orderProducts"] = $this->getOrderProducts($c58b0, $Db528["ec_orderDetails"], $Db528["ec_orderCoupon"], $Db528["ec_affiliate_code"]);
goto c8e7c;
E7379:
if (!$D633a) {
goto B534b;
}
goto D11bb;
b905e:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "analytics_tracking WHERE order_id = '" . (int) $c58b0 . "'");
goto A132f;
B494f:
}
private function getOrderProducts($c58b0, $cedc0, $e962b, $Cd42d)
{
goto E4294;
eb616:
$Db528["order_desc"] = '';
goto A65b0;
A936a:
dc5b5:
goto e5a60;
D7f05:
$Db528["sendinblue_products"] = [];
goto f04cc;
d0746:
$Db528 = [];
goto E1e59;
A65b0:
$Db528["bing_items"] = [];
goto A128e;
Eb8f3:
Bdbf0:
goto c6af1;
f04cc:
$Db528["ecom_prodid"] = [];
goto b392f;
Aae19:
$d4bfa = $c513c["override_tax"];
goto d842b;
c41b3:
foreach ($c8e6e->rows as $E4ccf) {
goto Cae55;
abdd6:
$Db528["matomo_items"][] = ["sku" => $ecc30, "name" => $fda0d, "category" => $C7834, "price" => $C9402, "quantity" => $Ea153];
goto B27c3;
A6162:
if ($D27f1 == 1) {
goto c23b7;
}
goto d075e;
D5e84:
$c484b = $E4ccf["price"] / $Ddb25;
goto A3a4b;
B5aae:
$Db528["ex_ecom_totalvalue"] += $c484b * $E4ccf["quantity"];
goto e3f2f;
C3836:
$Db528["orderProducts"][] = ["id" => $ecc30, "name" => $fda0d, "category" => $C7834, "brand" => $F2554, "variant" => $D0fd4, "quantity" => $Ea153, "price" => $C9402, "currency" => $cedc0["currency_code"]];
goto Aa986;
Dd5b7:
$Db528["tiktok_items"][] = ["content_category" => $Ea555, "content_name" => $fda0d, "price" => $E06bd, "content_id" => $ecc30, "quantity" => $Ea153, "brand" => $F2554, "content_type" => "product", "description" => $fda0d, "currency" => $A881c, "value" => $ce100];
goto B415f;
f5e16:
edfcd:
goto c7612;
F145a:
$d1607 = $B4f19["ean"];
goto C7dd0;
B27c3:
a976c:
goto d6621;
Ca736:
$Db528["fb_contents"][] = ["id" => $ecc30, "quantity" => $Ea153, "item_price" => number_format($Ff865, 2, , '')];
goto Eb3c6;
C2905:
$a458d = $c484b;
goto Ad0ca;
D572d:
b3206:
goto F8aeb;
F27d4:
a0dee:
goto Cc97d;
Eb3c6:
B4efc:
goto e2e66;
f572e:
if (isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"]) {
goto A81e0;
}
goto E7522;
Ad5cf:
$Db528["ecom_prodid"][] = $ecc30;
goto c6dc2;
F95ec:
ca7af:
goto f572e;
De9d8:
if (!$d4bfa) {
goto B3712;
}
goto D5e84;
d9e60:
$Db528["products"][] = ["name" => $E4ccf["name"], "title" => $fda0d, "model" => $C6158, "pid" => $ecc30, "gtin" => $d1607, "sku" => $B49ec, "product_id" => $e9d1b, "category" => $Ea555, "category_id" => $b249b, "brand" => $F2554, "option" => $Fc6a5, "quantity" => $Ea153, "price" => $C9402, "fprice" => number_format((float) $Ff056, 2, , ''), "ex_price" => $c484b, "fex_price" => $Ff865, "ftotal" => number_format((float) $c2fce, 2, , ''), "total" => number_format((float) $Adddc, 2, , ''), "discount" => 0, "cost" => isset($A9489) ? $A9489 : 0];
goto E598b;
Aa986:
if (!$c513c["matomo_status"]) {
goto a976c;
}
goto abdd6;
B137b:
if (!$c513c["pinterest_status"]) {
goto A2ca0;
}
goto Dadee;
Dad21:
$A881c = $c513c["tiktok_alt_currency"];
goto d8c84;
d57f9:
$Db528["affiliate_gateway"][] = ["id" => $ecc30, "name" => $fda0d, "category" => $C7834, "brand" => $F2554, "cat" => $this->getProductCatID($e9d1b), "quantity" => $Ea153, "price" => $C9402, "currency" => $cedc0["currency_code"]];
goto fe989;
Faaa2:
$Db528["order_desc"] .= $fda0d;
goto ce03e;
B3227:
Ef1fd:
goto A6162;
f2993:
foreach ($De099 as $a17f7) {
goto af80d;
B4212:
$D0fd4 .= $a17f7["name"] . ": " . (mb_strlen($f5425) > 50 ? mb_substr($f5425, 0, 50) . ".." : $f5425) . " ";
goto c3979;
cc2bd:
e804a:
goto A484b;
af80d:
if (isset($a17f7["type"]) && $a17f7["type"] != "file") {
goto e804a;
}
goto F7977;
ec4a6:
goto abd8e;
goto cc2bd;
C81e3:
abd8e:
goto B4212;
A484b:
$f5425 = isset($a17f7["value"]) ? $a17f7["value"] : '';
goto C81e3;
c3979:
d8c87:
goto bad19;
F7977:
$f5425 = '';
goto ec4a6;
bad19:
}
goto b0174;
a7e50:
$D0fd4 = '';
goto f2993;
db3d9:
A8e8c:
goto C071c;
Dadee:
$Db528["pinterest_items"][] = ["product_id" => $ecc30, "product_name" => $fda0d, "product_category" => $C7834, "product_variant" => $D0fd4, "product_brand" => $F2554, "product_quantity" => $Ea153, "product_price" => $C9402];
goto D9669;
F5721:
c9846:
goto Cac0d;
E9532:
Ec4ed:
goto Fd153;
Dc298:
$Db528["skroutz_items"][] = ["order_id" => $c58b0, "product_id" => $ecc30, "name" => $fda0d, "price" => $C9402, "quantity" => $Ea153];
goto d2939;
ade46:
F6c71:
goto a7e50;
b6bab:
E7a05:
goto d1e7a;
eee0b:
B3712:
goto de4c2;
B2385:
if (!$c513c["bing_status"]) {
goto A16a7;
}
goto E9a9a;
D9669:
A2ca0:
goto F7694;
Fa72a:
$ce100 = $this->currency->format($ce100, $c513c["tiktok_alt_currency"], 0, false);
goto Fd159;
Cc97d:
if (!$c513c["tiktok_status"]) {
goto ad338;
}
goto D0164;
f893d:
$Db528["sendinblue_products"][] = ["id" => $ecc30, "name" => $fda0d, "quantity" => $Ea153, "price" => $C9402, "url" => str_replace("&", "&", $this->url->link("product/product", "product_id=" . $e9d1b))];
goto b6bab;
a08e3:
c23b7:
goto Faaa2;
e6c54:
$Ff865 = $this->currency->format($E4ccf["price"], $c513c["alt_currency"], 0, false);
goto De9d8;
cf383:
$b249b = isset($E88d3["item_list_id"]) ? $E88d3["item_list_id"] : '';
goto c449f;
d2939:
B75ce:
goto D4c62;
bd1b1:
$F2554 = '';
goto ccbf2;
Afd9f:
$A9489 += isset($E4ccf["cost"]) ? $E4ccf["cost"] * (int) $Ea153 : 0;
goto Bccf3;
f10c8:
$Db528["number_of_items"] = $Db528["number_of_items"] + $Ea153;
goto Ac838;
E7522:
$Db528["fb_contents"][] = ["id" => $ecc30, "quantity" => $Ea153, "item_price" => number_format((float) $Ff056, 2, , '')];
goto F8968;
Db8fa:
$d1607 = '';
goto Cf0e4;
F7694:
if (!$c513c["admitad_status"]) {
goto A8e8c;
}
goto Fed50;
ccbf2:
$A9489 = 0;
goto e9dbc;
Fd159:
$E06bd = $this->currency->format($E06bd, $c513c["tiktok_alt_currency"], 0, false);
goto Dad21;
a8277:
$Db528["aw_items"][] = ["id" => $ecc30, "quantity" => $Ea153, "price" => $C9402];
goto A2dba;
Ac838:
$D27f1++;
goto f5e16;
e9729:
$Db528["cj_items"][] = ["item_id" => $ecc30, "price" => $a458d, "quantity" => $Ea153, "discount" => 0];
goto D572d;
ca5ee:
$fda0d = '';
goto Db8fa;
Cf0e4:
$ecc30 = '';
goto bd1b1;
c1885:
if (isset($E4ccf["product_id"])) {
goto eb30e;
}
goto b9208;
Bb925:
foreach ($De099 as $a17f7) {
$Fc6a5[] = ["name" => $a17f7["name"] . " " . (mb_strlen($a17f7["value"]) > 100 ? mb_substr($a17f7["value"], 0, 100) . ".." : $a17f7["value"])];
c67ea:
}
goto ade46;
cff6b:
$ecc30 = $this->tagmangerPmap($C6158, $B49ec, $e9d1b);
goto A7e35;
d585c:
Ac50d:
goto cff6b;
d8c84:
aae5c:
goto Dd5b7;
c449f:
$be627 = isset($E88d3["item_list_name"]) ? $E88d3["item_list_name"] : '';
goto A4c88;
E7633:
$Be641 = number_format($c484b, 2, , '');
goto a0b0a;
Bfddb:
$Db528["linkwise_items"][] = ["product_id" => $ecc30, "name" => $fda0d, "price" => $Be641, "quantity" => $Ea153];
goto F27d4;
Bafd5:
b12a1:
goto Cf5b2;
f1009:
$Db528["twitter_items"][] = ["content_id" => $ecc30, "content_type" => "product", "content_name" => $fda0d, "num_items" => $Ea153, "content_price" => $C9402, "content_group_id" => ''];
goto A2b43;
d96b3:
$C9402 = number_format((float) $bdea5, 2, , '');
goto E7633;
c0501:
A81e0:
goto Ca736;
E7095:
if (!$dfa99) {
goto C50d0;
}
goto f4aab;
d6621:
if (isset($c513c["aw_tax_exclude"]) && $c513c["aw_tax_exclude"]) {
goto Ec4ed;
}
goto a8277;
de4c2:
$Efa9c = $bdea5 * $E4ccf["quantity"];
goto d96b3;
C8974:
if (!$c513c["snap_pixel_status"]) {
goto ca7af;
}
goto f8f49;
F1d89:
$C6158 = $B4f19["model"] ? $B4f19["model"] : $e9d1b;
goto d585c;
f1dea:
$c484b = $this->currency->format($E4ccf["price"], $cedc0["currency_code"], $cedc0["currency_value"], false);
goto e6c54;
e9e67:
if (!(isset($B4f19) && $this->check_array($B4f19))) {
goto Ac50d;
}
goto a39e8;
F8aeb:
if (!$c513c["performant_status"]) {
goto B22ee;
}
goto d57f9;
C071c:
if (!$c513c["skroutz_status"]) {
goto B75ce;
}
goto Dc298;
Fd153:
$Db528["aw_items"][] = ["id" => $ecc30, "quantity" => $Ea153, "price" => $Be641];
goto B3227;
A7e35:
$fda0d = $this->tagmangerPtitle($E4ccf["name"], $F2554, $C6158, $e9d1b);
goto e6db4;
ce03e:
c6c6d:
goto B2385;
c498d:
$D0fd4 = mb_substr($D0fd4, 0, 499);
goto e9e67;
a39e8:
$F2554 = $this->cleanStr($B4f19["manufacturer"]);
goto F145a;
a0b0a:
$Ea153 = $E4ccf["quantity"];
goto Ad5cf;
F8968:
goto B4efc;
goto c0501;
fe989:
B22ee:
goto B137b;
F9494:
eb30e:
goto Be413;
E598b:
$Db528["ga4_items"][] = ["item_id" => $ecc30, "item_name" => $fda0d, "item_brand" => $F2554, "item_category" => $C7834, "item_category2" => $C0d0c, "item_category3" => $fe36c, "item_category4" => $bf395, "item_category5" => $cda6c, "item_list_id" => $b249b, "item_list_name" => $be627, "item_variant" => $D0fd4, "affiliation" => isset($Cd42d) ? $Cd42d : '', "discount" => 0, "coupon" => isset($e962b) ? $e962b : '', "price" => $C9402, "currency" => $cedc0["currency_code"], "quantity" => $Ea153, "index" => $D27f1];
goto C3836;
d1e7a:
if (!$dfa99) {
goto Ecc87;
}
goto Afd9f;
f8f49:
$Db528["snapchat_items"][] = ["id" => $ecc30, "quantity" => $Ea153, "item_price" => number_format($Ff865, 2, , '')];
goto F95ec;
f7957:
$C0d0c = isset($E88d3["item_category2"]) ? $E88d3["item_category2"] : '';
goto eb7ff;
Cac0d:
$a458d = $c484b / $D1baf;
goto b462c;
c6dc2:
$Db528["ecom_totalvalue"] += $Efa9c;
goto B5aae;
e9dbc:
$Fc6a5 = [];
goto c1885;
A2b43:
e1eee:
goto C8974;
e3f2f:
$Db528["remarketing_ids"][] = ["id" => (string) $ecc30, "google_business_vertical" => "retail"];
goto d9e60;
D4c62:
if (!$c513c["linkwise_status"]) {
goto a0dee;
}
goto Bfddb;
A3a4b:
$Ff865 = $this->currency->format($c484b, $c513c["alt_currency"], 0, false);
goto Dcf93;
e2e66:
if (!$c513c["sendinblue_status"]) {
goto E7a05;
}
goto f893d;
Cae55:
$E88d3 = array();
goto f184f;
A4c88:
$C7834 = isset($E88d3["item_category"]) ? $E88d3["item_category"] : '';
goto f7957;
Bccf3:
Ecc87:
goto f10c8;
Fed50:
$Db528["admitad"][] = ["product_id" => $ecc30, "category" => isset($c513c["admitad_category"]) ? $c513c["admitad_category"] : "1", "price" => $C9402, "currency" => $cedc0["currency_code"], "quantity" => $Ea153, "type" => isset($c513c["admitad_additional_type"]) ? $c513c["admitad_additional_type"] : "sale"];
goto db3d9;
Cf5b2:
$De099 = $this->getOrderOptions($c58b0, $E4ccf["order_product_id"]);
goto Bb925;
c6e85:
A16a7:
goto e8b27;
e043c:
$bdea5 = $this->currency->format($E4ccf["price"] + ($this->config->get("config_tax") ? $E4ccf["tax"] : 0), $cedc0["currency_code"], $cedc0["currency_value"], false);
goto F1142;
Ad0ca:
goto d8249;
goto F5721;
f4aab:
$A9489 = $this->model_extension_module_dmt->getProductCost($e9d1b);
goto B4d8c;
Dcf93:
$c484b = $this->currency->format($c484b, $cedc0["currency_code"], $cedc0["currency_value"], false);
goto eee0b;
bd823:
$a458d = number_format((float) $a458d, 2, , '');
goto e9729;
d9d79:
if (!$c513c["twitter_status"]) {
goto e1eee;
}
goto f1009;
c1cc0:
goto c6c6d;
goto a08e3;
Cddaf:
$cda6c = isset($E88d3["item_category5"]) ? $E88d3["item_category5"] : '';
goto e043c;
B78b4:
$c2fce = $this->currency->format($E4ccf["total"] + ($this->config->get("config_tax") ? $E4ccf["tax"] * $E4ccf["quantity"] : 0), $c513c["alt_currency"], 0, false);
goto f1dea;
f184f:
$B49ec = '';
goto B7386;
d075e:
$Db528["order_desc"] .= "+" . $fda0d;
goto c1cc0;
e8b27:
if (!$F0b6e) {
goto b3206;
}
goto B9ced;
Fba29:
$E06bd = $bdea5;
goto E14d1;
eb7ff:
$fe36c = isset($E88d3["item_category3"]) ? $E88d3["item_category3"] : '';
goto C0f2f;
F1142:
$Ff056 = $this->currency->format($E4ccf["price"] + ($this->config->get("config_tax") ? $E4ccf["tax"] : 0), $c513c["alt_currency"], 0, false);
goto B81f1;
B4d8c:
C50d0:
goto Bafd5;
Be413:
$e9d1b = $E4ccf["product_id"];
goto b9d34;
b0174:
E64c1:
goto c498d;
B415f:
ad338:
goto d9d79;
e6db4:
$Ea555 = isset($E88d3["category"]) ? $E88d3["category"] : '';
goto cf383;
B9ced:
$a458d = 0;
goto b456e;
B81f1:
$Adddc = $this->currency->format($E4ccf["total"] + ($this->config->get("config_tax") ? $E4ccf["tax"] * $E4ccf["quantity"] : 0), $cedc0["currency_code"], $cedc0["currency_value"], false);
goto B78b4;
aa6a2:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto aae5c;
}
goto Fa72a;
E14d1:
$ce100 = $Efa9c;
goto aa6a2;
A2dba:
goto Ef1fd;
goto E9532;
d245d:
$E88d3 = $this->getProductCatName($e9d1b);
goto E7095;
C0f2f:
$bf395 = isset($E88d3["item_category4"]) ? $E88d3["item_category4"] : '';
goto Cddaf;
b456e:
if ($e92d3 != $c513c["currency"]) {
goto c9846;
}
goto C2905;
D0164:
$A881c = $cedc0["currency_code"];
goto Fba29;
b9d34:
$B4f19 = $this->model_extension_module_dmt->getProductInfo($e9d1b);
goto d245d;
b9208:
goto edfcd;
goto cce3b;
b462c:
d8249:
goto bd823;
B7386:
$C6158 = '';
goto ca5ee;
cce3b:
goto b12a1;
goto F9494;
C7dd0:
$B49ec = $B4f19["sku"];
goto F1d89;
E9a9a:
$Db528["bing_items"][] = ["id" => $ecc30, "price" => $C9402, "quantity" => $Ea153];
goto c6e85;
c7612:
}
goto Eb8f3;
D7737:
$Db528["matomo_items"] = [];
goto dfc10;
f7686:
Cbc27:
goto F5c34;
e4de8:
$Db528["number_of_items"] = 0;
goto c863c;
accf9:
foreach ($b5a78->rows as $c80f6) {
goto Aff04;
Ebfd1:
$a458d = $c484b / $D1baf;
goto ddb9a;
E1412:
A87ce:
goto Bd65d;
ae204:
goto de290;
goto c8ef3;
da353:
if ($e92d3 != $c513c["currency"]) {
goto fb9e2;
}
goto f4ddb;
ddb9a:
de290:
goto e7fc0;
B85ad:
$A881c = $c513c["tiktok_alt_currency"];
goto d2e79;
e6d2f:
$Db528["affiliate_gateway"][] = ["id" => $ecc30, "name" => $fda0d, "category" => "voucher", "brand" => '', "cat" => '', "quantity" => $Ea153, "price" => $C9402, "currency" => $cedc0["currency_code"]];
goto E1412;
Ec355:
A6681:
goto f737d;
a37a3:
$Db528["admitad"][] = ["product_id" => $ecc30, "category" => isset($c513c["admitad_category"]) ? $c513c["admitad_category"] : "1", "price" => $C9402, "currency" => $cedc0["currency_code"], "quantity" => $Ea153, "type" => isset($c513c["admitad_additional_type"]) ? $c513c["admitad_additional_type"] : "sale"];
goto f91ef;
Ac805:
goto A6681;
goto Cf84b;
d1087:
if (isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"]) {
goto E5136;
}
goto Cd5ad;
B477d:
$ce100 = $this->currency->format($ce100, $c513c["tiktok_alt_currency"], 0, false);
goto C9df1;
d0d18:
if (!$c513c["pinterest_status"]) {
goto cdeab;
}
goto d3e9e;
c5458:
F1046:
goto c47d3;
e7fc0:
$a458d = number_format((float) $a458d, 2, , '');
goto E3c09;
B15ea:
$fb30f = $c80f6["amount"];
goto fde77;
Aa0d3:
$c2fce = $this->currency->format($fb30f, $c513c["alt_currency"], 0, false);
goto b08ff;
Cd5ad:
$Db528["fb_contents"][] = ["id" => $ecc30, "quantity" => $Ea153, "item_price" => number_format((float) $Ff056, 2, , '')];
goto F6350;
f9b53:
$Db528["skroutz_items"][] = ["order_id" => $c58b0, "product_id" => $ecc30, "name" => $fda0d, "price" => $C9402, "quantity" => $Ea153];
goto c5458;
C3a35:
$Db528["tiktok_items"][] = ["content_category" => "Voucher", "content_name" => $fda0d, "price" => $E06bd, "content_id" => $ecc30, "quantity" => $Ea153, "brand" => '', "content_type" => "product", "description" => $fda0d, "currency" => $A881c, "value" => $ce100];
goto D8978;
abb43:
if (!$c513c["twitter_status"]) {
goto F1586;
}
goto da1f4;
D8978:
Fd943:
goto abb43;
A8666:
e63fb:
goto D80cb;
b4d88:
$Ff865 = $this->currency->format($fb30f, $c513c["alt_currency"], 0, false);
goto Ac805;
f4ddb:
$a458d = $c484b;
goto ae204;
C677b:
$Ff056 = $this->currency->format($fb30f, $c513c["alt_currency"], 0, false);
goto dcbf6;
C396e:
if (!$c513c["tiktok_status"]) {
goto Fd943;
}
goto e814e;
D80cb:
if (!$dfa99) {
goto Ea13d;
}
goto f6deb;
da1f4:
$Db528["twitter_items"][] = ["content_id" => $ecc30, "content_type" => "product", "content_name" => $fda0d, "num_items" => $Ea153, "content_price" => $C9402, "content_group_id" => ''];
goto E2dea;
Cb8de:
F175b:
goto d0d18;
E8550:
$ecc30 = $fda0d;
goto B15ea;
b08ff:
if ($d4bfa) {
goto A4f2f;
}
goto A82b7;
c6e0b:
if (!(!empty($fda0d) || !empty($bdea5))) {
goto A7c7a;
}
goto C6d6e;
B14f2:
if (!$c513c["bing_status"]) {
goto A1460;
}
goto C169a;
d3e9e:
$Db528["pinterest_items"][] = ["product_id" => $ecc30, "product_name" => $fda0d, "product_category" => "voucher", "product_variant" => '', "product_brand" => '', "product_quantity" => $Ea153, "product_price" => $C9402];
goto C4e4b;
Ae040:
if (!$c513c["matomo_status"]) {
goto Aa95a;
}
goto e9f36;
C4e4b:
cdeab:
goto B14f2;
a46cf:
A1460:
goto Bd99f;
fde77:
$bdea5 = $this->currency->format($fb30f, $cedc0["currency_code"], $cedc0["currency_value"], false);
goto C677b;
Ee649:
$D27f1++;
goto a3da5;
C9df1:
$E06bd = $this->currency->format($E06bd, $c513c["tiktok_alt_currency"], 0, false);
goto B85ad;
f737d:
$C9402 = number_format((float) $bdea5, 2, , '');
goto cc76b;
f5504:
$ce100 = $bdea5;
goto b5b37;
D21e3:
if (!$c513c["skroutz_status"]) {
goto F1046;
}
goto f9b53;
B3630:
a9230:
goto e8fa7;
f91ef:
bed49:
goto D21e3;
cd320:
A74bc:
goto C396e;
e9f36:
$Db528["matomo_items"][] = ["sku" => $fda0d, "name" => $fda0d, "category" => '', "price" => $C9402, "quantity" => $Ea153];
goto F7cba;
dcbf6:
$Adddc = $this->currency->format($fb30f, $cedc0["currency_code"], $cedc0["currency_value"], false);
goto Aa0d3;
cc76b:
$Be641 = number_format($c484b, 2, , '');
goto Eb0f9;
c0a81:
ef521:
goto d1087;
Eb0f9:
$Ea153 = 1;
goto c6e0b;
C6d6e:
$Db528["products"][] = ["name" => $fda0d, "title" => $fda0d, "model" => $fda0d, "pid" => $fda0d, "gtin" => '', "sku" => '', "product_id" => $fda0d, "category" => "Gift Voucher", "category_id" => "Gift Voucher", "brand" => '', "option" => array(), "quantity" => 1, "price" => $C9402, "fprice" => number_format((float) $Ff056, 2, , ''), "ex_price" => $c484b, "fex_price" => $Ff865, "ftotal" => number_format((float) $c2fce, 2, , ''), "total" => number_format((float) $Adddc, 2, , ''), "discount" => 0, "cost" => isset($A9489) ? $A9489 : 0];
goto c5a33;
D8985:
Ea13d:
goto F1b53;
E3c09:
$Db528["cj_items"][] = ["item_id" => $ecc30, "price" => $a458d, "quantity" => $Ea153, "discount" => 0];
goto Cb8de;
a3da5:
A7c7a:
goto B529f;
c8ef3:
fb9e2:
goto Ebfd1;
F1b53:
$Db528["fb_items"] = $Db528["fb_items"] + $Ea153;
goto cc1f8;
c5a33:
$Db528["ga4_items"][] = ["item_id" => $fda0d, "item_name" => $fda0d, "item_brand" => '', "item_category" => "Gift Voucher", "item_category2" => '', "item_category3" => '', "item_category4" => '', "item_category5" => '', "item_list_id" => '', "item_list_name" => '', "item_variant" => '', "affiliation" => '', "discount" => 0, "coupon" => '', "price" => $C9402, "currency" => $c513c["currency"], "quantity" => 1, "index" => $D27f1];
goto Ae040;
C5658:
$c484b = $this->currency->format($c484b, $cedc0["currency_code"], $cedc0["currency_value"], false);
goto Ec355;
d2e79:
d916d:
goto C3a35;
C169a:
$Db528["bing_items"][] = ["id" => $ecc30, "price" => $C9402, "quantity" => $Ea153];
goto a46cf;
b6e70:
if (!$F0b6e) {
goto F175b;
}
goto d60a9;
F6350:
goto e63fb;
goto f6315;
B7118:
$Ff865 = $this->currency->format($c484b, $c513c["alt_currency"], 0, false);
goto C5658;
f6315:
E5136:
goto C9a78;
d60a9:
$a458d = 0;
goto da353;
Cf84b:
A4f2f:
goto Ea858;
F1a77:
Fce0b:
goto b6e70;
Bc2d4:
if (isset($c513c["aw_tax_exclude"]) && $c513c["aw_tax_exclude"]) {
goto a9230;
}
goto f6934;
e7293:
$E06bd = $bdea5;
goto f5504;
b504e:
goto Fce0b;
goto B3630;
Ea858:
$c484b = $fb30f;
goto B7118;
A82b7:
$c484b = $this->currency->format($fb30f, $cedc0["currency_code"], $cedc0["currency_value"], false);
goto b4d88;
e814e:
$A881c = $cedc0["currency_code"];
goto e7293;
e8fa7:
$Db528["aw_items"][] = ["id" => $ecc30, "quantity" => $Ea153, "price" => $Be641];
goto F1a77;
cc1f8:
$D27f1++;
goto Ee649;
f6deb:
$A9489 += isset($E4ccf["cost"]) ? $E4ccf["cost"] * (int) $Ea153 : 0;
goto D8985;
E2dea:
F1586:
goto D5f0c;
B529f:
E5b78:
goto Aade8;
Bd65d:
if (!$c513c["admitad_status"]) {
goto bed49;
}
goto a37a3;
D5f0c:
if (!$c513c["snap_pixel_status"]) {
goto ef521;
}
goto dbdb7;
Aff04:
$fda0d = $this->cleanStr($c80f6["description"]);
goto E8550;
C9a78:
$Db528["fb_contents"][] = ["id" => $ecc30, "quantity" => $Ea153, "item_price" => number_format($Ff865, 2, , '')];
goto A8666;
F7cba:
Aa95a:
goto Bc2d4;
Bd99f:
if (!$c513c["performant_status"]) {
goto A87ce;
}
goto e6d2f;
c47d3:
if (!$c513c["linkwise_status"]) {
goto A74bc;
}
goto acab0;
b5b37:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto d916d;
}
goto B477d;
f6934:
$Db528["aw_items"][] = ["id" => $ecc30, "quantity" => $Ea153, "price" => $C9402];
goto b504e;
dbdb7:
$Db528["snapchat_items"][] = ["id" => $ecc30, "quantity" => $Ea153, "item_price" => number_format($Ff865, 2, , '')];
goto c0a81;
acab0:
$Db528["linkwise_items"][] = ["product_id" => $ecc30, "name" => $fda0d, "price" => $Be641, "quantity" => $Ea153];
goto cd320;
Aade8:
}
goto A4f4b;
d842b:
$Ddb25 = $c513c["tax"];
goto A48ee;
e3354:
goto Cbc27;
goto ad271;
dc3a4:
$e92d3 = isset($c513c["cj_currency"]) ? $c513c["cj_currency"] : $c513c["currency"];
goto A936a;
c6af1:
$b5a78 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_voucher WHERE order_id = '" . (int) $c58b0 . "'");
goto Cd114;
ad271:
dab69:
goto B04a4;
C6d21:
$F0b6e = true;
goto c0c2c;
A4f4b:
A798f:
goto a1a07;
b0d13:
$Db528["affiliate_gateway"] = [];
goto fa5f4;
fa5f4:
$Db528["admitad"] = [];
goto adeff;
C1af1:
goto dc5b5;
goto f5e37;
C9e33:
$Db528["tiktok_items"] = [];
goto Ca7f9;
adeff:
$Db528["skroutz_items"] = [];
goto d0fff;
E4294:
$this->load->model("extension/module/dmt");
goto e9226;
Cd114:
if (!$b5a78->num_rows) {
goto ffd81;
}
goto F81b2;
f2705:
$c8e6e = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_product WHERE order_id = '" . (int) $c58b0 . "'");
goto d0746;
c131c:
return $Db528;
goto A34f5;
e5a60:
$D27f1 = 1;
goto c41b3;
B97dc:
$Db528["ga4_items"] = [];
goto df8a1;
d0fff:
$Db528["linkwise_items"] = [];
goto C9e33;
c0c2c:
$D1baf = isset($c513c["cj_currency_value"]) && (int) $c513c["cj_currency_value"] > 0 ? (float) $c513c["cj_currency_value"] : 1;
goto dc3a4;
F81b2:
$D27f1 = 1;
goto accf9;
E1e59:
$Db528["products"] = [];
goto B97dc;
e83ad:
$Db528["fb_contents"] = [];
goto D7737;
F5c34:
if (isset($c513c["cj_status"]) && $c513c["cj_status"]) {
goto F3257;
}
goto De672;
a133e:
$Db528["cj_items"] = [];
goto D7f05;
a1a07:
ffd81:
goto c131c;
Fc3db:
$Db528["ex_ecom_totalvalue"] = 0;
goto e4de8;
A48ee:
if (isset($c513c["custom_cost_event"]) && $c513c["custom_cost_event"]) {
goto dab69;
}
goto Ef1c7;
dfc10:
$Db528["aw_items"] = [];
goto a133e;
c863c:
$Db528["cost"] = 0;
goto eb616;
B04a4:
$dfa99 = true;
goto f7686;
b392f:
$Db528["ecom_totalvalue"] = 0;
goto Fc3db;
ac135:
$Db528["snapchat_items"] = [];
goto e83ad;
A128e:
$Db528["pinterest_items"] = [];
goto Aae19;
Ca7f9:
$Db528["twitter_items"] = [];
goto ac135;
Ef1c7:
$dfa99 = false;
goto e3354;
df8a1:
$Db528["remarketing_ids"] = [];
goto b0d13;
e9226:
$c513c = $this->settings;
goto f2705;
f5e37:
F3257:
goto C6d21;
De672:
$F0b6e = false;
goto C1af1;
A34f5:
}
private function getOrderOptions($c58b0, $d704e)
{
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_option WHERE order_id = '" . (int) $c58b0 . "' AND order_product_id = '" . (int) $d704e . "'");
return $c63c0->rows;
}
private function getOrderTax($c58b0)
{
goto D7177;
D7177:
$c539c = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE order_id = '" . (int) $c58b0 . "' AND code = 'tax'");
goto db0db;
Aaf0a:
$cfb0a = $c539c->row["value"];
goto ad1a7;
ad1a7:
Db6a9:
goto cc388;
cc388:
return $cfb0a;
goto f8ce7;
ae22c:
if (!$c539c->num_rows) {
goto Db6a9;
}
goto Aaf0a;
db0db:
$cfb0a = "0.";
goto ae22c;
f8ce7:
}
private function getOrderShipping($c58b0)
{
goto cada0;
d07ba:
B53a4:
goto e85cd;
cada0:
$Bad31 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE order_id = '" . (int) $c58b0 . "' AND code = 'shipping'");
goto Abadb;
a5e50:
$Bdba7 = $Bad31->row["value"];
goto d07ba;
Be328:
if (!$Bad31->num_rows) {
goto B53a4;
}
goto a5e50;
Abadb:
$Bdba7 = "0.";
goto Be328;
e85cd:
return $Bdba7;
goto e42fc;
e42fc:
}
private function getOrderCoupon($c58b0)
{
goto B669f;
C623e:
$fb7f0 = $ac2bb->row["title"];
goto aadf9;
e42b1:
if (!$ac2bb->num_rows) {
goto a636f;
}
goto C623e;
C256f:
$fb7f0 = '';
goto e42b1;
B669f:
$ac2bb = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE order_id = '" . (int) $c58b0 . "' AND code = 'coupon'");
goto C256f;
c3af8:
return $fb7f0;
goto F9e1f;
aadf9:
a636f:
goto c3af8;
F9e1f:
}
private function getOrderTotalAdjustment($c58b0, $f5425)
{
goto Bcc69;
Daa3a:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE \xd\xa \x9 \x9order_id = '" . (int) $c58b0 . "' AND \xd\xa \x9 code = 'sub_total'");
goto af8a0;
ab514:
$a13d2 = $c63c0->row["value"];
goto c41fe;
c41fe:
E6599:
goto Eed3a;
df189:
if (!isset($c513c["total_plus"]) || !isset($c513c["total_minus"])) {
goto d55c2;
}
goto Bf5e0;
a6079:
$b199f = 0;
goto a214c;
A0191:
$Ddb25 = $c513c["tax"];
goto df189;
Efbf7:
$d4bfa = $c513c["override_tax"];
goto A0191;
E2c08:
return $Db528;
goto f3bab;
Bcc69:
$c513c = $this->config();
goto d9613;
fad8f:
$Db528 = ["plus" => $d5895 * $f5425, "minus" => $b199f * $f5425, "sub_total" => $a13d2 * $f5425, "order_totals" => $f3d77];
goto E2c08;
af8a0:
if (!$c63c0->num_rows) {
goto E6599;
}
goto ab514;
Bdf36:
$f3d77 = [];
goto Efbf7;
fa619:
$Dfc7f = ["cod_fee", "codfee_payment", "handling", "klarna_fee", "low_order_fee", "advancedcodfee", "xfeepro"];
goto e9256;
a214c:
$a13d2 = 0;
goto Bdf36;
acab5:
if (!$c63c0->num_rows) {
goto d623f;
}
goto c51c1;
Eb573:
if (!$d4bfa) {
goto B7b35;
}
goto b1d6c;
bf479:
d55c2:
goto fa619;
C2360:
$b199f = $b199f / $Ddb25;
goto E675a;
abfd3:
foreach ($Dfc7f as $f48ff) {
goto E2dc5;
Bdc4f:
ed9ce:
goto ca1a4;
ca1a4:
cd527:
goto Dddc2;
d60b7:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE
\xa\x9\x9 \x9order_id = '" . (int) $c58b0 . "' AND
\xa \x9\x9\x9code = '" . $this->db->escape($f48ff) . "'");
goto de1de;
c3bc9:
Fcbbf:
goto efb2b;
Dddc2:
E05b8:
goto c3bc9;
de1de:
if (!$c63c0->num_rows) {
goto cd527;
}
goto d65d0;
d65d0:
if (!($c63c0->row["code"] == "xfeepro" && $c63c0->row["value"] > 0)) {
goto ed9ce;
}
goto a39a8;
a39a8:
$d5895 = $d5895 + $c63c0->row["value"];
goto Bdc4f;
E2dc5:
if (empty($f48ff)) {
goto E05b8;
}
goto d60b7;
efb2b:
}
goto D4882;
Eed3a:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE \xd
\x9\x9 \x9order_id = '" . (int) $c58b0 . "'");
goto acab5;
d9613:
$d5895 = 0;
goto a6079;
Cd460:
foreach ($ac441 as $f48ff) {
goto D212d;
Ad57f:
A8e26:
goto fcb90;
c5422:
if (!($c63c0->row["code"] == "xfeepro" && $c63c0->row["value"] < 0)) {
goto Fb044;
}
goto fddfe;
D212d:
if (empty($f48ff)) {
goto A8e26;
}
goto Bc35e;
Bc35e:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE
\x9\x9 order_id = '" . (int) $c58b0 . "' AND \xd\xa\x9\x9\x9 code = '" . $this->db->escape($f48ff) . "'");
goto E8183;
b4d53:
d6275:
goto Ad57f;
fddfe:
$b199f = $b199f + $c63c0->row["value"];
goto E0c12;
E8183:
if (!$c63c0->num_rows) {
goto d6275;
}
goto c5422;
fcb90:
Ea17a:
goto b20eb;
E0c12:
Fb044:
goto b4d53;
b20eb:
}
goto Ee239;
b1d6c:
$d5895 = $d5895 / $Ddb25;
goto C2360;
E675a:
B7b35:
goto fad8f;
f27eb:
d623f:
goto Eb573;
C02af:
da88c:
goto abfd3;
Ee239:
Dae31:
goto Daa3a;
D4882:
E4226:
goto Cd460;
Bf5e0:
$Dfc7f = $c513c["total_plus"];
goto c493b;
e9256:
$ac441 = ["credit", "reward", "voucher", "payment_discount", "xfeepro"];
goto C02af;
e2b31:
goto da88c;
goto bf479;
c493b:
$ac441 = $c513c["total_minus"];
goto e2b31;
c51c1:
$f3d77 = $c63c0;
goto f27eb;
f3bab:
}
private function getOptionPrice($e9d1b, $De099, $bdea5, $Ea153)
{
goto a90d7;
b0b5a:
$c97c7 = 0;
goto E12c0;
Bffdc:
b9b35:
goto b0b5a;
D044c:
foreach ($De099 as $A520f => $f5425) {
goto fe93f;
Cd972:
$aeaf3 = $this->db->query("SELECT pov.option_value_id, ovd.name, pov.quantity, pov.subtract, pov.price, pov.price_prefix, pov.points, pov.points_prefix, pov.weight, pov.weight_prefix FROM " . DB_PREFIX . "product_option_value pov LEFT JOIN " . DB_PREFIX . "option_value ov ON (pov.option_value_id = ov.option_value_id) LEFT JOIN " . DB_PREFIX . "option_value_description ovd ON (ov.option_value_id = ovd.option_value_id) WHERE pov.product_option_value_id = '" . (int) $f5425 . "' AND pov.product_option_id = '" . (int) $A520f . "' AND ovd.language_id = '" . (int) $this->config->get("config_language_id") . "'");
goto e5687;
c5269:
$c97c7 += $aeaf3->row["price"];
goto bea09;
Aba7c:
B7af2:
goto bf71d;
e18cf:
fe203:
goto Bca03;
F0a0d:
if ($aeaf3->row["price_prefix"] == "-") {
goto B7af2;
}
goto eb171;
B1238:
F441a:
goto ba3e0;
b7943:
goto b9db0;
goto E693d;
fe93f:
$d5dbc = $this->db->query("SELECT po.product_option_id, po.option_id, od.name, o.type FROM " . DB_PREFIX . "product_option po LEFT JOIN `" . DB_PREFIX . "option` o ON (po.option_id = o.option_id) LEFT JOIN " . DB_PREFIX . "option_description od ON (o.option_id = od.option_id) WHERE po.product_option_id = '" . (int) $A520f . "' AND po.product_id = '" . (int) $e9d1b . "' AND od.language_id = '" . (int) $this->config->get("config_language_id") . "'");
goto B638e;
D0ecb:
acca6:
goto c5269;
Ab332:
foreach ($f5425 as $f14be) {
goto E1e0b;
Bce3e:
if ($aeaf3->row["price_prefix"] == "+") {
goto df41c;
}
goto f80ed;
e494a:
df41c:
goto fb69b;
f80ed:
if ($aeaf3->row["price_prefix"] == "-") {
goto Eb0c1;
}
goto Bf062;
dd343:
fe2a8:
goto A9aca;
b238d:
$c97c7 -= $aeaf3->row["price"];
goto b1716;
Bf062:
goto E0734;
goto e494a;
D46c5:
Eb0c1:
goto b238d;
Bedb5:
goto E0734;
goto D46c5;
b1716:
E0734:
goto d6c61;
e2ee1:
if (!$aeaf3->num_rows) {
goto Bf832;
}
goto Bce3e;
fb69b:
$c97c7 += $aeaf3->row["price"];
goto Bedb5;
d6c61:
Bf832:
goto dd343;
E1e0b:
$aeaf3 = $this->db->query("SELECT pov.option_value_id, pov.quantity, pov.subtract, pov.price, pov.price_prefix, pov.points, pov.points_prefix, pov.weight, pov.weight_prefix, ovd.name FROM " . DB_PREFIX . "product_option_value pov LEFT JOIN " . DB_PREFIX . "option_value_description ovd ON (pov.option_value_id = ovd.option_value_id) WHERE pov.product_option_value_id = '" . (int) $f14be . "' AND pov.product_option_id = '" . (int) $A520f . "' AND ovd.language_id = '" . (int) $this->config->get("config_language_id") . "'");
goto e2ee1;
A9aca:
}
goto e18cf;
E693d:
f1f24:
goto Ab332;
e4f74:
goto b9db0;
goto A76a8;
eb171:
goto D4659;
goto D0ecb;
d24e2:
b9db0:
goto E3591;
bf71d:
$c97c7 -= $aeaf3->row["price"];
goto D3a33;
A76a8:
Def4b:
goto Cd972;
D3a33:
D4659:
goto f0d81;
f0d81:
a41c0:
goto b7943;
Cfd75:
if ($d5dbc->row["type"] == "checkbox" && is_array($f5425)) {
goto f1f24;
}
goto D693d;
D693d:
if ($d5dbc->row["type"] == "text" || $d5dbc->row["type"] == "textarea" || $d5dbc->row["type"] == "file" || $d5dbc->row["type"] == "date" || $d5dbc->row["type"] == "datetime" || $d5dbc->row["type"] == "time") {
goto a0399;
}
goto e4f74;
E7dac:
if ($aeaf3->row["price_prefix"] == "+") {
goto acca6;
}
goto F0a0d;
Bca03:
goto b9db0;
goto Ee763;
B638e:
if (!$d5dbc->num_rows) {
goto bb58a;
}
goto b3d03;
bea09:
goto D4659;
goto Aba7c;
Ee763:
a0399:
goto d24e2;
e5687:
if (!$aeaf3->num_rows) {
goto a41c0;
}
goto E7dac;
E3591:
bb58a:
goto B1238;
b3d03:
if ($d5dbc->row["type"] == "select" || $d5dbc->row["type"] == "radio") {
goto Def4b;
}
goto Cfd75;
ba3e0:
}
goto B4870;
a90d7:
if (!(!isset($e9d1b) || !isset($De099))) {
goto b9b35;
}
goto Fd25e;
Fd25e:
return false;
goto Bffdc;
E12c0:
$Fc6a5 = [];
goto D044c;
f8ba8:
return $c97c7;
goto F8b28;
B4870:
F834e:
goto f8ba8;
F8b28:
}
public function getCustomerHistory($ba42e, $c58b0 = false)
{
goto fc5c0;
fc5c0:
$Adddc = 0;
goto ae8b6;
B4936:
A0c31:
goto Eeeb5;
Bc3d8:
c29a7:
goto cc2c4;
Eeeb5:
$Db528 = ["new_customer" => $F2ffe, "total" => number_format((float) $Adddc, 2, , '')];
goto F2d06;
Cfb57:
if (!$c63c0->num_rows) {
goto fae0a;
}
goto a8a2e;
cc2c4:
fae0a:
goto B4936;
a8a2e:
foreach ($c63c0->rows as $f2de0) {
goto d1245;
F6a70:
$Adddc += $B6c45->row["value"];
goto b16c6;
b16c6:
$cec2f++;
goto D4940;
d1245:
$c58b0 = $f2de0["order_id"];
goto dbb95;
Ae0af:
if (!$B6c45->num_rows) {
goto E0478;
}
goto c0c9f;
d11c2:
efff2:
goto d5c69;
c0c9f:
$F2ffe = false;
goto F6a70;
dbb95:
$B6c45 = $this->db->query("SELECT * FROM `" . DB_PREFIX . "order_total` WHERE order_id = '" . (int) $c58b0 . "' AND code = 'total'");
goto Ae0af;
D4940:
E0478:
goto d11c2;
d5c69:
}
goto Bc3d8;
ae8b6:
$cec2f = 0;
goto C4085;
D007f:
$c63c0 = $this->db->query("SELECT order_id FROM `" . DB_PREFIX . "order` WHERE email = '" . $this->db->escape($ba42e) . "' AND order_id != " . (int) $c58b0);
goto Cfb57;
Dfc9b:
if (!(isset($ba42e) && !empty($ba42e) && $c58b0)) {
goto A0c31;
}
goto D007f;
F2d06:
return $Db528;
goto Bcd5d;
C4085:
$F2ffe = true;
goto Dfc9b;
Bcd5d:
}
public function GAorderAdd($c58b0, $Db528)
{
goto Ba533;
f3ac5:
$ff2c6 = isset($c513c["ttp"]) ? $c513c["ttp"] : '';
goto A08c7;
A08c7:
$bc793 = isset($c513c["ttclid"]) ? $c513c["ttclid"] : '';
goto Dfc38;
a3701:
$this->saveOrderID($c58b0);
goto Bbf02;
Ac309:
d8735:
goto e821c;
e18f9:
if (!(empty($c3845) && isset($c513c["$external_id"]))) {
goto cd21a;
}
goto Ba1c2;
C13b3:
if (isset($c58b0) && isset($Db528) && isset($Db528["currency_code"])) {
goto F5d1b;
}
goto af722;
c8ffa:
fd0f4:
goto D6a49;
af722:
if (!$this->dmt_debug) {
goto fd0f4;
}
goto F291e;
a28a9:
$c513c = $this->config();
goto e7181;
af52d:
F5d1b:
goto a3701;
d61db:
$Ad464 = isset($c513c["fbc"]) ? $c513c["fbc"] : '';
goto f3ac5;
e821c:
D37a6:
goto c24f3;
Dfc38:
$Ba26b = isset($c513c["sc_click_id"]) ? $c513c["sc_click_id"] : '';
goto A6b02;
D0cd2:
$C491d = isset($c513c["fbp"]) ? $c513c["fbp"] : '';
goto d61db;
Ba533:
$E2248 = '';
goto a28a9;
aa1f3:
cd21a:
goto C13b3;
f8bf3:
if ($c63c0->num_rows) {
goto d8735;
}
goto e72e6;
Bbf02:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "analytics_tracking WHERE order_id = '" . (int) $c58b0 . "'");
goto f8bf3;
Dfafc:
$e7e18 = $this->eventid();
goto D0cd2;
Ac2f2:
$ffe3b = isset($c513c["gclid"]) ? $c513c["gclid"] : '';
goto e18f9;
e7181:
$c3845 = isset($c513c["user_id"]) ? $c513c["user_id"] : '';
goto Dfafc;
e72e6:
$this->db->query("INSERT INTO `" . DB_PREFIX . "analytics_tracking` SET \xd\xa order_id = '" . (int) $c58b0 . "',
\xa cid = '" . $this->db->escape($c513c["cid"]) . "',\xd
\x9 \x9 currency_code = '" . $this->db->escape($Db528["currency_code"]) . "',\xd\xa \x9 \x9 currency_id = '" . $this->db->escape($Db528["currency_id"]) . "',
\x9\x9 uid = '" . $this->db->escape($c3845) . "',\xd\xa\x9\x9 \x9 gclid = '" . $this->db->escape($ffe3b) . "',
\x9 \x9 ul = '" . $this->db->escape($c513c["language"]) . "',\xd\xa \x9 ip = '" . $this->db->escape($Db528["ip"]) . "',\xd
\x9 \x9 user_agent = '" . $this->db->escape($Db528["user_agent"]) . "',
\x9 tid = '" . (isset($c513c["ga4_mid"]) ? $this->db->escape($c513c["ga4_mid"]) : '') . "',
\xa \x9 \x9 event_id = '" . $this->db->escape($e7e18) . "',
\x9 \x9 fbp = '" . $this->db->escape($C491d) . "',\xd
\x9\x9\x9\x9 fbc = '" . $this->db->escape($Ad464) . "',
\x9\x9 \x9 ttp = '" . $this->db->escape($ff2c6) . "',\xd\xa\x9\x9\x9\x9 ttclid = '" . $this->db->escape($bc793) . "',
\x9 \x9 sc_click_id = '" . $this->db->escape($Ba26b) . "',
\xa\x9 \x9 sc_cookie1 = '" . $this->db->escape($f825c) . "'");
goto Ac309;
D6a49:
goto D37a6;
goto af52d;
Ba1c2:
$c3845 = $c513c["external_id"];
goto aa1f3;
F291e:
$this->Log("DMT Debug log: Error GAorderAdd empty data OrderID: " . $c58b0);
goto c8ffa;
A6b02:
$f825c = isset($c513c["sc_cookie1"]) ? $c513c["sc_cookie1"] : '';
goto Ac2f2;
c24f3:
}
public function GAgetOrder($c58b0)
{
goto E0ac7;
F14af:
$c63c0 = $this->db->query("SELECT * from `" . DB_PREFIX . "analytics_tracking` WHERE order_id = '" . (int) $c58b0 . "'");
goto da396;
E0ac7:
if (!(isset($c58b0) && !empty($c58b0))) {
goto Fa5b8;
}
goto F14af;
D4888:
Fa5b8:
goto A13a2;
A13a2:
return false;
goto C5a5d;
da396:
if (!$c63c0->num_rows) {
goto cbc04;
}
goto Dc889;
C6f02:
cbc04:
goto D4888;
Dc889:
return $c63c0->row;
goto C6f02;
C5a5d:
}
public function GAgetOrderEvent($c58b0)
{
goto Fb932;
Ecf06:
$Db528 = false;
goto Ac5e4;
Ac5e4:
if (!$c63c0->num_rows) {
goto Bf545;
}
goto e97ae;
Df3af:
Bf545:
goto C455c;
Fb932:
if (!(isset($c58b0) && !empty($c58b0))) {
goto B7987;
}
goto Fe150;
Fe150:
$c63c0 = $this->db->query("SELECT event_id from `" . DB_PREFIX . "analytics_tracking` WHERE order_id = '" . (int) $c58b0 . "'");
goto Ecf06;
D0508:
return $Db528;
goto a89d9;
C455c:
B7987:
goto D0508;
e97ae:
$Db528 = $c63c0->row["event_id"];
goto Df3af;
a89d9:
}
public function GAupdateorder($c58b0)
{
goto fa659;
dad3d:
return true;
goto dc64d;
fc4e7:
return false;
goto B87ae;
fa659:
if (!(isset($c58b0) && !empty($c58b0))) {
goto Ddd12;
}
goto Ff2c7;
dc64d:
Ddd12:
goto fc4e7;
Ff2c7:
$this->db->query("UPDATE `" . DB_PREFIX . "analytics_tracking` SET hit = '1' WHERE order_id = '" . (int) $c58b0 . "'");
goto dad3d;
B87ae:
}
public function OrderStatusCheck($c58b0)
{
goto Ee80c;
dfde5:
if (!$c63c0->num_rows) {
goto F5d74;
}
goto d7cf5;
Aaf45:
A9d56:
goto D8b56;
Ee80c:
$acea5 = false;
goto e700d;
be08a:
F5d74:
goto Aaf45;
D2801:
$c63c0 = $this->db->query("SELECT order_id, order_status_id from `" . DB_PREFIX . "order` WHERE order_id = '" . (int) $c58b0 . "'");
goto Cda70;
Cda70:
$acea5 = 0;
goto dfde5;
d7cf5:
$acea5 = $c63c0->row["order_status_id"];
goto be08a;
e700d:
if (!(isset($c58b0) && (int) $c58b0 > 0)) {
goto A9d56;
}
goto D2801;
D8b56:
return $acea5;
goto Bf84f;
Bf84f:
}
private function DeliveryEstimate($Be0ef, $Fd3fc = 7, $C3fdb = null)
{
goto ffaa5;
E8f7e:
Ef574:
goto a73d0;
c8dec:
$Abf1f = false;
goto dfa23;
a506b:
F3156:
goto d50a5;
f0341:
goto f044a;
goto aee3a;
C87bf:
if ($C3fdb == "customshipping.customshipping0") {
goto Cc8c1;
}
goto a583a;
dfa23:
$C568c = 3;
goto d4007;
D57ce:
bcfbb:
goto f0341;
d2f25:
goto A3d93;
goto D4117;
fe3a3:
Bd900:
goto Bfe53;
fd33b:
Ea950:
goto Ea789;
Ef827:
$a02cb = "3-5 days";
goto e62f5;
C0a46:
f57fa:
goto Ac046;
b3b84:
$C568c = 1;
goto bcb3a;
e2ec2:
cb327:
goto bed30;
f96fc:
F5da5:
goto C87bf;
b1666:
$C568c = 0;
goto Ec1d8;
B4f10:
if (time() <= strtotime($Be0ef)) {
goto C897d;
}
goto c8dec;
aa48d:
$ba944 = $D9908 + 7 * 24 * 60 * 60;
goto a7c28;
af7a9:
$ba944 = $D9908 + 2 * 24 * 60 * 60;
goto F4d76;
a0b4c:
if (!($A7d53 == 7)) {
goto b342e;
}
goto bbb8a;
A6ded:
add4c:
goto B4f10;
e01ed:
$Abf1f = true;
goto b1666;
A1fc9:
$a02cb = "5 days";
goto aa48d;
B487e:
if ($A7d53 < 5) {
goto c3bf1;
}
goto fea14;
B1cdb:
$A7d53 = date("N", time());
goto B487e;
bcb3a:
b342e:
goto f0de9;
A2d9e:
$a02cb = "1 day";
goto ddc65;
F1a2a:
Cc8c1:
goto Ef827;
F3666:
f044a:
goto dc2d6;
Ac046:
$Abf1f = false;
goto F0863;
E3926:
$ba944 = $D9908 + 3 * 24 * 60 * 60;
goto E8f7e;
a7c28:
goto Fc0dd;
goto a506b;
E179d:
if (isset($C3fdb) && $C3fdb) {
goto F5da5;
}
goto E43a3;
d50a5:
$a02cb = "1 days";
goto af7a9;
Bfe53:
goto Ef574;
goto dc41f;
dc2d6:
$D9908 = time() + $C568c * 24 * 60 * 60;
goto E179d;
aa7ae:
goto a7f42;
goto a018c;
Ea789:
return $ba944;
goto D4d79;
D4117:
df209:
goto B9597;
de864:
F3a23:
goto A2d9e;
bed30:
goto bcfbb;
goto A6ded;
a426c:
$a02cb = "2 days";
goto E3926;
F4d76:
Fc0dd:
goto d2f25;
ffaa5:
date_default_timezone_set("Europe/London");
goto B1cdb;
Ae582:
if ($C3fdb == "customshipping.customshipping2") {
goto F3a23;
}
goto E50f1;
F0863:
$C568c = 2;
goto e2ec2;
a583a:
if ($C3fdb == "customshipping.customshipping1") {
goto a6fe6;
}
goto Ae582;
bda52:
B0df0:
goto fd33b;
E50f1:
if ($C3fdb == "customshipping.customshipping3") {
goto df209;
}
goto fcb44;
A0950:
A1178:
goto D57ce;
E43a3:
$ba944 = $D9908 + $Fd3fc * 24 * 60 * 60;
goto f9542;
Eee88:
goto Bd900;
goto de864;
aee3a:
c3bf1:
goto Cc324;
d4007:
goto A1178;
goto c1922;
f9542:
goto Ea950;
goto f96fc;
Cad13:
$ba944 = $D9908 + 2 * 24 * 60 * 60;
goto D24d9;
f0b37:
$C568c = 0;
goto A0950;
Ec1d8:
a7f42:
goto F3666;
a73d0:
goto B0df0;
goto F1a2a;
dc41f:
a6fe6:
goto a426c;
D24d9:
A3d93:
goto Eee88;
B9597:
$a02cb = "1 days";
goto Cad13;
bbb8a:
$Abf1f = false;
goto b3b84;
e62f5:
$ba944 = $D9908 + 7 * 24 * 60 * 60;
goto bda52;
Cc324:
if (time() <= strtotime($Be0ef)) {
goto E9af1;
}
goto Fa347;
fea14:
if ($A7d53 == 5) {
goto add4c;
}
goto Ed84f;
f0de9:
goto cb327;
goto C0a46;
a018c:
E9af1:
goto e01ed;
Fa347:
$Abf1f = false;
goto cc2de;
c1922:
C897d:
goto F1a50;
cc2de:
$C568c = 1;
goto aa7ae;
fcb44:
if ($C3fdb == "customshipping.customshipping4") {
goto F3156;
}
goto A1fc9;
Ed84f:
if ($A7d53 == 6) {
goto f57fa;
}
goto a0b4c;
ddc65:
$ba944 = $D9908 + 2 * 24 * 60 * 60;
goto fe3a3;
F1a50:
$Abf1f = true;
goto f0b37;
D4d79:
}
private function getSizeAndColorOptionMap($e9d1b, $E2e5e)
{
goto c0c63;
fb08a:
$D41fd = $this->googleshopping->getProductOptionValueNames($e9d1b, $this->config->get("config_language_id"), $ea47f);
goto D37e4;
ed0b5:
$f7824 = $this->googleshopping->getProductOptionValueNames($e9d1b, $this->config->get("config_language_id"), $A9314);
goto fb08a;
D37e4:
$Ef8ea = ["groups" => $Cd274, "colors" => count($f7824) > 1 ? $f7824 : null, "sizes" => count($D41fd) > 1 ? $D41fd : null];
goto edf97;
c0c63:
$A9314 = $this->getOptionId($e9d1b, $E2e5e, "color");
goto e88d7;
e88d7:
$ea47f = $this->getOptionId($e9d1b, $E2e5e, "size");
goto a58d1;
a58d1:
$Cd274 = $this->googleshopping->getGroups($e9d1b, $this->config->get("config_language_id"), $A9314, $ea47f);
goto ed0b5;
edf97:
return $Ef8ea;
goto Aaf81;
Aaf81:
}
private function getCountry($e86c0)
{
goto D2d6a;
E87fd:
dfd3f:
goto e129b;
bc236:
if (!(isset($c513c["cache"]) && $c513c["cache"] == "1")) {
goto Dd2da;
}
goto A9017;
aa023:
Dd2da:
goto Dbf04;
fe5d9:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "country WHERE country_id = '" . (int) $e86c0 . "'");
goto d55f9;
d55f9:
$Db528 = $c63c0->row;
goto bc236;
Db055:
$Db528 = $this->cache->get("dmt.country." . $e86c0);
goto c8dd7;
Dbf04:
return $Db528;
goto f5ccf;
A9017:
$this->cache->set("dmt.country." . $e86c0, $Db528);
goto aa023;
e129b:
$Db528 = [];
goto fe5d9;
c8dd7:
F8bfd:
goto E97d1;
E97d1:
if (!$Db528) {
goto dfd3f;
}
goto df487;
F5d51:
if (!(isset($c513c["cache"]) && $c513c["cache"])) {
goto F8bfd;
}
goto Db055;
D2d6a:
$c513c = $this->settings;
goto fc093;
fc093:
$Db528 = false;
goto F5d51;
df487:
return $Db528;
goto E87fd;
f5ccf:
}
private function getSettings($f48ff, $F54aa = "date_modified", $f5425 = false, $D8f0d = false)
{
goto a58bf;
Dc23d:
$this->db->query("INSERT INTO " . DB_PREFIX . "setting SET store_id = '0', `group` = '" . $this->db->escape($f48ff) . "', `key` = '" . $this->db->escape($F54aa) . "', `value` = '" . $this->db->escape($f5425) . "'");
goto aea2b;
fd6e4:
goto d0dec;
goto bf21a;
a58bf:
if ($D8f0d) {
goto f1762;
}
goto f5b5a;
aea2b:
d0dec:
goto ea024;
D0b1d:
$this->db->query("DELETE FROM `" . DB_PREFIX . "setting` WHERE `group` = '" . $this->db->escape($f48ff) . "'");
goto Dc23d;
f90e2:
$this->db->query("INSERT INTO " . DB_PREFIX . "setting SET store_id = 8', `code` = '" . $this->db->escape($f48ff) . "', `key` = '" . $this->db->escape($F54aa) . "', `value` = '" . $this->db->escape($f5425) . "'");
goto fd6e4;
f5b5a:
if (substr(VERSION, 0, 1) == "1") {
goto F3ebb;
}
goto D0e9a;
c1a3f:
$this->db->query("DELETE FROM `" . DB_PREFIX . "setting` WHERE `key` = '" . $this->db->escape($f48ff) . "'");
goto c4ee4;
D0e9a:
$this->db->query("DELETE FROM `" . DB_PREFIX . "setting` WHERE `code` = '" . $this->db->escape($f48ff) . "'");
goto f90e2;
ea024:
goto Adc3e;
goto edf1c;
c4ee4:
Adc3e:
goto Af310;
edf1c:
f1762:
goto c1a3f;
bf21a:
F3ebb:
goto D0b1d;
Af310:
}
private function getSettingValue($F54aa, $E2e5e = 0)
{
goto Ec861;
Da559:
$c63c0 = $this->db->query("SELECT value FROM " . DB_PREFIX . "setting WHERE store_id = '" . (int) $E2e5e . "' AND `key` = '" . $this->db->escape($F54aa) . "'");
goto e7fa1;
Ec861:
$Db528 = false;
goto bca71;
f1feb:
$Db528 = $c63c0->row["value"];
goto c104d;
C4219:
ae0d1:
goto D63bb;
Ee6f1:
if ($Db528) {
goto ae0d1;
}
goto Da559;
D63bb:
return $Db528;
goto f9f44;
e7fa1:
if (!$c63c0->num_rows) {
goto A9254;
}
goto f1feb;
c104d:
$this->cache->set("dmt.settings." . $F54aa . . $E2e5e, $Db528);
goto Ea895;
Ea895:
A9254:
goto C4219;
bca71:
$Db528 = $this->cache->get("dmt.settings." . $F54aa . . $E2e5e);
goto Ee6f1;
f9f44:
}
public function formatUserdata($c513c = false)
{
goto Bd7a0;
Ce069:
if (!(!empty($Ad464) && $Ad464)) {
goto B0804;
}
goto E5ecc;
Ed9ce:
A1e0e:
goto db6ae;
Dac26:
$Db528["user_data"] = [];
goto f098a;
b20f4:
E650c:
goto Ab723;
c2e60:
f0397:
goto D41de;
E80e9:
B17d8:
goto e1ab1;
e94d5:
c3a1e:
goto Bfe0a;
d3528:
cef6c:
goto Dbe21;
Ba3f8:
$Db528["user_data"]["address"]["sha2_first_name"] = $aaedc["fn"];
goto a808b;
b7925:
if ($aaedc["fbp"]) {
goto A6118;
}
goto D4059;
B99ff:
$C85f9 = ["user_agent" => $aaedc["user_agent"], "client_ip_address" => $aaedc["ip_address"]];
goto Fb0e2;
e9057:
$C85f9["sc_cookie1"] = $f825c;
goto A8fee;
f8bbd:
$C85f9["external_id"] = $aaedc["external_id_hash"];
goto b20f4;
aa811:
$Db528["pixel_user_data"]["fbp"] = $C491d;
goto f6536;
E97a9:
return false;
goto f9c4a;
Ba351:
if (empty($f825c)) {
goto E5c67;
}
goto e9057;
c838c:
$Db528["tiktok_user_data"] = ["email" => $aaedc["em"], "phone" => $aaedc["ph_e164"], "external_id" => $aaedc["external_id_hash"], "ttp" => $ff2c6, "ttclid" => $bc793, "ip" => $aaedc["ip_address"], "user_agent" => $aaedc["user_agent"], "first_name" => $aaedc["fn"], "last_name" => $aaedc["ln"], "city" => $aaedc["ct"], "state" => $aaedc["st"], "zip_code" => $aaedc["pc"], "country" => $aaedc["cc"]];
goto d3528;
Ccca3:
Ebd3b:
goto Fa13e;
Fa13e:
if (!$c513c["tiktok_status"]) {
goto cef6c;
}
goto Cf914;
cefe1:
if (isset($c513c["ttclid"]) && !empty($c513c["ttclid"])) {
goto f0397;
}
goto Bcdbc;
A8fee:
E5c67:
goto a3e88;
Bfe0a:
if (!$c513c["snap_pixel_status"]) {
goto Ebd3b;
}
goto a06e6;
B7855:
$C85f9["ph"] = $aaedc["ph"];
goto b39c0;
f9c4a:
Ca28b:
goto C1121;
e861d:
if (empty($aaedc["country"])) {
goto c78ab;
}
goto F6119;
Cfce9:
$Db528["user_data"]["address"] = [];
goto Ba3f8;
e1ab1:
if (empty($aaedc["ct"])) {
goto B8a68;
}
goto Cd39b;
bbfc6:
goto F0664;
goto c2e60;
d3d2a:
if ($aaedc["fbc"]) {
goto A9958;
}
goto A649d;
c6c2a:
$C85f9["zp"] = $aaedc["pc"];
goto E2223;
b6a23:
if (isset($c513c["sccid"]) && !empty($c513c["sccid"])) {
goto B97f9;
}
goto f299c;
a06e6:
$f3f62 = $c513c["snap_pixel_id"];
goto A7a34;
a8239:
if (!(!empty($C491d) && $C491d)) {
goto d970b;
}
goto aa811;
Cd39b:
$C85f9["ct"] = $aaedc["ct"];
goto a90ef;
D4059:
$C491d = $this->gtm->getFbp();
goto acdec;
C1121:
$Db528 = [];
goto Ccb19;
Bd871:
Cac5f:
goto c838c;
D41de:
$bc793 = $c513c["ttclid"];
goto Dc6f2;
B99dd:
$Db528["pixel_user_data"] = ["em" => $aaedc["em"], "fn" => $aaedc["fn"], "ln" => $aaedc["ln"], "ph" => $aaedc["ph"], "ct" => $aaedc["ct"], "zp" => $aaedc["pc"], "st" => $aaedc["st"], "country" => $aaedc["cc"], "external_id" => $aaedc["external_id_hash"], "client_ip_address" => $aaedc["ip_address"], "client_user_agent" => $aaedc["user_agent"]];
goto Ce069;
Ad83a:
$Db528["user_data"]["sha2_phone_number"] = $aaedc["ph_e4"];
goto Cfce9;
A4a9c:
$ff2c6 = $this->gtm->getTtp();
goto ca6ed;
aa504:
$Ad464 = $aaedc["fbc"];
goto cf783;
f2577:
if (empty($aaedc["ln"])) {
goto B17d8;
}
goto bf701;
ff9a0:
c78ab:
goto b29ca;
d5358:
if (empty($aaedc["st"])) {
goto e6e7b;
}
goto d6b92;
A2ebd:
adaf2:
goto e3cb8;
Ba75f:
$C85f9["em"] = $aaedc["em"];
goto b5367;
d6b92:
$C85f9["st"] = $aaedc["st"];
goto f1c8e;
e3cb8:
$aaedc["external_id_hash"] = !empty($aaedc["external_id"]) ? $this->gtm->getHash($aaedc["external_id"]) : '';
goto Dac26;
Fb0e2:
if (empty($aaedc["em"])) {
goto d6b91;
}
goto Ba75f;
Ab723:
if (empty($e0279)) {
goto E3283;
}
goto B518d;
F6119:
$C85f9["country"] = $aaedc["country"];
goto ff9a0;
ed895:
if (empty($aaedc["ph"])) {
goto af318;
}
goto B7855;
b2fc9:
$e0279 = $c513c["sccid"];
goto B1950;
B518d:
$C85f9["sc_click_id"] = $e0279;
goto A98bf;
A7a34:
if (isset($c513c["sc_cookie1"]) && !empty($c513c["sc_cookie1"])) {
goto A1e0e;
}
goto f2cb0;
a90ef:
B8a68:
goto d5358;
E2b50:
goto b18ac;
goto Ed9ce;
a3e88:
$Db528["snapchat_user_data"] = $C85f9;
goto Ccca3;
Bd7a0:
if ($c513c) {
goto Ca28b;
}
goto E97a9;
F0aff:
if (!empty($aaedc["external_id"])) {
goto adaf2;
}
goto Dbc28;
acdec:
goto a32e3;
goto E2fdd;
Dbe21:
return $Db528;
goto c7e97;
b5367:
d6b91:
goto ed895;
Bcdbc:
$bc793 = $this->gtm->getTtclid();
goto bbfc6;
f2cb0:
$f825c = $this->gtm->getSc_cookie1();
goto E2b50;
B7a12:
$Db528["user_data"]["last_name"] = $aaedc["ln"];
goto fb5db;
db6ae:
$f825c = $c513c["sc_cookie1"];
goto B0a07;
f299c:
$e0279 = $this->gtm->getScCid();
goto E07d8;
fb5db:
$Db528["user_data"]["email"] = $aaedc["em"];
goto bebde;
bebde:
$Db528["user_data"]["sha256_email_address"] = $aaedc["em"];
goto Ad83a;
E2223:
C285c:
goto e861d;
D74da:
e4d64:
goto f2577;
cf783:
f0e15:
goto b7925;
Dc6f2:
F0664:
goto A7ee3;
Cf914:
$De1c3 = $c513c["tiktok_code"];
goto cefe1;
E74b7:
$C491d = $aaedc["fbp"];
goto ee9db;
f1c8e:
e6e7b:
goto d039b;
b39c0:
af318:
goto D59c3;
C3d5c:
B97f9:
goto b2fc9;
B0a07:
b18ac:
goto b6a23;
a808b:
$Db528["user_data"]["address"]["sha256_last_name"] = $aaedc["ln"];
goto Feca5;
b1de3:
B0804:
goto a8239;
b773a:
goto f0e15;
goto Eb1c2;
E5ecc:
$Db528["pixel_user_data"]["fbc"] = $Ad464;
goto b1de3;
c70fc:
$C85f9["fn"] = $aaedc["fn"];
goto D74da;
b29ca:
if (empty($aaedc["external_id"])) {
goto E650c;
}
goto f8bbd;
A98bf:
E3283:
goto Ba351;
d4264:
A175d:
goto fd915;
A649d:
$Ad464 = $this->gtm->getFbc();
goto b773a;
Eb1c2:
A9958:
goto aa504;
D59c3:
if (empty($aaedc["fn"])) {
goto e4d64;
}
goto c70fc;
A7ee3:
if (isset($c513c["ttp"]) && !empty($c513c["ttp"])) {
goto A175d;
}
goto A4a9c;
d039b:
if (empty($aaedc["pc"])) {
goto C285c;
}
goto c6c2a;
f6536:
d970b:
goto e94d5;
ee9db:
a32e3:
goto B99dd;
Dbc28:
$aaedc["external_id"] = $this->session->getId();
goto A2ebd;
f098a:
$Db528["user_data"]["first_name"] = $aaedc["fn"];
goto B7a12;
B1950:
bbadc:
goto B99ff;
bf701:
$C85f9["ln"] = $aaedc["ln"];
goto E80e9;
fd915:
$ff2c6 = $c513c["ttp"];
goto Bd871;
Ccb19:
$aaedc = ["em" => isset($c513c["em"]) ? $c513c["em"] : '', "fn" => isset($c513c["fn"]) ? $c513c["fn"] : '', "ln" => isset($c513c["ln"]) ? $c513c["ln"] : '', "ph" => isset($c513c["ph"]) ? $c513c["ph"] : '', "ph_e4" => isset($c513c["ph_e164"]) ? $c513c["ph_e4"] : '', "ad" => isset($c513c["ad"]) ? $c513c["ad"] : '', "ct" => isset($c513c["ct"]) ? $c513c["ct"] : '', "pc" => isset($c513c["pc"]) ? $c513c["pc"] : '', "st" => isset($c513c["st"]) ? $c513c["st"] : '', "cc" => isset($c513c["cc"]) ? $c513c["cc"] : '', "external_id" => isset($c513c["external_id"]) ? $c513c["external_id"] : false, "user_agent" => isset($c513c["user_agent"]) ? $c513c["user_agent"] : false, "locale" => isset($c513c["locale"]) ? $c513c["locale"] : false, "ip_address" => isset($c513c["ip_address"]) ? $c513c["ip_address"] : false, "fbc" => isset($c513c["fbc"]) ? $c513c["fbc"] : false, "fbp" => isset($c513c["fbp"]) ? $c513c["fbp"] : false, "ttclid" => isset($c513c["ttclid"]) ? $c513c["ttclid"] : false, "ttp" => isset($c513c["ttp"]) ? $c513c["ttp"] : false, "sc_cookie1" => isset($c513c["sc_cookie1"]) ? $c513c["sc_cookie1"] : false, "sccid" => isset($c513c["sccid"]) ? $c513c["sccid"] : false];
goto F0aff;
ca6ed:
goto Cac5f;
goto d4264;
Feca5:
if (!$c513c["pixel"]) {
goto c3a1e;
}
goto d3d2a;
E07d8:
goto bbadc;
goto C3d5c;
E2fdd:
A6118:
goto E74b7;
c7e97:
}
public function apiOrderSend($c58b0)
{
goto C78c3;
c16d2:
$fd1d7["message"] = "Complete or Partial Failer see details in log.";
goto Ee9bf;
d3e74:
$fd1d7["error"] = true;
goto c9f6a;
b7e30:
$fd1d7["error"] = true;
goto E4a17;
Fac22:
$c6d1a["ga4"] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $fd1d7["ga4"]];
goto De203;
E34a9:
F7456:
goto Fac22;
E5254:
Ce9b0:
goto f116e;
D200c:
if (!($acea5 == "0")) {
goto F5f35;
}
goto c75f1;
c7fc7:
$c6d1a["tiktok"] = ["post_result" => "not sent", "message" => "Order was already posted, skipped"];
goto E5254;
Cd28f:
if ($fc702 && $Db528["hit_fb"] == 0) {
goto Ee8b5;
}
goto D598d;
f9295:
$c6d1a["snapchat"] = ["post_result" => "not sent", "message" => "Order was already posted, skipped"];
goto A68a5;
Bd117:
$fd1d7["message"] = "Completed successfully.";
goto e96dc;
d4a6c:
$b0730 = isset($d9a68->row["hit"]) ? $d9a68->row["hit"] : 0;
goto B4aa4;
fc37a:
$c6d1a["pixel"] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $fd1d7["pixel"]];
goto Ae0fb;
c51c4:
$d787b = '';
goto a668f;
F3b0e:
$c6d1a = [];
goto Be888;
E4a17:
$fd1d7["tiktok"] = "TikTok API [ Order: " . $c58b0 . " ] Result: error order data posted";
goto D5836;
e2f2c:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto B779e;
}
goto Ff863;
C0939:
$aaedc["user_agent"] = $Db528["user_agent"];
goto e4fac;
d0375:
$dd4e4 = json_encode($dd4e4);
goto c62a2;
Fa1b3:
$f2de0 = $this->gtm->snapchatAPI($c513c, "PURCHASE", $c0409, $aaedc["snapchat_user_data"], $e7e18);
goto ab492;
f6f9f:
$aaedc["snap_pixel_status"] = $c513c["snap_pixel_status"];
goto Ad816;
Df560:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto ecfeb;
}
goto Eb91a;
A5754:
$fd1d7["error"] = false;
goto c081b;
fe7f9:
$aaedc["pixel"] = $c513c["pixel"];
goto f6f9f;
b310d:
$this->Log($E14c7);
goto a7741;
Be888:
if ($fad31 && $Db528["hit_tiktok"] == 0) {
goto fc06a;
}
goto B99c3;
e218a:
f4875:
goto fbd39;
ec9c9:
$c6d1a["tiktok"] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $fd1d7["tiktok"]];
goto ee248;
Cf03a:
$this->db->query("UPDATE `" . DB_PREFIX . "analytics_tracking` SET hit_tiktok = '1' WHERE order_id = '" . (int) $c58b0 . "'");
goto e1987;
ebe57:
D1fad:
goto e799a;
Ad816:
$aaedc["snap_pixel_id"] = $c513c["snap_pixel_id"];
goto E1a58;
Eb91a:
$fd1d7["error"] = true;
goto af589;
a3297:
$F92b4[] = ["name" => "purchase", "params" => $Db528["datalayer"]["ga"]];
goto df49e;
a97bc:
if ($c63c0->num_rows) {
goto f4875;
}
goto Ea4a7;
fd939:
$Db528 = [];
goto a97bc;
Adef5:
$e7e18 = $Db528["event_id"];
goto a3297;
fed29:
$fc702 = $this->checkapiStatus("fb");
goto C843f;
E0293:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto Ad06b;
}
goto eb747;
D957b:
goto Cf567;
goto ebe57;
D598d:
if (!$fc702) {
goto Eaf4e;
}
goto Df153;
Fe1c0:
goto F7456;
goto f20d9;
C1b29:
$fd1d7["snapchat"] = "Snapchat API [ Order: " . $c58b0 . " ] Result: success order data posted";
goto efe59;
e480a:
$c6d1a["ga4"] = ["post_result" => "not sent", "message" => "Order was already posted, skipped"];
goto E2a8a;
eb747:
$fd1d7["error"] = true;
goto A9fd1;
b57c5:
$c0409 = $Db528["snapchat_api"];
goto d40b5;
A9fd1:
$fd1d7["pixel"] = "Facebook API [ Order: " . $c58b0 . " ] Result: error order data posted";
goto e954c;
B6472:
$D1c47["error"] = true;
goto b0461;
Dc248:
Ae072:
goto A30ae;
e4fac:
$aaedc["locale"] = $Db528["ul"];
goto b397c;
Dbcfc:
if ($f86a7 && $Db528["hit_ga"] == 0) {
goto D1fad;
}
goto Eff13;
B99c3:
if (!$fad31) {
goto Ce9b0;
}
goto c7fc7;
De203:
Cf567:
goto c51c4;
Daece:
$d9a68 = $this->db->query("SELECT * FROM " . DB_PREFIX . "analytics_tracking WHERE order_id = '" . (int) $c58b0 . "'");
goto F853e;
Cfc0d:
$f2de0 = $this->gtm->tiktokAPI($c513c, "CompletePayment", $a3bc1, $aaedc["tiktok_user_data"], $e7e18);
goto da3c8;
E1a58:
$aaedc["tiktok_status"] = $c513c["tiktok_status"];
goto Dccb2;
b397c:
$aaedc = array_merge($aaedc, $Db528);
goto F1fc4;
ab492:
$fd1d7["snapchat"] = '';
goto e2f2c;
cdff7:
$fd1d7["snapchat"] = "Snapchat API [ Order: " . $c58b0 . " ] Result: error order data posted";
goto Cac99;
a194e:
$this->db->query("UPDATE `" . DB_PREFIX . "analytics_tracking` SET hit_ga = '1' WHERE order_id = '" . (int) $c58b0 . "'");
goto E34a9;
ba7bb:
$fd1d7["error"] = false;
goto C1b29;
f6e22:
$this->Log("Order # " . $c58b0 . " (dmt/apiOrderSend) API Post Results" . $d787b);
goto b0c81;
a2df4:
f794f:
goto fc37a;
a7741:
$fd1d7["message"] = $E14c7;
goto cf6ec;
Ff863:
$fd1d7["error"] = true;
goto cdff7;
Cc82a:
$Ba90c["error"] = true;
goto B6472;
d40d2:
fc06a:
goto Cfc0d;
A06ab:
$c58b0 = (int) $c58b0;
goto d3e74;
e954c:
goto f794f;
goto cdcc5;
A4f29:
Ee8b5:
goto a89c4;
e96dc:
goto fb153;
goto a0a9e;
d40b5:
$a3bc1 = $Db528["tiktok"];
goto Adef5;
da3c8:
$fd1d7["tiktok"] = '';
goto B2828;
B4aa4:
if (!($b0730 == 1)) {
goto dce42;
}
goto Db830;
db775:
$this->db->query("UPDATE `" . DB_PREFIX . "analytics_tracking` SET hit_fb = '1' WHERE order_id = '" . (int) $c58b0 . "'");
goto a2df4;
a7aa6:
if ($A0b38 && $Db528["hit_snapchat"] == 0) {
goto ccaae;
}
goto Ec57c;
c1dc7:
$aaedc = $f2de0["customer"];
goto fe7f9;
B0a33:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "analytics_tracking WHERE order_id = '" . (int) $c58b0 . "'");
goto fd939;
eb289:
F5f35:
goto Ad264;
D09f7:
$fd1d7["error"] = false;
goto d9e6a;
Ae0fb:
cc152:
goto a7aa6;
d102f:
return $fd1d7;
goto B6809;
d9456:
goto c38db;
goto e218a;
a89c4:
$f2de0 = $this->gtm->facebookAPI($c513c, "Purchase", $C7054, $aaedc["pixel_user_data"], $e7e18);
goto F77dc;
ddc80:
$fd1d7["error"] = false;
goto C079a;
a68c2:
$acea5 = $this->OrderStatusCheck($c58b0);
goto D200c;
b0461:
if (!($c58b0 == 0)) {
goto d31f8;
}
goto dacd9;
af589:
$fd1d7["ga4"] = "Google API [ Order: " . $c58b0 . " ] Result: failed";
goto Fe1c0;
Df153:
$c6d1a["pixel"] = ["post_result" => "not sent", "message" => "Order was already posted, skipped"];
goto D01e4;
F853e:
if (!$d9a68->num_rows) {
goto B9ce0;
}
goto d4a6c;
C78c3:
$c513c = $this->config();
goto A06ab;
b5c6e:
$this->load->model("checkout/order");
goto B0a33;
Dda0e:
$fd1d7["message"] = "Incomplete or Missing Order";
goto c69f2;
D5836:
goto E75a1;
goto f04d6;
f1fd5:
$Db528 = array_merge($Db528, $f2de0);
goto af668;
c081b:
$fd1d7["tiktok"] = "TikTok API [ Order: " . $c58b0 . " ] Result: success order data posted";
goto Cf03a;
Cac99:
goto Ae072;
goto Aae51;
f2359:
c38db:
goto a68c2;
A30ae:
$c6d1a["snapchat"] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $fd1d7["snapchat"]];
goto E4122;
D01e4:
Eaf4e:
goto D3d08;
Ee9bf:
fb153:
goto d102f;
a0a9e:
C7f05:
goto c16d2;
c9f6a:
$fd1d7["message"] = "error in apiOrderSend()";
goto C05fa;
f116e:
goto a2f2e;
goto d40d2;
Eff13:
if (!$f86a7) {
goto b538d;
}
goto e480a;
af668:
$C7054 = $Db528["fb_data"];
goto b57c5;
b87a9:
dce42:
goto e8d74;
f186a:
$fd1d7["ga4"] = '';
goto Df560;
Fdb75:
A2723:
goto f6e22;
b0c81:
if ($fd1d7["error"]) {
goto C7f05;
}
goto Bd117;
F1fc4:
$aaedc = $this->formatUserdata($aaedc);
goto f1fd5;
f04d6:
A9a32:
goto A5754;
a9178:
goto b3746;
goto a5270;
Ea4a7:
$E14c7 = "dmt Debug Log: Measurement Protocol call [ Order: " . $c58b0 . " ] Result: Order not found";
goto Daece;
cdcc5:
Ad06b:
goto ddc80;
f20d9:
ecfeb:
goto D09f7;
e1987:
E75a1:
goto ec9c9;
E4122:
b3746:
goto Dbcfc;
dacd9:
return "Invalid Order Id";
goto f7e08;
df49e:
$dd4e4 = ["client_id" => $Db528["cid"], "user_id" => $Db528["uid"], "events" => $F92b4];
goto d0375;
a5270:
ccaae:
goto Fa1b3;
E2a8a:
b538d:
goto D957b;
F77dc:
$fd1d7["pixel"] = '';
goto E0293;
f7e08:
d31f8:
goto b5c6e;
A68a5:
e760d:
goto a9178;
d9e6a:
$fd1d7["ga4"] = "Google API [ Order: " . $c58b0 . " ] Result: success order data posted";
goto a194e;
C843f:
$A0b38 = $this->checkapiStatus("snapchat");
goto dd8f8;
C079a:
$fd1d7["pixel"] = "Facebook API [ Order: " . $c58b0 . " ] Result: success order data posted";
goto db775;
a668f:
foreach ($c6d1a as $F54aa => $f5425) {
$d787b .= "
" . strtoupper($F54aa) . " ----> " . $f5425["post_result"] . "\xa" . $f5425["message"] . "\xa";
dd8df:
}
goto Fdb75;
Ec57c:
if (!$A0b38) {
goto e760d;
}
goto f9295;
Dccb2:
$aaedc["tiktok_code"] = $c513c["tiktok_code"];
goto A3bf6;
e799a:
$f2de0 = $this->googleAPI($dd4e4, $Db528["dmt"], false);
goto f186a;
e8d74:
B9ce0:
goto b310d;
C05fa:
$Bbc22["error"] = true;
goto Cc82a;
ee248:
a2f2e:
goto Cd28f;
A3bf6:
$aaedc["ip_address"] = $Db528["ip"];
goto C0939;
dd8f8:
$fad31 = $this->checkapiStatus("tiktok");
goto F3b0e;
D3d08:
goto cc152;
goto A4f29;
c75f1:
$this->Log("DMT Debug Log: Measurement Protocol call [ Order: " . $c58b0 . " ] Result: Order Status Id is 0 / Missing");
goto Dda0e;
Db830:
$E14c7 = "dmt Debug Log: Measurement Protocol call [ Order: " . $c58b0 . " ] Result: Order already hit";
goto b87a9;
Ad264:
$f2de0 = $this->preparePurchase($c58b0);
goto c1dc7;
Aae51:
B779e:
goto ba7bb;
efe59:
$this->db->query("UPDATE `" . DB_PREFIX . "analytics_tracking` SET hit_snapchat = 9' WHERE order_id = '" . (int) $c58b0 . "'");
goto Dc248;
cf6ec:
return $fd1d7;
goto d9456;
c69f2:
return $fd1d7;
goto eb289;
c62a2:
$f86a7 = $this->checkapiStatus("ga4");
goto fed29;
B2828:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto A9a32;
}
goto b7e30;
fbd39:
$Db528 = $c63c0->row;
goto f2359;
B6809:
}
public function apiOrderRefund($c58b0)
{
goto F04fb;
D6d08:
$fd1d7["error"] = true;
goto Dcb01;
Ab2ab:
$fd1d7["error"] = false;
goto e19a6;
cb80d:
$acea5 = $this->OrderStatusCheck($c58b0);
goto Bdfa3;
f068e:
$Db528 = array_merge($Db528, $f2de0);
goto fe955;
c0c1d:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto b918a;
}
goto D6d08;
F64be:
$Ba90c = $this->googleAPI($dd4e4, false);
goto faae7;
Ec0d4:
$Db528["uid"] = $c63c0->row["uid"];
goto Ebd10;
C2010:
$dd4e4 = ["user_id" => $Db528["uid"], "client_id" => $Db528["cid"], "events" => $F92b4];
goto C4ac8;
faae7:
F0b76:
goto C788c;
Cc8e3:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "analytics_tracking WHERE order_id = '" . (int) $c58b0 . "' AND hit = '1'");
goto Cac41;
A02f6:
$f86a7 = $this->checkapiStatus("ga4");
goto C4f58;
d637f:
$f2de0 = $this->getOrder($c58b0);
goto f068e;
Cd5c9:
goto d3fee;
goto f146d;
f146d:
F9f38:
goto Da276;
f6302:
$this->Log("DMT Debug Log: Measurement Protocol Refund Order id: " . $c58b0 . " Result: error order not found or not hit");
goto ec37f;
c4bc0:
$fd1d7["error"] = true;
goto D079a;
a8451:
$dd4e4 = json_encode($dd4e4);
goto F64be;
Df170:
b918a:
goto Ab2ab;
C4f58:
if ($c63c0->num_rows) {
goto F9f38;
}
goto f6302;
ac9da:
$this->db->query("UPDATE `" . DB_PREFIX . "analytics_tracking` SET hit_ga = '2', hit = '2' WHERE order_id = '" . (int) $c58b0 . "'");
goto b7143;
e2cdc:
$this->Log("DMT Debug Log: Measurement Protocol Refund Order id: " . $c58b0 . " Result: Incomplete or Missing Order");
goto ed0e2;
A4363:
$c513c = $this->config();
goto A02f6;
f798a:
$Db528["currency_code"] = $c63c0->row["currency_code"];
goto bcd9c;
C4ac8:
if (!(isset($f86a7) && $f86a7)) {
goto F0b76;
}
goto a8451;
C788c:
if (!$f86a7) {
goto bfe63;
}
goto A8ebb;
Cac41:
$Db528 = [];
goto c4bc0;
bcd9c:
$Db528["ip"] = $c63c0->row["ip"];
goto C0a93;
C4afc:
return $fd1d7;
goto Cd5c9;
fe955:
$Af1a7 = isset($Db528["ec_orderProducts"]["ga4_items"]) ? $Db528["ec_orderProducts"]["ga4_items"] : array();
goto e64c9;
F04fb:
$this->load->model("checkout/order");
goto Cc8e3;
A8ebb:
$f2de0 = $this->googleAPI($dd4e4, $c513c, false);
goto f18ef;
A4fc9:
bfe63:
goto f6c3c;
f6c3c:
return $fd1d7;
goto da5e4;
f18ef:
$fd1d7 = [];
goto c0c1d;
Ebd10:
d3fee:
goto cb80d;
Da276:
$Db528["cid"] = $c63c0->row["cid"];
goto f798a;
C0a93:
$Db528["user_agent"] = $c63c0->row["user_agent"];
goto Ec0d4;
b7143:
b38e7:
goto eb45d;
Dcb01:
$fd1d7["ga4"] = "Google API [ Refund Order: " . $c58b0 . " ] Result: failed";
goto Ffab8;
e64c9:
$d7046 = ["transaction_id" => $c58b0, "shipping" => number_format((float) $Db528["ec_orderShipping"], 2, , ''), "value" => number_format((float) $Db528["ec_orderValue"], 2, , ''), "tax" => number_format((float) $Db528["ec_orderTax"], 2, , ''), "coupon" => $Db528["ec_orderCoupon"], "currency" => $Db528["currency_code"], "items" => $Af1a7];
goto bcb48;
D079a:
$fd1d7["message"] = "error in apiOrderRefund";
goto A4363;
Bdfa3:
if (!($acea5 == "0")) {
goto D0346;
}
goto e2cdc;
bcb48:
$F92b4[] = ["name" => "refund", "params" => $d7046];
goto C2010;
ed0e2:
$fd1d7["message"] = "Error: The order do not have valid status code ";
goto d29cf;
e19a6:
$fd1d7["ga4"] = "Google API [ Refund Order: " . $c58b0 . " ] Result: refund data posted";
goto ac9da;
eb45d:
$c6d1a["ga4"] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $fd1d7["ga4"]];
goto A4fc9;
Ffab8:
goto b38e7;
goto Df170;
ec37f:
$fd1d7["message"] = "Refund: error order not found or alrady refunded";
goto C4afc;
cbdcc:
D0346:
goto d637f;
d29cf:
return $fd1d7;
goto cbdcc;
da5e4:
}
public function apiOrderChecker($B12df, $Ff39e)
{
goto bc8b1;
A7a78:
curl_setopt($e16d7, CURLOPT_TIMEOUT, 30);
goto a7f95;
dc000:
curl_setopt($e16d7, CURLOPT_URL, $B12df);
goto Cbb4c;
B6b6d:
curl_close($e16d7);
goto fc3b3;
A3c92:
curl_setopt($e16d7, CURLOPT_POSTFIELDS, http_build_query($Ff39e));
goto f1039;
e2010:
return $D4222;
goto aa00c;
a7f95:
curl_setopt($e16d7, CURLOPT_POST, true);
goto A3c92;
bc8b1:
$e16d7 = curl_init();
goto dc000;
Cbb4c:
curl_setopt($e16d7, CURLOPT_RETURNTRANSFER, true);
goto f3d82;
fc3b3:
$D4222 = isset($D4222) ? json_decode($D4222, true) : false;
goto e2010;
f3d82:
curl_setopt($e16d7, CURLOPT_CONNECTTIMEOUT, 30);
goto A7a78;
f1039:
$D4222 = curl_exec($e16d7);
goto B6b6d;
aa00c:
}
public function GAContact()
{
return false;
}
public function googleAPI($Db528, $c513c = false, $cd974 = false)
{
goto e94f3;
cef14:
b6f86:
goto Bdc9a;
Bdc9a:
if ($cd974) {
goto a1751;
}
goto C6125;
d527d:
curl_setopt($e16d7, CURLOPT_POST, true);
goto d79b1;
f1cb6:
$E14c7 = "GA4 API Response Code: " . $b2710 . "
" . $E14c7 . "\xa" . $Db528;
goto A155b;
d2fa6:
$Bed35 = true;
goto a94c9;
fd8f3:
curl_setopt($e16d7, CURLOPT_TIMEOUT, 30);
goto A4316;
A4316:
curl_setopt($e16d7, CURLOPT_SSL_VERIFYPEER, false);
goto F3482;
D4c7d:
curl_close($e16d7);
goto b7309;
ece1c:
aed53:
goto D3704;
fb6de:
return $f2de0;
goto b44a0;
d94a5:
$this->Log("Google Measurement API Validation failed, make sure api is enabled and have valid access token");
goto Ae8e4;
aed70:
goto Dd07a;
goto Febe0;
c91c3:
goto a4a2d;
goto E9212;
Efd86:
$cd974 = false;
goto c91c3;
C6125:
$E14c7 = "GA4 API Response Code: " . $b2710;
goto aed70;
b7309:
$aa395 = json_decode($Bae81, true);
goto ded0b;
Febe0:
a1751:
goto f1cb6;
c65b3:
$e16d7 = curl_init("https://www.google-analytics.com/mp/collect?measurement_id=" . $c513c["ga4_mid"] . "&api_secret=" . $c513c["ga4_api"]);
goto d527d;
E97bb:
a4a2d:
goto e8d80;
Ae8e4:
return $f2de0;
goto dfb72;
f166c:
if ($f30d8) {
goto f12c4;
}
goto d94a5;
B32dd:
curl_setopt($e16d7, CURLOPT_RETURNTRANSFER, true);
goto eecea;
e94f3:
$f2de0["error"] = true;
goto d7f54;
d7f54:
$f2de0["success"] = false;
goto acfdc;
C9d1a:
$A523c = true;
goto Aac65;
a0895:
$f2de0["success"] = $A523c;
goto C4843;
d79b1:
curl_setopt($e16d7, CURLOPT_POSTFIELDS, $Db528);
goto B32dd;
b7ae5:
return $f2de0;
goto Bf9f8;
Ca9e2:
return $f2de0;
goto ece1c;
E9212:
Cf719:
goto ae4ac;
dfb72:
f12c4:
goto bdfa1;
e2959:
if (!($b2710 == "4")) {
goto b6f86;
}
goto C29c5;
bdfa1:
$Bf3e8 = "https://www.google-analytics.com/debug/mp/collect?measurement_id=";
goto c65b3;
acfdc:
$f2de0["message"] = '';
goto f9ac8;
ded0b:
$fd1d7["code"] = $b2710;
goto d2fa6;
ae4ac:
$cd974 = true;
goto E97bb;
Aac65:
ae493:
goto e2959;
A95f4:
if (!($b2710 == "0")) {
goto ae493;
}
goto C9d1a;
D3704:
if ($c513c) {
goto e0266;
}
goto fb6de;
f9ac8:
if (isset($Db528)) {
goto aed53;
}
goto Ca9e2;
F3482:
$Bae81 = curl_exec($e16d7);
goto aa21d;
e8d80:
$f30d8 = $this->checkapiStatus("ga4");
goto f166c;
C4843:
$f2de0["message"] = $E14c7;
goto b7ae5;
eecea:
curl_setopt($e16d7, CURLOPT_HEADER, false);
goto fd8f3;
b44a0:
e0266:
goto E5481;
C29c5:
$A523c = true;
goto cef14;
E5481:
if (isset($c513c["debug_api"]) && $c513c["debug_api"]) {
goto Cf719;
}
goto Efd86;
a94c9:
$E14c7 = $Bae81;
goto A95f4;
A155b:
Dd07a:
goto D68f5;
D68f5:
$f2de0["error"] = false;
goto a0895;
aa21d:
$b2710 = curl_getinfo($e16d7, CURLINFO_HTTP_CODE);
goto D4c7d;
Bf9f8:
}
public function facebookAPI($c513c, $a4c0b, $Db528, $aaedc, $e7e18 = false)
{
goto d1583;
e0d07:
curl_setopt($e16d7, CURLOPT_HEADER, true);
goto Ac7ba;
Bca6f:
$ec49b = json_encode($C7054);
goto d9d26;
d9854:
$Bae81 = curl_exec($e16d7);
goto de237;
C9443:
$e7e18 = isset($c513c["event_id"]) ? $c513c["event_id"] : false;
goto E5c33;
A6984:
$C7054[] = ["event_name" => $a4c0b, "event_id" => $e7e18, "event_time" => $a2fa4, "action_source" => $B349f, "event_source_url" => $F8265, "user_data" => $aaedc];
goto b14c8;
Bad36:
$E14c7 = $aa395;
goto aee32;
ea425:
Abd50:
goto eb33d;
d9d26:
$cbfe2 = [];
goto D8a20;
Ee871:
if ($e7e18) {
goto c08e1;
}
goto C9443;
E3c6d:
$this->Log("Facebook API: Missing dmt Config in API Call");
goto ba38d;
d0aac:
D4cad:
goto d9183;
eb33d:
$A523c = false;
goto F0b79;
Cea0a:
Cb988:
goto Aafb3;
dc2ed:
if ($f30d8) {
goto Fe63e;
}
goto Fd197;
Ac7ba:
curl_setopt($e16d7, CURLOPT_TIMEOUT, 30);
goto Fb125;
Dd43d:
curl_close($e16d7);
goto F54c4;
Af6ec:
C630f:
goto E0ae0;
C0159:
$this->Log("Missing Tagmanger Config in API Call");
goto Cf0e7;
a58b5:
$e16d7 = curl_init("https://graph.facebook.com/" . $d9cff . "/" . $F54b3 . "/events");
goto C87a2;
ac1ee:
aee2d:
goto dcb86;
dcb86:
$a2fa4 = time();
goto B9423;
f7a7f:
return $f2de0;
goto F81ba;
de237:
$b2710 = curl_getinfo($e16d7, CURLINFO_HTTP_CODE);
goto Dd43d;
Fd197:
$this->Log("Facebook API Validation failed, make sure api is enabled and have valid access token");
goto e7ee7;
cb97d:
$this->Log("Facebook API Post Data Invalid: missing event_id");
goto efe27;
C445a:
$cbfe2["data"] = $ec49b;
goto a89ed;
B9bf0:
curl_setopt($e16d7, CURLOPT_RETURNTRANSFER, true);
goto e0d07;
ba38d:
return $f2de0;
goto Af6ec;
B0fe5:
$f2de0["error"] = false;
goto D398e;
aff81:
$f2de0["success"] = false;
goto E2922;
dd2db:
if (!empty($e7e18)) {
goto aee2d;
}
goto cb97d;
dc8cf:
d7df5:
goto Ee871;
E5c33:
c08e1:
goto dd2db;
b735c:
goto E35de;
goto D142b;
C87a2:
curl_setopt($e16d7, CURLOPT_POST, true);
goto e84ac;
E2ae4:
if ($c513c) {
goto C630f;
}
goto E3c6d;
b14c8:
goto F135c;
goto Cea0a;
Edd07:
f676c:
goto d0aac;
C7d2e:
E35de:
goto E42c8;
c320f:
$cd974 = false;
goto b735c;
A36be:
if (!$c513c["bot"]) {
goto d7df5;
}
goto b25b6;
D398e:
$f2de0["success"] = $A523c;
goto f5b12;
d1583:
$f2de0["error"] = true;
goto aff81;
B562a:
$E14c7 = $aa395 . "
" . $ec49b;
goto D1ebe;
e6448:
$F8265 = $c513c["url"];
goto e0dc2;
D8a20:
$cbfe2["access_token"] = $f750d;
goto C445a;
e0dc2:
$F54b3 = $c513c["pixelcode"];
goto Eeb60;
e22c4:
$B349f = "website";
goto e6448;
a9f2b:
Fe63e:
goto A36be;
Ab3ef:
if (!(isset($c513c["pixel_test_code"]) && !empty($c513c["pixel_test_code"]))) {
goto f676c;
}
goto Df296;
a89ed:
if (!(isset($c513c["fb_api_debug"]) && $c513c["fb_api_debug"])) {
goto D4cad;
}
goto Ab3ef;
e84ac:
curl_setopt($e16d7, CURLOPT_POSTFIELDS, $cbfe2);
goto B9bf0;
efe27:
return $f2de0;
goto ac1ee;
Aafb3:
$C7054[] = ["event_name" => $a4c0b, "event_id" => $e7e18, "event_time" => $a2fa4, "action_source" => $B349f, "event_source_url" => $F8265, "user_data" => $aaedc, "custom_data" => $Db528];
goto a2b26;
b25b6:
return $f2de0;
goto dc8cf;
Df296:
$cbfe2["test_event_code"] = $c513c["pixel_test_code"];
goto Edd07;
C8732:
$f750d = $c513c["fb_token"];
goto e22c4;
B9423:
$C2cda = $c513c["fb_api"];
goto C8732;
Cf0e7:
return $f2de0;
goto a80cb;
D1ebe:
e8289:
goto Bd4ea;
Fb125:
curl_setopt($e16d7, CURLOPT_SSL_VERIFYPEER, false);
goto d9854;
aee32:
if (!$cd974) {
goto e8289;
}
goto B562a;
F54c4:
$aa395 = json_decode($Bae81, true);
goto Bad36;
Eeb60:
if ($Db528) {
goto Cb988;
}
goto A6984;
ae256:
$d9cff = "v22.0";
goto a58b5;
E2922:
$f2de0["message"] = '';
goto E2ae4;
cd4ae:
goto D67ab;
goto ea425;
E42c8:
$f30d8 = $this->checkapiStatus("fb");
goto dc2ed;
f5b12:
$f2de0["message"] = $E14c7;
goto f7a7f;
b51b7:
$cd974 = true;
goto C7d2e;
a2b26:
F135c:
goto Bca6f;
a40da:
$A523c = true;
goto cd4ae;
c3c84:
$E14c7 = "Response Code: " . $b2710 . " Result: " . $E14c7;
goto B0fe5;
d9183:
if ($c513c) {
goto fe9e5;
}
goto C0159;
F0b79:
D67ab:
goto c3c84;
Bd4ea:
if ($b2710 != "2") {
goto Abd50;
}
goto a40da;
e7ee7:
return $f2de0;
goto a9f2b;
a80cb:
fe9e5:
goto ae256;
E0ae0:
if (isset($c513c["debug_api"]) && $c513c["debug_api"]) {
goto D36a2;
}
goto c320f;
D142b:
D36a2:
goto b51b7;
F81ba:
}
public function snapchatAPI($c513c, $a4c0b, $Db528, $aaedc, $e7e18 = false)
{
goto B6240;
a85e5:
return $f2de0;
goto Ab8ca;
d52f1:
D8dea:
goto Fb57f;
E3692:
$e16d7 = curl_init();
goto f315a;
Baf56:
return $f2de0;
goto d52f1;
fee19:
if ($Db528) {
goto e4195;
}
goto Bda91;
b79ad:
if ($f30d8) {
goto daafa;
}
goto e2661;
aef9f:
if ($e7e18) {
goto C89f3;
}
goto ff9b2;
ad82d:
$f2de0["message"] = '';
goto Fff8d;
a6446:
return $f2de0;
goto bce5e;
Fb57f:
if (!$Db528) {
goto c964a;
}
goto d2da1;
a248a:
$E14c7 = $Bae81;
goto C095b;
f290b:
$f2de0["error"] = false;
goto Ddd1b;
B2071:
$b2710 = curl_getinfo($e16d7, CURLINFO_HTTP_CODE);
goto bdd70;
Bda91:
$c0409[] = ["event_name" => $a4c0b, "event_time" => time(), "event_source_url" => $c513c["url"], "event_id" => $e7e18, "action_source" => "WEB", "user_data" => $aaedc];
goto d0439;
fb7b3:
$f2de0["success"] = false;
goto ad82d;
d4221:
if ($b2710 != "200") {
goto c5f9e;
}
goto a1782;
fab87:
return $f2de0;
goto dce96;
a2f5b:
$F54b3 = $c513c["snap_pixel_id"];
goto A6a13;
A6a13:
$d9cff = "v3";
goto B87f3;
ff9b2:
$e7e18 = isset($c513c["event_id"]) ? $c513c["event_id"] : false;
goto a6d08;
fd64c:
$this->Log("Missing dmt Config in API Call");
goto F6552;
C095b:
if (!$cd974) {
goto c3cc8;
}
goto F372e;
F6c4b:
goto F65a1;
goto E5d26;
bdd70:
curl_close($e16d7);
goto Ade9b;
F2d0a:
$E14c7 = "Response Code: " . $b2710 . " Result: " . $E14c7;
goto f290b;
Ef904:
Ccaa7:
goto Bb275;
a4583:
c3cc8:
goto d4221;
B87f3:
$B12df = "https://tr.snapchat.com/" . $d9cff . "/" . $F54b3 . "/events?access_token=" . $f750d;
goto c45d8;
df35e:
$ec49b = json_encode($ec49b);
goto E3692;
F8187:
goto B6140;
goto a70b2;
Ab8ca:
daafa:
goto D73cc;
A08b4:
$f2de0["message"] = $E14c7;
goto fab87;
c45d8:
if (!(isset($c513c["snap_pixel_api_debug"]) && $c513c["snap_pixel_api_debug"])) {
goto A0304;
}
goto dfca0;
E5d26:
c5f9e:
goto Ce9ba;
a1782:
$A523c = true;
goto F6c4b;
A242e:
$this->Log("Snapchat API Post Data Invalid: missing event_id");
goto Baf56;
dfca0:
$B12df = "https://tr.snapchat.com/" . $d9cff . "/" . $F54b3 . "/events/validate?access_token=" . $f750d;
goto Fcdfb;
Ce9ba:
$A523c = false;
goto d9021;
Fff8d:
if ($c513c) {
goto Ccaa7;
}
goto fd64c;
d0439:
e4195:
goto c78d8;
Bb275:
if (isset($c513c["debug_api"]) && $c513c["debug_api"]) {
goto Ffe3a;
}
goto d4ad9;
d4ad9:
$cd974 = false;
goto F8187;
e2661:
$this->Log("Snapchat API Validation failed, make sure api is enabled and have valid access token");
goto a85e5;
c78d8:
$ec49b = ["data" => $c0409];
goto Abf7e;
F6552:
return $f2de0;
goto Ef904;
Abf7e:
$f750d = $c513c["snap_pixel_token"];
goto a2f5b;
B6240:
$f2de0["error"] = true;
goto fb7b3;
Cd995:
$Bae81 = curl_exec($e16d7);
goto B2071;
A42c2:
$cd974 = true;
goto C6282;
b9bbd:
if (!empty($e7e18)) {
goto D8dea;
}
goto A242e;
bce5e:
c09eb:
goto aef9f;
Ddd1b:
$f2de0["success"] = $A523c;
goto A08b4;
Fcdfb:
A0304:
goto df35e;
Ade9b:
$aa395 = json_decode($Bae81, true);
goto a248a;
d2da1:
$c0409[] = ["event_name" => $a4c0b, "event_time" => time(), "event_source_url" => $c513c["url"], "event_id" => $e7e18, "action_source" => "WEB", "user_data" => $aaedc, "custom_data" => $Db528];
goto b2f20;
f315a:
curl_setopt_array($e16d7, [CURLOPT_URL => $B12df, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $ec49b, CURLOPT_HTTPHEADER => ["Content-Type: application/json"]]);
goto Cd995;
a659c:
$f30d8 = $this->checkapiStatus("snapchat");
goto b79ad;
D73cc:
if (!$c513c["bot"]) {
goto c09eb;
}
goto a6446;
a6d08:
C89f3:
goto b9bbd;
F372e:
$E14c7 = $Bae81 . "
" . $ec49b;
goto a4583;
a70b2:
Ffe3a:
goto A42c2;
C6282:
B6140:
goto a659c;
b2f20:
c964a:
goto fee19;
d9021:
F65a1:
goto F2d0a;
dce96:
}
public function tiktokAPI($c513c, $a4c0b, $Db528, $aaedc, $e7e18 = false)
{
goto Ae180;
D6d4e:
$ec49b["test_event_code"] = $a2f12;
goto D8ad8;
A8cd2:
$e16d7 = curl_init();
goto e0a9d;
Aa61f:
$f30d8 = $this->checkapiStatus("tiktok");
goto A5457;
D27b2:
D6e2c:
goto bb253;
b3afd:
$f2de0["success"] = $A523c;
goto eaa4d;
E36d9:
if (isset($c513c["debug_api"]) && $c513c["debug_api"]) {
goto B4792;
}
goto effdc;
A5457:
if ($f30d8) {
goto Ff18e;
}
goto F8cd3;
db7e9:
Ad182:
goto Aa61f;
da63e:
c95f5:
goto E36d9;
bf9d8:
return $f2de0;
goto f04dc;
A540b:
$d9cff = "v1.3";
goto F7756;
e2776:
goto Ad182;
goto e5967;
D3c47:
if (!$Db528) {
goto Da952;
}
goto fc1b5;
dddcb:
curl_close($e16d7);
goto Db12b;
B133f:
Da952:
goto c5b21;
E58cd:
$f2de0["error"] = true;
goto Fa93f;
E647b:
C76d9:
goto f6347;
b1a3a:
goto dd0bf;
goto C82e9;
D7693:
$f2de0["message"] = '';
goto D0766;
C82e9:
af560:
goto bb34f;
c634a:
return $f2de0;
goto d7f0e;
eaa4d:
$f2de0["message"] = $E14c7;
goto c634a;
fc1b5:
$Eba94[] = ["event" => $a4c0b, "event_time" => time(), "event_id" => $e7e18, "user" => $aaedc, "properties" => $Db528, "page" => ["url" => $c513c["url"], "referrer" => $c513c["referrer"]]];
goto B133f;
e5967:
B4792:
goto cc6da;
e0a9d:
curl_setopt_array($e16d7, [CURLOPT_URL => $B12df, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $ec49b, CURLOPT_HTTPHEADER => ["Access-Token: " . $c513c["tiktok_token"], "Content-Type: application/json"]]);
goto e5546;
Fd2fb:
return $f2de0;
goto E647b;
eda9a:
$b2710 = curl_getinfo($e16d7, CURLINFO_HTTP_CODE);
goto dddcb;
Faa89:
$A523c = true;
goto b1a3a;
d549e:
Bc2d9:
goto F5f44;
f8315:
$this->Log("Tiktok API Post Data Invalid: missing event_id");
goto bf9d8;
B28bc:
$ec49b = ["event_source" => "web", "event_source_id" => $c513c["tiktok_code"], "data" => $Eba94];
goto D7d5a;
da6cd:
return $f2de0;
goto c5fea;
e6e95:
$this->Log("Missing dmt Config in API Call");
goto ccee6;
effdc:
$cd974 = false;
goto e2776;
F5f44:
dddec:
goto af757;
a761d:
$E14c7 = $Bae81 . "\xa" . $ec49b;
goto cb51f;
f04dc:
e643e:
goto D3c47;
c5b21:
if ($Db528) {
goto ea925;
}
goto ad515;
f3dc2:
ea925:
goto B28bc;
ad515:
$Eba94[] = ["event" => $a4c0b, "event_time" => time(), "event_id" => $e7e18, "user" => $aaedc, "page" => ["url" => $c513c["url"], "referrer" => $c513c["referrer"]]];
goto f3dc2;
Ae180:
$a2f12 = false;
goto E58cd;
Ac263:
$e7e18 = isset($c513c["event_id"]) ? $c513c["event_id"] : false;
goto D27b2;
F7756:
$ec49b = json_encode($ec49b);
goto C7124;
A0f72:
$E14c7 = "Response Code: " . $b2710 . " Result: " . $E14c7;
goto dfe29;
C6ccb:
$E14c7 = $Bae81;
goto E691d;
C7124:
$B12df = "https://business-api.tiktok.com/open_api/" . $d9cff . "/event/track/";
goto A8cd2;
Fd70a:
if (!(isset($c513c["tiktok_api_testcode"]) && !empty($c513c["tiktok_api_testcode"]))) {
goto Bc2d9;
}
goto Fa0f0;
e5546:
$Bae81 = curl_exec($e16d7);
goto eda9a;
cc6da:
$cd974 = true;
goto db7e9;
Db12b:
$aa395 = json_decode($Bae81, true);
goto C6ccb;
e4fbd:
dd0bf:
goto A0f72;
Fa0f0:
$a2f12 = $c513c["tiktok_api_testcode"];
goto d549e;
c5fea:
Ff18e:
goto b9812;
dfe29:
$f2de0["error"] = false;
goto b3afd;
Fa93f:
$f2de0["success"] = false;
goto D7693;
f6347:
if (!(isset($c513c["tiktok_api_debug"]) && $c513c["tiktok_api_debug"])) {
goto dddec;
}
goto Fd70a;
D0766:
if ($c513c) {
goto c95f5;
}
goto e6e95;
b9812:
if (!$c513c["bot"]) {
goto C76d9;
}
goto Fd2fb;
af757:
if ($e7e18) {
goto D6e2c;
}
goto Ac263;
F8cd3:
$this->Log("Tiktok API Validation failed, make sure api is enabled and have valid access token");
goto da6cd;
bb34f:
$A523c = false;
goto e4fbd;
E691d:
if (!$cd974) {
goto Fd77f;
}
goto a761d;
bb253:
if (!empty($e7e18)) {
goto e643e;
}
goto f8315;
fa73a:
if ($b2710 != "2") {
goto af560;
}
goto Faa89;
cb51f:
Fd77f:
goto fa73a;
D7d5a:
if (!$a2f12) {
goto D05f0;
}
goto D6d4e;
ccee6:
return $f2de0;
goto da63e;
D8ad8:
D05f0:
goto A540b;
d7f0e:
}
public function sendinbluePost($Db528, $b4efd = "identify")
{
goto a7aff;
ee8f6:
C2843:
goto A13cf;
E4c2e:
if (!$cd974) {
goto b1659;
}
goto F312f;
Df452:
$e16d7 = curl_init();
goto Cb7de;
cb494:
goto e77d6;
goto F1280;
b5039:
$Bae81 = curl_exec($e16d7);
goto b4ed0;
F312f:
$this->Log("Sendinblue error Code: Empty body api call cancelled");
goto c2c06;
a839c:
$B12df = "https://in-automate.sendinblue.com/api/v2/{$b4efd}";
goto B812f;
e0648:
if (isset($Db528)) {
goto e0d71;
}
goto E4c2e;
ebb57:
e0d71:
goto a839c;
Aac19:
if (!$cd974) {
goto c4796;
}
goto c1da2;
b4ed0:
$Ad5c9 = curl_error($e16d7);
goto F6df1;
fa45e:
e77d6:
goto e0648;
a7aff:
$c513c = $this->config();
goto D6d79;
D6d79:
if (isset($c513c["debug_api"]) && $c513c["debug_api"]) {
goto b817d;
}
goto Eedda;
fe3fb:
c4796:
goto ee8f6;
fe47c:
$this->Log("Sendinblue CURL response: " . $Bae81);
goto fe3fb;
b5c37:
return false;
goto ebb57;
c2c06:
b1659:
goto b5c37;
Eedda:
$cd974 = false;
goto cb494;
c1da2:
$this->Log("Sendinblue CURL error: " . $Ad5c9);
goto fe47c;
d24e4:
$cd974 = true;
goto fa45e;
B812f:
$e7e99 = ["Content-Type: application/json", "ma-key: " . $c513c["sendinblue_code"]];
goto Df452;
F1280:
b817d:
goto d24e4;
c349f:
if (!$Ad5c9) {
goto C2843;
}
goto Aac19;
F6df1:
curl_close($e16d7);
goto c349f;
Cb7de:
curl_setopt_array($e16d7, array(CURLOPT_HTTPHEADER => $e7e99, CURLOPT_URL => $B12df, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => json_encode($Db528)));
goto b5039;
A13cf:
}
public function Log($B2fc2)
{
goto B838d;
F84cb:
if (!file_exists($C6971)) {
goto c56ac;
}
goto A1914;
bffaf:
f3820:
goto e30de;
Ce3c1:
$E908f = date("d/m/Y");
goto d0df6;
A2b8b:
$f48ff = "tmcron";
goto Ce3c1;
B7888:
cb22f:
goto e4f72;
df1f6:
if (!$this->dmt_debug) {
goto f3820;
}
goto dda82;
e4f72:
$c513c = $this->settings;
goto df1f6;
A1914:
$ff4d3 = filesize($C6971);
goto B8cb9;
A8ee1:
$C6971 = DIR_LOGS . "dmt.log";
goto B0f96;
B8cb9:
$this->getSettings($f48ff, $F54aa, $f5425, false);
goto a337a;
F1d43:
unlink($C6971);
goto c9fba;
E834a:
c56ac:
goto B7888;
c9fba:
Aed9e:
goto E834a;
B838d:
$F54aa = "tmcrom_date";
goto A2b8b;
d0df6:
$f5425 = date("d/m/Y", strtotime("+1 days"));
goto C3bcb;
B0f96:
if (!(!isset($B8aa3) || empty($B8aa3) || $E908f >= $B8aa3)) {
goto cb22f;
}
goto F84cb;
dda82:
$this->write($B2fc2);
goto bffaf;
a337a:
if (!($ff4d3 > 2400000)) {
goto Aed9e;
}
goto F1d43;
C3bcb:
$B8aa3 = $this->config->get($F54aa);
goto A8ee1;
e30de:
}
public function tmerror($B2fc2)
{
goto Aaa37;
c0628:
if (!(!isset($B8aa3) || empty($B8aa3) || $E908f >= $B8aa3)) {
goto cbcc5;
}
goto E8ab7;
a41fb:
$C6971 = DIR_LOGS . "dmt.log";
goto c0628;
dd3ff:
$ff4d3 = filesize($C6971);
goto B6e16;
b31a9:
$B8aa3 = $this->config->get($F54aa);
goto a41fb;
bebb7:
$f48ff = "tmcron";
goto c8e4e;
B8026:
if (!($ff4d3 > 2400000)) {
goto dcfcd;
}
goto f64b0;
f64b0:
unlink($C6971);
goto B70a5;
A6991:
F5d88:
goto f7466;
E8ab7:
if (!file_exists($C6971)) {
goto F5d88;
}
goto dd3ff;
Aaa37:
$F54aa = "tmcrom_date";
goto bebb7;
B6e16:
$this->getSettings($f48ff, $F54aa, $f5425, false);
goto B8026;
c8e4e:
$E908f = date("d/m/Y");
goto A1435;
f7466:
cbcc5:
goto f2d1f;
f2d1f:
$c513c = $this->settings;
goto E2aff;
A1435:
$f5425 = date("d/m/Y", strtotime("Y days"));
goto b31a9;
ba0a1:
d9d84:
goto F94f1;
Ce86a:
$this->write($B2fc2);
goto ba0a1;
B70a5:
dcfcd:
goto A6991;
E2aff:
if (!$this->dmt_debug) {
goto d9d84;
}
goto Ce86a;
F94f1:
}
public function write($E14c7)
{
$fe19b = DIR_LOGS . "dmt.log";
file_put_contents($fe19b, date("Y-m-d H:i:s") . " - " . print_r($E14c7, true) . "\xaURL: " . (isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : '') . "
REFFER: " . (isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : '') . "\xa================================= \*\*\*\*\*\*\*\*|***/*/ =================================\xa", FILE_APPEND);
}
public function tmprint($Db528 = array(), $Bade8 = true)
{
goto fe544;
c01f4:
F1889:
goto E46fd;
F6ff8:
if (!$Bade8) {
goto F1889;
}
goto Fd05f;
Cadd7:
$Bade8 = true;
goto Be810;
Be810:
F18ad:
goto F6ff8;
F6831:
echo "</pre>";
goto e579c;
e579c:
if (!isset($this->request->get["killme"])) {
goto F18ad;
}
goto Cadd7;
fe544:
echo "<pre>";
goto C7f14;
Fd05f:
die;
goto c01f4;
C7f14:
print_r($Db528);
goto F6831;
E46fd:
}
public function Error($Db528 = array(), $Bade8 = true)
{
goto A8ffb;
c2aff:
Db4dd:
goto be6a5;
Aa5bd:
echo "</pre>";
goto A7ce9;
A7ce9:
if (!isset($this->request->get["killme"])) {
goto Dc94f;
}
goto e70f6;
e46e7:
print_r($Db528);
goto Aa5bd;
C7be3:
Dc94f:
goto d0890;
d0890:
if (!$Bade8) {
goto Db4dd;
}
goto Efc18;
A8ffb:
echo "<pre>";
goto e46e7;
e70f6:
$Bade8 = true;
goto C7be3;
Efc18:
die;
goto c2aff;
be6a5:
}
private function checkapiStatus($Ccad7)
{
goto D3c41;
D3c41:
$c513c = $this->config();
goto eb433;
cbd31:
b15d4:
goto ca7aa;
eb433:
if (isset($Ccad7)) {
goto b15d4;
}
goto eb703;
ca7aa:
switch ($Ccad7) {
case "ga4":
goto ed560;
ed560:
if (!(!isset($c513c["ga4_mid"]) && empty($c513c["ga4_api"]))) {
goto Eea9a;
}
goto C1ae6;
F7983:
A77b7:
goto f3df9;
C1ae6:
if (!$this->dmt_debug) {
goto A77b7;
}
goto C8fbe;
fc74a:
goto c94a0;
goto bcc84;
C8fbe:
$this->Log("DMT Debug Log: API Check failed for GA4, error GA4 API secret missing");
goto F7983;
c83bc:
Eea9a:
goto fc74a;
f3df9:
return false;
goto c83bc;
bcc84:
case "fb":
goto A966d;
ded58:
A291d:
goto B8ced;
A966d:
if ($c513c["fb_api"]) {
goto d9ea9;
}
goto Ea41f;
B8ced:
return false;
goto f4bd8;
Ea41f:
return false;
goto bb8ac;
b000d:
if (!$this->dmt_debug) {
goto A291d;
}
goto F7e2c;
f4bd8:
e915e:
goto f4ada;
bb8ac:
d9ea9:
goto aa609;
f4ada:
goto c94a0;
goto aca67;
aa609:
if (!empty($c513c["fb_token"])) {
goto e915e;
}
goto b000d;
F7e2c:
$this->Log("DMT Debug Log: API Check failed for Facebook, error API secret missing");
goto ded58;
aca67:
case "snapchat":
goto e01b1;
f99d7:
F25f6:
goto df006;
b6b00:
return false;
goto B1da5;
cc0cb:
if (!$this->dmt_debug) {
goto cefd2;
}
goto B97b9;
B1da5:
e79e2:
goto E9199;
A16f8:
return false;
goto f99d7;
B97b9:
$this->Log("DMT Debug Log: API Check failed for Snap Chat, error API token missing");
goto bdfc8;
df006:
if (!empty($c513c["snap_pixel_token"])) {
goto e79e2;
}
goto cc0cb;
e01b1:
if ($c513c["snap_pixel_api"]) {
goto F25f6;
}
goto A16f8;
E9199:
goto c94a0;
goto cf912;
bdfc8:
cefd2:
goto b6b00;
cf912:
case "tiktok":
goto fa584;
E339c:
Caae7:
goto a4e28;
D9414:
if (!$this->dmt_debug) {
goto A6784;
}
goto Be9e7;
a4e28:
goto c94a0;
goto d6506;
e4c9e:
A6784:
goto f719d;
Be9e7:
$this->Log("DMT Debug Log: API Check failed for TikTok, error API token missing");
goto e4c9e;
fa584:
if ($c513c["tiktok_api"]) {
goto f3e06;
}
goto b11d8;
f719d:
return false;
goto E339c;
F2be7:
if (!empty($c513c["tiktok_token"])) {
goto Caae7;
}
goto D9414;
Ef0e9:
f3e06:
goto F2be7;
b11d8:
return false;
goto Ef0e9;
d6506:
}
goto cdcf9;
c9a5e:
c94a0:
goto E9624;
cdcf9:
a29f7:
goto c9a5e;
eb703:
return false;
goto cbd31;
E9624:
return true;
goto e9c50;
e9c50:
}
public function check_array($c12c5)
{
return is_array($c12c5) || $c12c5 instanceof \Countable || $c12c5 instanceof \SimpleXMLElement || $c12c5 instanceof \ResourceBundle;
}
public function escapeJsonString($f5425)
{
goto e7a45;
F0d8f:
return $f2de0;
goto Bad9d;
e0c11:
$f2de0 = str_replace($Baff1, $c170d, $f5425);
goto F0d8f;
e7a45:
$Baff1 = ["\", "/", """, "\xa", "\xd", "\x9", "", ""];
goto Ccb6e;
Ccb6e:
$c170d = ["\\", "\/", "\"", "\n", "\r", "\t", "\f", "\b"];
goto e0c11;
Bad9d:
}
public function getAJAXtoken()
{
goto A271d;
A36df:
$Ec345 = $this->getHash($Ec345);
goto addb8;
A271d:
$Ec345 = $this->getNewURL();
goto A36df;
addb8:
return $Ec345;
goto A4273;
A4273:
}
public function getNewURL()
{
goto F6361;
C8d39:
F6f80:
goto A63a9;
fbfcb:
if ($D27f1 == 3) {
goto D4f8a;
}
goto A0f49;
ea859:
Bfaaa:
goto F5d68;
Afe52:
dc137:
goto a932e;
B43ca:
$D572b = explode(, $Aaf13);
goto dc894;
F5d68:
goto Aac8b;
goto bde39;
Cb0f2:
goto Aac8b;
goto C8d39;
F6361:
$B12df = false;
goto C0a6f;
A0f49:
if ($D27f1 == 4) {
goto b99f4;
}
goto Cb0f2;
dc894:
$Aa5f6 = $this->check_array($D572b);
goto F9854;
d3f9e:
$B12df = $D572b[1] . . $D572b[2];
goto c3372;
C9ccc:
if (strtolower($D572b[0]) != "www") {
goto cd17c;
}
goto d3f9e;
F9854:
if (!$Aa5f6) {
goto dc137;
}
goto ef01c;
a33c8:
if ($D27f1 == 2) {
goto F6f80;
}
goto fbfcb;
bde39:
b99f4:
goto ed132;
E2a88:
Aac8b:
goto Afe52;
a932e:
return $B12df;
goto cf760;
F9103:
$B12df = $D572b[0] . . $D572b[1] . . $D572b[2];
goto ea859;
C24a9:
D4f8a:
goto C9ccc;
e3d68:
goto Aac8b;
goto C24a9;
ef01c:
$D27f1 = count($D572b);
goto a33c8;
B5962:
cd17c:
goto F9103;
A63a9:
$B12df = $D572b[0] . . $D572b[1];
goto e3d68;
ed132:
$B12df = $D572b[1] . . $D572b[2] . . $D572b[3];
goto E2a88;
C0a6f:
$Aaf13 = $this->request->server["SERVER_NAME"];
goto B43ca;
c3372:
goto Bfaaa;
goto B5962;
cf760:
}
public function cleanStr($Db528)
{
goto e1b36;
E612d:
$Db528 = str_replace("&", '', $Db528);
goto a7245;
c2181:
$Db528 = str_replace("quot;", '', $Db528);
goto d3719;
e9366:
$Db528 = str_replace(" ", " ", $Db528);
goto fa7a6;
fa7a6:
return $Db528;
goto B4470;
C13c6:
fd8ec:
goto E784d;
fa1a5:
$Db528 = str_replace("	", '', $Db528);
goto c2181;
e8aed:
return $Db528;
goto C13c6;
E784d:
$Db528 = str_replace(""", '', $Db528);
goto F3c46;
F3c46:
$Db528 = str_replace("'", '', $Db528);
goto fa1a5;
E2e5b:
$Db528 = mb_substr(trim(strip_tags(html_entity_decode($Db528, ENT_QUOTES, "UTF-8"))), 0, 50);
goto a8bb9;
bd08e:
$Db528 = str_replace("&", "&", $Db528);
goto A0b7f;
a8bb9:
$Db528 = htmlspecialchars($Db528, ENT_QUOTES, "UTF-8");
goto E612d;
A0b7f:
$Db528 = str_replace("&", '', $Db528);
goto E2e5b;
a7245:
$Db528 = str_replace(">", ">", $Db528);
goto e9366;
e1b36:
if (!empty($Db528)) {
goto fd8ec;
}
goto e8aed;
d3719:
$Db528 = str_replace("&", "&", $Db528);
goto bd08e;
B4470:
}
private function sanitize_string($f6868)
{
goto bb0a4;
Fae25:
$f6868 = preg_replace("`&([a-z]{1b})(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig);`i", "\1", $f6868);
goto Dbd8a;
D5ab9:
$f6868 = preg_replace("/[\n\t\r]/", " ", $f6868);
goto Ec1f5;
Dbd8a:
$f6868 = html_entity_decode($f6868, ENT_NOQUOTES, "UTF-8");
goto da89d;
Fab86:
$f6868 = mb_convert_encoding($f6868, "UTF-8", mb_detect_encoding($f6868));
goto C0ad7;
C0ad7:
fb915:
goto Ad6bb;
b5c32:
if (!($f6868 !== mb_convert_encoding(mb_convert_encoding($f6868, "UTF-", "UTF-8"), "UTF-8", "UTFk2"))) {
goto fb915;
}
goto Fab86;
F617b:
$f6868 = trim($f6868);
goto D1cb3;
Ec1f5:
$f6868 = preg_replace("/( ){2,}/", "$1", $f6868);
goto F617b;
bb0a4:
$A9811 = array("&", "&");
goto F6be8;
D1cb3:
return $f6868;
goto Ddf5c;
F6be8:
$f6868 = str_replace($A9811, "E", $f6868);
goto b5c32;
Ad6bb:
$f6868 = htmlentities($f6868, ENT_NOQUOTES, "UTF-8");
goto Fae25;
da89d:
$f6868 = preg_replace(array("`[^a-z0-9]`i", "`[-]+`"), " ", $f6868);
goto D5ab9;
Ddf5c:
}
private function getEmailHash($Db528)
{
goto cbbf8;
a4215:
return hash("sha6", $Db528, false);
goto c5b05;
Af7c4:
return $Db528;
goto b9189;
a6cc2:
if (!$this->isHashed($Db528)) {
goto C685e;
}
goto Af7c4;
A044f:
C1a60:
goto F7276;
c19ec:
return '';
goto A044f;
b9189:
C685e:
goto a4215;
F7276:
$Db528 = trim($Db528);
goto cd784;
cbbf8:
if (!(!isset($Db528) || empty($Db528))) {
goto C1a60;
}
goto c19ec;
cd784:
$Db528 = strtolower($Db528);
goto a6cc2;
c5b05:
}
private function getPhoneHash($Db528, $a3275 = false)
{
goto c1d40;
d3938:
return '';
goto D82d9;
fb0e7:
if (!$this->isHashed($Db528)) {
goto D18e5;
}
goto Cb8d4;
b1294:
$Db528 = trim($Db528);
goto c41ca;
c41ca:
$Db528 = strtolower($Db528);
goto fb0e7;
D82d9:
bf246:
goto b1294;
Da914:
D18e5:
goto f74f4;
f74f4:
return hash("sha6", $Db528, false);
goto B0f22;
Cb8d4:
return $Db528;
goto Da914;
c1d40:
if (!(!isset($Db528) || empty($Db528))) {
goto bf246;
}
goto d3938;
B0f22:
}
public function getHash($Db528)
{
goto ada74;
f8c0a:
return '';
goto A1ff1;
E08dc:
baa62:
goto f4ead;
c6197:
$Db528 = strtolower($Db528);
goto Ce5ea;
A1ff1:
bffd3:
goto B2aca;
ada74:
if (!(!isset($Db528) || empty($Db528))) {
goto bffd3;
}
goto f8c0a;
f4ead:
return hash("sha256", $Db528, false);
goto fc59f;
Ce5ea:
if (!$this->isHashed($Db528)) {
goto baa62;
}
goto c7006;
B2aca:
$Db528 = trim($Db528);
goto c6197;
c7006:
return $Db528;
goto E08dc;
fc59f:
}
public function getEncrypt($Db528, $F54aa = false)
{
goto fedeb;
D8c5c:
return false;
goto df8bb;
df8bb:
b2d10:
goto dc1e9;
a45f4:
$D32e0 = "GTMEXTENSIONBYAITS";
goto f4bba;
fedeb:
if (isset($Db528)) {
goto b2d10;
}
goto D8c5c;
Ba844:
$D32e0 = $F54aa;
goto D213f;
bd83f:
return false;
goto C4ae4;
Ac70e:
try {
goto c0ac8;
fd4cb:
$De099 = 0;
goto Ec507;
Ec507:
$A4a55 = "34589121";
goto af70d;
Cfc6f:
$ef828 = openssl_cipher_iv_length($C32de);
goto fd4cb;
c0ac8:
$C32de = "AES-128-CTR";
goto Cfc6f;
c3c88:
return $b6a5b;
goto d1e59;
af70d:
$b6a5b = openssl_encrypt($Db528, $C32de, $D32e0, $De099, $A4a55);
goto c3c88;
d1e59:
} catch (Exception $F85b4) {
$this->Log("OpenSSL encrypt failer");
}
goto bd83f;
f4bba:
goto E2949;
goto C71c7;
dc1e9:
if ($F54aa) {
goto ef69a;
}
goto a45f4;
D213f:
E2949:
goto Ac70e;
C71c7:
ef69a:
goto Ba844;
C4ae4:
}
public function getDecrypt($Db528, $F54aa = false)
{
goto ac90e;
f834f:
$D32e0 = "GTMEXTENSIONBYAITS";
goto Ad75c;
b4b2d:
$D32e0 = $F54aa;
goto f5a5d;
ca3d1:
try {
goto b411e;
A236d:
return $b6a5b;
goto A134c;
fafcf:
$De099 = 0;
goto c414d;
D88aa:
$ef828 = openssl_cipher_iv_length($C32de);
goto fafcf;
b411e:
$C32de = "AES-8-CTR";
goto D88aa;
c414d:
$A4a55 = "1236789111";
goto D7d97;
D7d97:
$b6a5b = openssl_decrypt($Db528, $C32de, $D32e0, $De099, $A4a55);
goto A236d;
A134c:
} catch (Exception $F85b4) {
$this->Log("OpenSSL decrypt failer");
}
goto Fc053;
ac90e:
if (isset($Db528)) {
goto A4f32;
}
goto F5147;
ebdac:
A4f32:
goto f9950;
Fc053:
return false;
goto aaae5;
F5147:
return false;
goto ebdac;
f9950:
if ($F54aa) {
goto d8019;
}
goto f834f;
Ad75c:
goto B3c02;
goto e8218;
e8218:
d8019:
goto b4b2d;
f5a5d:
B3c02:
goto ca3d1;
aaae5:
}
private function isHashed($Db528)
{
return preg_match("/^[A-Fa-f0-9]{64}$/", $Db528) || preg_match("/^[a-f0-9]{32}$/", $Db528);
}
public function getIpAddress()
{
goto fd1e0;
ae8d2:
goto F4b21;
goto Da35b;
Ca303:
goto A8265;
goto Dcc06;
b67da:
goto F4b21;
goto E0c74;
e5c14:
F4b21:
goto A200d;
ff879:
$f20f1 = explode(",", $f20f1);
goto B6be2;
A442f:
if (isset($_SERVER["HTTP_FORWARDED"]) && !empty($_SERVER["HTTP_FORWARDED"])) {
goto Eba92;
}
goto fa072;
a0cac:
goto F4b21;
goto Aff64;
A200d:
return $A94fa;
goto B86f3;
fa072:
if (isset($_SERVER["REMOTE_ADDR"]) && !empty($_SERVER["REMOTE_ADDR"])) {
goto c1249;
}
goto Fff38;
ff050:
$A94fa = $_SERVER["HTTP_CLIENT_IP"];
goto D6ca1;
D6ca1:
goto F4b21;
goto C035e;
aae4e:
if (isset($_SERVER["HTTP_CLIENT_IP"]) && !empty($_SERVER["HTTP_CLIENT_IP"])) {
goto C729d;
}
goto E5475;
Aff64:
Eba92:
goto Db758;
fbb98:
if (isset($_SERVER["HTTP_X_FORWARDED"]) && !empty($_SERVER["HTTP_X_FORWARDED"])) {
goto B244f;
}
goto D38a6;
Fff38:
goto F4b21;
goto E3f45;
af953:
$f20f1 = $_SERVER["HTTP_X_FORWARDED_FOR"];
goto E955c;
Abd4f:
$A94fa = $_SERVER["HTTP_CF_CONNECTING_IP"];
goto b67da;
fd1e0:
$A94fa = "0.0pp";
goto aae4e;
D5660:
if (isset($_SERVER["HTTP_X_FORWARDED_FOR"]) && !empty($_SERVER["HTTP_X_FORWARDED_FOR"])) {
goto da015;
}
goto fbb98;
C035e:
ec0c6:
goto Abd4f;
E3f45:
C729d:
goto ff050;
Acc98:
B244f:
goto D81d4;
E0c74:
da015:
goto af953;
E5475:
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"]) && !empty($_SERVER["HTTP_CF_CONNECTING_IP"])) {
goto ec0c6;
}
goto D5660;
Db758:
$A94fa = $_SERVER["HTTP_FORWARDED"];
goto d4009;
D38a6:
if (isset($_SERVER["HTTP_FORWARDED_FOR"]) && !empty($_SERVER["HTTP_FORWARDED_FOR"])) {
goto A36c9;
}
goto A442f;
D96bd:
$A94fa = $_SERVER["REMOTE_ADDR"];
goto e5c14;
B6be2:
$A94fa = array_pop($f20f1);
goto C06e6;
C06e6:
A8265:
goto E39a1;
E39a1:
goto F4b21;
goto Acc98;
Da35b:
A36c9:
goto Dea1e;
ffb17:
$A94fa = $f20f1;
goto Ca303;
D81d4:
$A94fa = $_SERVER["HTTP_X_FORWARDED"];
goto ae8d2;
Dcc06:
fa829:
goto ff879;
Dea1e:
$A94fa = $_SERVER["HTTP_FORWARDED_FOR"];
goto a0cac;
Cc4a9:
c1249:
goto D96bd;
d4009:
goto F4b21;
goto Cc4a9;
E955c:
if ($this->strFind($f20f1, ",")) {
goto fa829;
}
goto ffb17;
B86f3:
}
public function getHttpUserAgent()
{
goto Ebe97;
D883d:
goto D0192;
goto C6cb8;
Bec9d:
$D4df1 = $this->request->server["HTTP_USER_AGENT"];
goto B73a4;
C6cb8:
Eee7c:
goto ecfb0;
Fb515:
return $D4df1;
goto A27cf;
Bc427:
if (isset($_SERVER["HTTP_USER_AGENT"]) && !empty($_SERVER["HTTP_USER_AGENT"])) {
goto Eee7c;
}
goto f51e7;
Cb9c2:
goto D0192;
goto d54dd;
d54dd:
d8186:
goto Bec9d;
B73a4:
D0192:
goto Fb515;
Ebe97:
$D4df1 = null;
goto Bc427;
f51e7:
if (isset($this->request->server["HTTP_USER_AGENT"])) {
goto d8186;
}
goto D883d;
ecfb0:
$D4df1 = $_SERVER["HTTP_USER_AGENT"];
goto Cb9c2;
A27cf:
}
public function getRequestUri()
{
goto f3e68;
E6975:
if (!(isset($_SERVER["HTTPS"]) && !empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off")) {
goto a2298;
}
goto C2cdf;
ad595:
$B12df .= $_SERVER["HTTP_HOST"];
goto ea1ed;
C253d:
return $B12df;
goto bf343;
f3e68:
$B12df = "http://";
goto E6975;
ebd9c:
a2298:
goto a83a9;
a83a9:
if (!(isset($_SERVER["HTTP_HOST"]) && !empty($_SERVER["HTTP_HOST"]))) {
goto Bc156;
}
goto ad595;
eb67d:
$B12df .= $_SERVER["REQUEST_URI"];
goto d273a;
E60fc:
if (!(isset($_SERVER["REQUEST_URI"]) && !empty($_SERVER["REQUEST_URI"]))) {
goto A8f42;
}
goto eb67d;
d273a:
A8f42:
goto C253d;
ea1ed:
Bc156:
goto E60fc;
C2cdf:
$B12df = "https://";
goto ebd9c;
bf343:
}
public function getGclid()
{
goto e7eeb;
bd92c:
$ffe3b = $B6bc8[0];
goto ecc98;
ebe0c:
return $ffe3b;
goto Ff816;
A808f:
$ffe3b = $B6bc8[2];
goto ebe0c;
Af166:
$f5425 = $_COOKIE["_gcl_aw"];
goto c791e;
af8b8:
$bd346 = $_GET["gclid"];
goto A6bbe;
f20df:
if (!isset($_GET["gclid"])) {
goto a099e;
}
goto af8b8;
c791e:
$B6bc8 = explode(, $f5425);
goto B37a9;
a2438:
return $ffe3b;
goto Dfe8d;
Ff816:
b25b3:
goto cc0b5;
cc0b5:
c551c:
goto f20df;
A6bbe:
$B6bc8 = explode("#", $bd346);
goto bd92c;
B68d6:
a099e:
goto F0a55;
ecc98:
$this->saveGTMCookie("dmt_gclid", $ffe3b);
goto b9df6;
df195:
if (!(isset($_COOKIE["_gcl_aw"]) && !empty($_COOKIE["_gcl_aw"]))) {
goto c551c;
}
goto Af166;
e7eeb:
$ffe3b = false;
goto df195;
b9df6:
return $ffe3b;
goto B68d6;
b016b:
Bc257:
goto a2438;
F0a55:
if (!(isset($_COOKIE["dmt_gclid"]) && !empty($_COOKIE["dmt_gclid"]))) {
goto Bc257;
}
goto Ba84a;
B37a9:
if (!isset($B6bc8[2])) {
goto b25b3;
}
goto A808f;
Ba84a:
$ffe3b = $_COOKIE["dmt_gclid"];
goto b016b;
Dfe8d:
}
public function getFbp()
{
goto e1429;
Fc50e:
return $C491d;
goto C982d;
a6e2e:
$C491d = $_COOKIE["_fbp"];
goto fb9b7;
a01ff:
if (!(isset($_COOKIE["_fbp"]) && !empty($_COOKIE["_fbp"]))) {
goto d95e4;
}
goto a6e2e;
e1429:
$C491d = null;
goto a01ff;
fb9b7:
d95e4:
goto Fc50e;
C982d:
}
public function getFbc()
{
goto b7a23;
f5876:
$efe7f = $_COOKIE["_fbc"];
goto df364;
a5e80:
D7c46:
goto cfa86;
Bdf62:
if (!preg_match("/^(fb\.\d+\.)(\d{10})(\..+)$/", $efe7f, $B4a44)) {
goto ffa98;
}
goto D211e;
D34f1:
$Ad464 = "fb.1." . $be893 . . $_GET["fbclid"];
goto a7949;
C7a7b:
$Ad464 = $D424a . $be893 . $F54aa;
goto eb50e;
b7a23:
$Ad464 = '';
goto D9696;
c522d:
return $Ad464;
goto B0ade;
daa81:
$f20e6 = $B4a44[2];
goto C200a;
D9696:
if (!isset($_GET["fbclid"])) {
goto D7c46;
}
goto C2f0d;
ef4d3:
F1003:
goto D4357;
a7949:
$this->saveGTMCookie("dmt_fbc", $Ad464);
goto a5e80;
C2f0d:
$be893 = floor(microtime(true) * 1000);
goto D34f1;
ae17a:
return $Ad464;
goto Ad4e7;
df364:
$Ad464 = $_COOKIE["_fbc"];
goto Bdf62;
cfa86:
if (!(isset($_COOKIE["dmt_fbc"]) && !empty($_COOKIE["dmt_fbc"]))) {
goto F1003;
}
goto Cbad8;
C200a:
$F54aa = $B4a44[3];
goto fa999;
A82e0:
return $Ad464;
goto ef4d3;
D4357:
if (!(isset($_COOKIE["_fbc"]) && !empty($_COOKIE["_fbc"]))) {
goto a2f48;
}
goto f5876;
Cbad8:
$Ad464 = $_COOKIE["dmt_fbc"];
goto A82e0;
eb50e:
ffa98:
goto B4134;
fa999:
$be893 = floor(microtime(true) * 1000);
goto C7a7b;
B4134:
$this->saveGTMCookie("dmt_fbc", $Ad464);
goto c522d;
D211e:
$D424a = $B4a44[1];
goto daa81;
B0ade:
a2f48:
goto ae17a;
Ad4e7:
}
public function getTtclid()
{
goto cb24a;
F26dd:
$bc793 = $_COOKIE["ttclid"];
goto D9911;
b93d7:
if ($bc793) {
goto ee471;
}
goto b4b6f;
c9fce:
F4599:
goto e8432;
D8c85:
$bc793 = '';
goto c9fce;
e8432:
return $bc793;
goto F4ffd;
B0a2b:
if ($bc793) {
goto F4599;
}
goto D8c85;
cb24a:
$bc793 = false;
goto F5bbc;
cfe8b:
if (!$cae68) {
goto b9803;
}
goto Af86a;
A41d4:
ee471:
goto B0a2b;
F5bbc:
if (!isset($_GET["ttclid"])) {
goto E50bb;
}
goto b22c1;
D9911:
Fb847:
goto b93d7;
ef5c6:
if (!(isset($_COOKIE["ttclid"]) && !empty($_COOKIE["ttclid"]))) {
goto Fb847;
}
goto F26dd;
e7020:
b9803:
goto A41d4;
b22c1:
$bc793 = $_GET["ttclid"];
goto De875;
De875:
$this->saveGTMCookie("gtm_ttclid", $bc793);
goto F809a;
F809a:
E50bb:
goto ef5c6;
Af86a:
$bc793 = $cae68;
goto e7020;
b4b6f:
$cae68 = $this->readGTMCookie("gtm_ttclid");
goto cfe8b;
F4ffd:
}
public function getTtp()
{
goto ea1f7;
e3cc1:
$ff2c6 = $_COOKIE["_ttp"];
goto A4882;
f2d22:
if (!(isset($_COOKIE["_ttp"]) && !empty($_COOKIE["_ttp"]))) {
goto A603b;
}
goto e3cc1;
Ae4cb:
return $ff2c6;
goto De034;
ea1f7:
$ff2c6 = '';
goto f2d22;
A4882:
A603b:
goto Ae4cb;
De034:
}
public function getScCid()
{
goto D18b3;
D18b3:
$e0279 = false;
goto ce304;
ce304:
if (!isset($_GET["ScCid"])) {
goto f3b5e;
}
goto Ba563;
c347c:
de0f8:
goto D6f67;
D6f67:
if ($e0279) {
goto Ad3bd;
}
goto d3ced;
E337a:
f0a1d:
goto c347c;
Ba563:
$e0279 = $_GET["ScCid"];
goto Bdba5;
Bdba5:
$this->saveGTMCookie("gtm_sccid", $e0279);
goto a8eee;
Eb5c9:
if ($e0279) {
goto de0f8;
}
goto C102a;
C102a:
$Cab49 = $this->readGTMCookie("gtm_sccid");
goto c2e47;
B4ba2:
Ad3bd:
goto a294a;
d3ced:
$e0279 = '';
goto B4ba2;
a294a:
return $e0279;
goto E7f76;
c2e47:
if (!$Cab49) {
goto f0a1d;
}
goto c501c;
c501c:
$e0279 = $Cab49;
goto E337a;
a8eee:
f3b5e:
goto Eb5c9;
E7f76:
}
public function getSc_cookie1()
{
goto b3243;
b3243:
$f825c = '';
goto B7ef3;
Ec532:
return $f825c;
goto Cf75c;
Be6ef:
A591c:
goto Ec532;
A2700:
$f825c = $_COOKIE["_scid"];
goto Be6ef;
B7ef3:
if (!(isset($_COOKIE["_scid"]) && !empty($_COOKIE["_scid"]))) {
goto A591c;
}
goto A2700;
Cf75c:
}
private function getCuid()
{
goto Ef3bd;
Ef3bd:
$dfaa1 = null;
goto c36fd;
c36fd:
if (!(isset($_COOKIE["sib_cuid"]) && !empty($_COOKIE["sib_cuid"]))) {
goto E062f;
}
goto e2ecc;
E2480:
E062f:
goto b3583;
e2ecc:
$dfaa1 = $_COOKIE["sib_cuid"];
goto E2480;
b3583:
return $dfaa1;
goto Cee99;
Cee99:
}
private function GUID()
{
goto ff6fc;
Eea3c:
return trim(F6282(), "{}");
goto afe72;
B0921:
return sprintf("%X(4X-%X-%X-%04X-%04X(4X%04X", mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
goto c1eef;
afe72:
F0924:
goto B0921;
ff6fc:
if (!(function_exists("f82") === true)) {
goto F0924;
}
goto Eea3c;
c1eef:
}
private function checkbot($D83df)
{
goto Fc82c;
C6ecd:
a09a7:
goto Dc4fa;
Dc4fa:
if (!(stripos($D83df, "bot") !== false)) {
goto ce13f;
}
goto cedb4;
Bc6be:
$D83df = strtolower($D83df);
goto E8bbe;
F2840:
return false;
goto ef699;
Fc82c:
$Bce92 = ["meta-externalads", "meta-externalagent", "facebookexternalhit", "facebookcatalog", "whatsapp", "telegram", "crawler", "spider", "adsbot", "scraper", "proximic", "baiduspider", "curl", "wget", "httpie", "python-requests", "slurp", "sogou", "screaming frog", "sitebulb", "pingdom", "uptimerobot", "gtmetrix", "pagespeed", "lighthouse", "webpagetest", "webmaster", "commoncrawl", "dataprovider", "yadirectfetcher", "seznambot", "yandeximages", "yandexvideo", "yandexnews", "yandexwebmaster", "baiduspider-image", "baiduspider-video", "baiduspider-news", "baiduspider-mobile", "baiduspider-favo", "baiduspider-game", "baiduspider-ads", "baiduspider-zhidao"];
goto E37ca;
E37ca:
if (!(!isset($D83df) || empty($D83df))) {
goto a09a7;
}
goto C9801;
C9801:
return true;
goto C6ecd;
b6fbb:
ad100:
goto F2840;
Fbb29:
return true;
goto b6fbb;
cedb4:
return true;
goto ce8e5;
ce8e5:
ce13f:
goto Bc6be;
E8bbe:
if (!in_array($D83df, $Bce92)) {
goto ad100;
}
goto Fbb29;
ef699:
}
private function getCurrentURL()
{
goto d7eac;
B8bfb:
$f4607 = $_SERVER["SCRIPT_NAME"];
goto D59e1;
d7eac:
$b2100 = strpos(strtolower($_SERVER["SERVER_PROTOCOL"]), "https") === false ? "http" : "https";
goto bcde1;
Da339:
return $b2100 . "://" . $b3ca5 . $f4607 . $d7046;
goto C2a91;
bcde1:
$b3ca5 = $_SERVER["HTTP_HOST"];
goto B8bfb;
D59e1:
$d7046 = $_SERVER["QUERY_STRING"] == '' ? '' : "?" . $_SERVER["QUERY_STRING"];
goto Da339;
C2a91:
}
private function botDetect()
{
goto De77b;
d9217:
return true;
goto c6b54;
C269b:
if (isset($D83df) && preg_match("/bot|crawl|slurp|spider|mediapartners/i", $D83df)) {
goto d7cee;
}
goto b8ffc;
De77b:
$D83df = $this->getHttpUserAgent();
goto C269b;
Fd2da:
d7cee:
goto d9217;
c6b54:
E737a:
goto a4e55;
af4f2:
goto E737a;
goto Fd2da;
b8ffc:
return false;
goto af4f2;
a4e55:
}
public function redirect($B12df, $Edab8 = 302)
{
$this->response->redirect($B12df);
}
public function unserialize($Db528 = array())
{
return json_decode($Db528, true);
}
public function get_numeric($a2588)
{
goto C1d90;
De12c:
return 0;
goto c3ac2;
C55b2:
return $a2588 + 0;
goto a36c8;
a36c8:
e6183:
goto De12c;
C1d90:
if (!is_numeric($a2588)) {
goto e6183;
}
goto C55b2;
c3ac2:
}
public function getHost()
{
goto fd1a3;
f0097:
d403f:
goto D2fda;
Ab735:
d8919:
goto b4012;
ce70e:
$Dac38 = "http://" . (isset($this->request->server["SERVER_NAME"]) ? $this->request->server["SERVER_NAME"] : '');
goto f7dbc;
fd1a3:
if ($this->request->server["HTTPS"]) {
goto d8919;
}
goto ce70e;
b4012:
$Dac38 = "https://" . (isset($this->request->server["SERVER_NAME"]) ? $this->request->server["SERVER_NAME"] : '');
goto f0097;
D2fda:
return $Dac38;
goto Eca9a;
f7dbc:
goto d403f;
goto Ab735;
Eca9a:
}
public function strFind($b7d6d, $B3d31)
{
return $B3d31 !== '' && mb_strpos($b7d6d, $B3d31) !== false;
}
public function formatPhone($Db528 = false, $a3275 = false)
{
goto e42b7;
cafe7:
$Db528 = str_replace("+", '', $Db528);
goto B2125;
c9356:
$Db528 = trim($Db528);
goto e2343;
D71fe:
Ab925:
goto f3d04;
F1b7b:
$Db528 = substr_replace($Db528, '', 0, $F96d9);
goto a8a05;
e42b7:
$b55e0 = ["e164" => $Db528, "ph" => $Db528];
goto a0214;
e005a:
$F96d9 = strlen($C4e6d);
goto F1b7b;
da6e5:
if (!(stripos($Db528, $C4e6d) === 0)) {
goto F11f8;
}
goto e005a;
B35db:
return $b55e0;
goto Da69a;
ef9b7:
$E7af1 = $this->getCountry($e86c0);
goto ce97c;
f3d04:
$Fe646 = "[{"dialcode":"54","country_code":"ar"},{"dialcode":"","country_code":"br"},{"dialcode":","country_code":"ca"},{"dialcode":"","country_code":"cl"},{"dialcode":"","country_code":"co"},{"dialcode":"506","country_code":"cr"},{"dialcode":","country_code":"ec"},{"dialcode":"5","country_code":"sv"},{"dialcode":"2","country_code":"gt"},{"dialcode":"592","country_code":"gy"},{"dialcode":"9","country_code":"ht"},{"dialcode":04","country_code":"hn"},{"dialcode":"","country_code":"mx"},{"dialcode":"505","country_code":"ni"},{"dialcode":"7","country_code":"pa"},{"dialcode":"595","country_code":"py"},{"dialcode":"51","country_code":"pe"},{"dialcode":"1","country_code":"us"},{"dialcode":"598","country_code":"uy"},{"dialcode":"58","country_code":"ve"},{"dialcode":"93","country_code":"af"},{"dialcode":","country_code":"am"},{"dialcode":"994","country_code":"az"},{"dialcode":"973","country_code":"bh"},{"dialcode":"8","country_code":"bd"},{"dialcode":"9","country_code":"bt"},{"dialcode":"673","country_code":"bn"},{"dialcode":"5","country_code":"kh"},{"dialcode":"","country_code":"cn"},{"dialcode":57","country_code":"cy"},{"dialcode":"850","country_code":"kp"},{"dialcode":"995","country_code":"ge"},{"dialcode":"91","country_code":"in"},{"dialcode":2","country_code":"id"},{"dialcode":"98","country_code":"ir"},{"dialcode":"964","country_code":"iq"},{"dialcode":"9","country_code":"il"},{"dialcode":"","country_code":"jp"},{"dialcode":"2","country_code":"jo"},{"dialcode":"7","country_code":"kz"},{"dialcode":"965","country_code":"kw"},{"dialcode":"996","country_code":"kg"},{"dialcode":"6","country_code":"la"},{"dialcode":"1","country_code":"lb"},{"dialcode":"","country_code":"my"},{"dialcode":"9","country_code":"mv"},{"dialcode":"976","country_code":"mn"},{"dialcode":"","country_code":"mm"},{"dialcode":"7","country_code":"np"},{"dialcode":"8","country_code":"om"},{"dialcode":"","country_code":"pk"},{"dialcode":"63","country_code":"ph"},{"dialcode":"974","country_code":"qa"},{"dialcode":"82","country_code":"kr"},{"dialcode":"966","country_code":"sa"},{"dialcode":"65","country_code":"sg"},{"dialcode":"94","country_code":"lk"},{"dialcode":"970","country_code":"ps"},{"dialcode":"3","country_code":"sy"},{"dialcode":"992","country_code":"tj"},{"dialcode":"66","country_code":"th"},{"dialcode":"670","country_code":"tl"},{"dialcode":"90","country_code":"tr"},{"dialcode":"993","country_code":"tm"},{"dialcode":"9","country_code":"ae"},{"dialcode":"998","country_code":"uz"},{"dialcode":"84","country_code":"vn"},{"dialcode":"967","country_code":"ye"},{"dialcode":"3","country_code":"al"},{"dialcode":"376","country_code":"ad"},{"dialcode":"43","country_code":"at"},{"dialcode":75","country_code":"by"},{"dialcode":"","country_code":"be"},{"dialcode":87","country_code":"ba"},{"dialcode":59","country_code":"bg"},{"dialcode":"385","country_code":"hr"},{"dialcode":"420","country_code":"cz"},{"dialcode":5","country_code":"dk"},{"dialcode":"372","country_code":"ee"},{"dialcode":"358","country_code":"fi"},{"dialcode":3","country_code":"fr"},{"dialcode":"49","country_code":"de"},{"dialcode":0","country_code":"gr"},{"dialcode":"","country_code":"hu"},{"dialcode":"3","country_code":"is"},{"dialcode":"3","country_code":"ie"},{"dialcode":"39","country_code":"it"},{"dialcode":"1","country_code":"lv"},{"dialcode":","country_code":"li"},{"dialcode":"370","country_code":"lt"},{"dialcode":"3","country_code":"lu"},{"dialcode":"356","country_code":"mt"},{"dialcode":"7","country_code":"mc"},{"dialcode":"382","country_code":"me"},{"dialcode":"31","country_code":"nl"},{"dialcode":"47","country_code":"no"},{"dialcode":"48","country_code":"pl"},{"dialcode":"351","country_code":"pt"},{"dialcode":73","country_code":"md"},{"dialcode":"40","country_code":"ro"},{"dialcode":"7","country_code":"ru"},{"dialcode":"378","country_code":"sm"},{"dialcode":81","country_code":"rs"},{"dialcode":"4","country_code":"sk"},{"dialcode":"386","country_code":"si"},{"dialcode":"34","country_code":"es"},{"dialcode":"46","country_code":"se"},{"dialcode":"","country_code":"ch"},{"dialcode":"389","country_code":"mk"},{"dialcode":"380","country_code":"ua"},{"dialcode":"44","country_code":"gb"},{"dialcode":1","country_code":"au"},{"dialcode":"","country_code":"nz"}]";
goto c76e9;
Aac66:
return $b55e0;
goto D71fe;
de18d:
if ($a3275) {
goto C0157;
}
goto da5df;
d09c8:
if (!(stripos($Db528, "0") === 0)) {
goto b995b;
}
goto f36b8;
C828c:
$Db528 = str_replace(, '', $Db528);
goto D7690;
f36b8:
$Db528 = substr_replace($Db528, '', 0, 1);
goto b7af7;
d1253:
if (!(!isset($a3275) || empty($a3275))) {
goto Cf990;
}
goto c7b61;
c7b61:
return $b55e0;
goto C4918;
ea265:
$D41c7 = strtolower($a3275);
goto Ebba8;
ba5ac:
$Db528 = str_replace(")", '', $Db528);
goto ea96f;
Fba36:
B64c4:
goto d09c8;
B3e91:
$Db528 = $C4e6d . $Db528;
goto D9832;
D7690:
if (!(stripos($Db528, "00") === 0)) {
goto B64c4;
}
goto Afa31;
a0214:
if ($Db528) {
goto Ab925;
}
goto Aac66;
D0628:
foreach ($Fe646 as $f5425) {
goto F6e93;
c4a22:
d502e:
goto Ecb33;
Cf5b0:
$C4e6d = $f5425["dialcode"];
goto c4a22;
Ecb33:
Db955:
goto a74f0;
F6e93:
if (!($f5425["country_code"] == $D41c7)) {
goto d502e;
}
goto Cf5b0;
a74f0:
}
goto d65ad;
ce97c:
$a3275 = $E7af1["iso_code_2"];
goto e826c;
a8a05:
F11f8:
goto B3e91;
d2c00:
return $b55e0;
goto e3899;
D9832:
$b55e0 = ["e1" => "+" . $Db528, "ph" => $Db528];
goto d2c00;
Ebba8:
$C4e6d = '';
goto D0628;
c76e9:
$Fe646 = json_decode($Fe646, true);
goto de18d;
Afa31:
$Db528 = substr_replace($Db528, '', 0, 2);
goto Fba36;
d4b88:
if (!empty($C4e6d)) {
goto d6a69;
}
goto B35db;
b7af7:
b995b:
goto da6e5;
Da69a:
d6a69:
goto c9356;
d65ad:
a6eac:
goto d4b88;
ea96f:
$Db528 = str_replace("-", '', $Db528);
goto C828c;
e2343:
$Db528 = str_replace(" ", '', $Db528);
goto cafe7;
B2125:
$Db528 = str_replace("(", '', $Db528);
goto ba5ac;
da5df:
$e86c0 = $this->config->get("config_country_id");
goto ef9b7;
e826c:
C0157:
goto d1253;
C4918:
Cf990:
goto ea265;
e3899:
}
public function formatPostcode($Db528 = '')
{
goto fad44;
df1eb:
$Db528 = str_replace(, '', $Db528);
goto ff7b9;
fad44:
$Db528 = str_replace(" ", '', $Db528);
goto D695e;
af517:
return $Db528;
goto c9a08;
ff7b9:
$Db528 = str_replace("/", '', $Db528);
goto af517;
D695e:
$Db528 = str_replace("-", '', $Db528);
goto df1eb;
c9a08:
}
}
/******************************************************
* @package Digital Marketing Tools for OC1.5x, OC2x,3x
* @version 13.4
* @author Muhammad Akram
* @link https://aits.xyz
* @copyright Copyright (C)2025 aits.xyz All rights reserved.
* @email:info@aits.pk.
* $date: 22-OCT-2025
* SYSTEM/LIBRARY
*******************************************************/
class Dmt extends Controller
{
public $settings;
private $dmt_data;
private $error = array();
private $mode;
public $PREFIX;
public function __construct($bcc8c)
{
goto Ba19d;
B45f2:
C8904:
goto F9937;
Bccee:
goto B72c6;
goto Ec440;
b4f9c:
$b08a0 = "OC " . VERSION . " -3.4";
goto F72ba;
E004e:
$C1a11 = isset($c11ce["alt_currency_status"]) ? $c11ce["alt_currency_status"] : false;
goto e2ed7;
e8e8d:
$c11ce["store_country"] = $E7af1;
goto a0786;
e9c59:
$c11ce["consent_bypass"] = CONSENT_BYPASS;
goto B8fa5;
cde64:
$c11ce["user_agent"] = $this->getHttpUserAgent();
goto c98a2;
fa9a7:
if (defined("CONSENT_BYPASS_COUNTRY")) {
goto E059f;
}
goto c5f40;
d6edc:
bed57:
goto D18b5;
Ea082:
$c11ce["custom_pixel_event"] = false;
goto D2340;
aa9c7:
$e86c0 = $this->config->get("config_country_id");
goto ff297;
d5139:
$c11ce["bot"] = $this->botDetect();
goto e2388;
ec4b4:
a205c:
goto efd86;
E85ae:
$this->PREFIX = $Ec2c3;
goto C5d8c;
a3235:
$c11ce["referrer"] = isset($this->request->server["HTTP_REFERER"]) ? $this->request->server["HTTP_REFERER"] : '';
goto Ea5a7;
efd86:
c1a79:
goto Da7b5;
Ecd75:
goto b2c55;
goto bc3a8;
cffce:
$c11ce["total_minus"] = explode(",", TOTAL_MINUS);
goto b33fe;
de5e3:
F44d9:
goto a4ca9;
A04b7:
$c11ce["max_module_items"] = $D45ae;
goto Dcaa1;
D60e5:
abc4c:
goto a4a42;
c29df:
if (!($c11ce["consent_bypass"] && $c11ce["consent_bypass_country"] && isset($_SERVER["HTTP_CF_IPCOUNTRY"]))) {
goto c1a79;
}
goto a941e;
c5f40:
$c11ce["consent_bypass_country"] = false;
goto cb0e4;
bd516:
$Ac33a = 1;
goto eb84f;
F9937:
$dd8a8 = isset($_COOKIE["language"]) ? $_COOKIE["language"] : '';
goto eab58;
Ac5d2:
$c11ce = $this->config->get($this->PREFIX . "tagmanager_data");
goto Cbe76;
Ebc29:
$c11ce["locale"] = $dd8a8;
goto Bbe33;
dbd57:
Be4ce:
goto B45f2;
bc3a8:
d8be1:
goto e9c59;
a0786:
$c11ce["cdn"] = "cdn.aits.xyz";
goto ebfcd;
A1cac:
$c11ce["eu_cookie"] = false;
goto af349;
a86cf:
Beed8:
goto c29df;
D6127:
$c11ce["consent_bypass_country"] = CONSENT_BYPASS_COUNTRY;
goto a86cf;
ff297:
$E7af1 = $this->getCountry($e86c0);
goto fc791;
Ba19d:
parent::__construct($bcc8c);
goto Dddc7;
E4a3d:
adbf8:
goto E419d;
be037:
$c11ce["ver"] = $b08a0;
goto a5fb1;
Dddc7:
if (substr(VERSION, 0, 1) == "3" || substr(VERSION, 0, 1) == "4") {
goto bed57;
}
goto b87cb;
Ec440:
B72d1:
goto d06b4;
Ea1e2:
fac7b:
goto D786b;
cc687:
$c11ce["custom_cost_event_name"] = CUSTOM_COST_EVENT_NAME;
goto Ea1e2;
A676a:
include_once DIR_SYSTEM . "library/dmt/lib_customconfig.php";
goto D4cde;
C510a:
$c11ce["aw_tagid"] = "AW-" . $c11ce["conversion_id"];
goto D60e5;
a21c9:
d39f7:
goto C9a37;
A634b:
B72c6:
goto f1916;
aeac3:
$this->dmt_cache = isset($c11ce["cache"]) && $c11ce["cache"] === "1";
goto ae8f2;
Dc28c:
$this->mode = isset($c11ce["mode"]) ? $c11ce["mode"] : true;
goto C83c5;
F9360:
if (!(isset($c11ce["tax_override_value"]) && !empty($c11ce["tax_override_value"]))) {
goto Be4ce;
}
goto F8525;
B5a3a:
f7ea4:
goto aeac3;
aaa7e:
$Ddb25 = 1 + (int) $c11ce["tax_override_value"] / 100;
goto dbd57;
Cbe76:
$c11ce["status"] = $this->config->get($Ec2c3 . "tagmanager_status");
goto F6a98;
ea4c0:
if (!in_array($c11ce["detected_country"], $C765a)) {
goto a205c;
}
goto A1cac;
ce91d:
if (defined("CUSTOM_TIKTOK_EVENT")) {
goto B72d1;
}
goto fda48;
bd9a6:
$c11ce["custom_cost_event_name"] = '';
goto f259e;
f1916:
if (defined("CONSENT_BYPASS")) {
goto d8be1;
}
goto A4f9d;
ae8f2:
$this->dmt_debug = isset($c11ce["debug"]) && $c11ce["debug"] === "1";
goto f4044;
ebfcd:
$c11ce["url"] = $this->getRequestUri();
goto a3235;
F740f:
$c11ce["limit"] = $Ed88b;
goto A7438;
F3810:
$c11ce["path"] = isset($this->request->server["REQUEST_URI"]) ? $this->request->server["REQUEST_URI"] : '';
goto A1911;
b6c30:
goto Abab4;
goto d6edc;
a4a42:
$d4bfa = false;
goto f3fbc;
afeef:
$c11ce["alt_currency"] = $c11ce["currency"];
goto E4a3d;
D254f:
$c513c["status"] = 0;
goto B5a3a;
a4ca9:
$c11ce["custom_pixel_event"] = CUSTOM_PIXEL_EVENT;
goto e0aac;
f259e:
goto fac7b;
goto a21c9;
cd869:
$D45ae = 10;
goto Cec8a;
af349:
$c11ce["eu_cookie_enforce"] = false;
goto ec4b4;
A1911:
$c11ce["currency"] = isset($this->session->data["currency"]) ? $this->session->data["currency"] : $this->config->get("config_currency");
goto bbf37;
fc791:
$E7af1 = $E7af1["iso_code_2"];
goto cde64;
B9d44:
E059f:
goto D6127;
B00b4:
$c11ce["vs"] = $this->getVS();
goto be037;
Da20a:
if (!(isset($c11ce["tax_override"]) && $c11ce["tax_override"])) {
goto C8904;
}
goto F9360;
F72ba:
$Ed88b = 10;
goto cd869;
Cec8a:
$cc664 = 5000;
goto bd516;
F8525:
$d4bfa = true;
goto aaa7e;
E419d:
if (defined("CUSTOM_COST_EVENT")) {
goto d39f7;
}
goto f9eab;
c98a2:
$c11ce["ip_address"] = $this->getIpAddress();
goto d5139;
d06b4:
$c11ce["custom_tiktok_event"] = CUSTOM_TIKTOK_EVENT;
goto A634b;
B8fa5:
b2c55:
goto fa9a7;
D2340:
goto A1a9f;
goto de5e3;
eb84f:
$F4bc7 = false;
goto E1c14;
b87cb:
$Ec2c3 = '';
goto b6c30;
b33fe:
$c11ce["tax"] = $Ddb25;
goto A192b;
f4044:
$this->dmt_data = $c11ce;
goto Dc28c;
a5fb1:
$c11ce["language"] = $dd8a8;
goto Ebc29;
F6a98:
$c11ce["currency"] = isset($this->session->data["currency"]) ? $this->session->data["currency"] : $this->config->get("config_currency");
goto E004e;
cb0e4:
goto Beed8;
goto B9d44;
C5d8c:
if (!is_file(DIR_SYSTEM . "library/dmt/lib_customconfig.php")) {
goto De3fb;
}
goto A676a;
Df57d:
$c11ce["return_status"] = explode(",", RETURN_STATUS);
goto e8e8d;
Ea5a7:
if (!$c11ce["bot"]) {
goto f7ea4;
}
goto D254f;
e0aac:
A1a9f:
goto ce91d;
D4acf:
$C765a = explode(",", $c11ce["consent_bypass_country"]);
goto ea4c0;
bbf37:
$c11ce["total_plus"] = explode(",", TOTAL_PLUS);
goto cffce;
C9a37:
$c11ce["custom_cost_event"] = CUSTOM_COST_EVENT;
goto cc687;
e2388:
$c11ce["host_url"] = $this->getHost();
goto B00b4;
Da7b5:
if (!(empty($c11ce["aw_tagid"]) && !empty($c11ce["conversion_id"]))) {
goto abc4c;
}
goto C510a;
E1c14:
$Cf7a7 = 1;
goto E85ae;
D18b5:
$Ec2c3 = "analytics_";
goto B6bf0;
A7438:
$c11ce["max_list_items"] = $D45ae;
goto A04b7;
a941e:
$c11ce["detected_country"] = $_SERVER["HTTP_CF_IPCOUNTRY"];
goto D4acf;
f9eab:
$c11ce["custom_cost_event"] = false;
goto bd9a6;
A192b:
$c11ce["override_tax"] = $d4bfa;
goto F740f;
B6bf0:
Abab4:
goto b4f9c;
Bbe33:
$c11ce["host"] = isset($this->request->server["SERVER_NAME"]) ? $this->request->server["SERVER_NAME"] : '';
goto F3810;
f3fbc:
$Ddb25 = 1;
goto Da20a;
D786b:
if (defined("CUSTOM_PIXEL_EVENT")) {
goto F44d9;
}
goto Ea082;
fda48:
$c11ce["custom_tiktok_event"] = false;
goto Bccee;
e2ed7:
if (!(empty($c11ce["alt_currency"]) || $C1a11)) {
goto adbf8;
}
goto afeef;
D4cde:
De3fb:
goto Ac5d2;
A4f9d:
$c11ce["consent_bypass"] = false;
goto Ecd75;
eab58:
$E2e5e = $this->config->get("config_store_id");
goto aa9c7;
Dcaa1:
$c11ce["delay"] = $cc664;
goto Df57d;
C83c5:
$this->settings = $c11ce;
goto E59f1;
E59f1:
}
public function get()
{
return $this->settings;
}
public function config()
{
goto b3621;
F43e9:
$e8378 = $c135a["external_id"];
goto De29a;
b3621:
$c513c = [];
goto f8ca0;
beafc:
$bc793 = $this->getTtclid();
goto cd532;
da69c:
$e0279 = $this->getScCid();
goto bd93d;
d87f5:
if (!(!isset($c135a["user_id"]) || empty($c135a["user_id"]))) {
goto F7c05;
}
goto Fc066;
F4a34:
if (!$c11ce["adword"]) {
goto Ca1b8;
}
goto a6dc5;
d9bc9:
if (!$c11ce["snap_pixel_status"]) {
goto Fd438;
}
goto Ad93f;
Ad93f:
$f825c = $this->getSc_cookie1();
goto da69c;
D2ab7:
$E2248 = $this->getTrackingCookies();
goto d7bcc;
A50ac:
if (!(!isset($c11ce["status"]) || !$c11ce["status"])) {
goto D16b4;
}
goto Fe960;
Fc066:
$c135a["user_id"] = $e8378;
goto C776a;
De29a:
E7d36:
goto d87f5;
c8165:
$c513c = array_merge($c11ce, $D6af2);
goto C76ee;
f8129:
$ff2c6 = '';
goto d5181;
b9400:
Ef547:
goto ad2d5;
e4753:
$c11ce = $this->dmt_data;
goto A50ac;
D9dc7:
$Ad464 = $this->getFbc();
goto cac2f;
a5680:
$bc793 = '';
goto f8129;
cac2f:
$C491d = $this->getFbp();
goto a1c8c;
C76ee:
return $c513c;
goto Fc51a;
ad2d5:
$c135a = $this->getUser();
goto c4d70;
C00bd:
$e8378 = $this->readGTMCookie("OCSESSID");
goto E8673;
A3b98:
$e0279 = '';
goto f65c0;
f8ca0:
$Ad464 = '';
goto Adb16;
cd532:
$ff2c6 = $this->getTtp();
goto fd3d3;
Fe960:
return false;
goto eeff7;
Abd55:
if (!$c11ce["tiktok_status"]) {
goto Ba52c;
}
goto beafc;
d7bcc:
$D6af2 = ["external_id" => $e8378, "cid" => $E2248, "gclid" => $ffe3b, "gad_source" => isset($_GET["_gl"]) ? true : false, "fbc" => $Ad464, "fbp" => $C491d, "ttclid" => $bc793, "ttp" => $ff2c6, "sc_cookie1" => $f825c, "sccid" => $e0279];
goto c8165;
ee543:
$e8378 = $this->session->getId();
goto b9400;
C0dac:
Ca1b8:
goto Abd55;
a1c8c:
Bc7b6:
goto F4a34;
C776a:
F7c05:
goto a906f;
fd3d3:
Ba52c:
goto d9bc9;
c4d70:
if (!isset($c135a["external_id"])) {
goto E7d36;
}
goto F43e9;
eeff7:
D16b4:
goto a1017;
E8673:
if (!empty($e8378)) {
goto Ef547;
}
goto ee543;
a1017:
if (!$c11ce["pixel"]) {
goto Bc7b6;
}
goto D9dc7;
a6dc5:
$ffe3b = $this->getGclid();
goto C0dac;
d5181:
$f825c = '';
goto A3b98;
a906f:
$c11ce = array_merge($c11ce, $c135a);
goto D2ab7;
f65c0:
$ffe3b = '';
goto e4753;
Adb16:
$C491d = '';
goto a5680;
bd93d:
Fd438:
goto C00bd;
Fc51a:
}
public function isActive()
{
goto A268e;
eb449:
if (isset($Db528["status"]) && $Db528["status"]) {
goto E7fee;
}
goto e2325;
C2d6f:
E7fee:
goto c1423;
F5a04:
df98f:
goto F67c0;
e2325:
return false;
goto F9d69;
A268e:
$Db528 = $this->settings;
goto eb449;
c1423:
return true;
goto F5a04;
F9d69:
goto df98f;
goto C2d6f;
F67c0:
}
public function loadModel()
{
$this->load->model("extension/module/dmt");
}
public function getTagmanger()
{
return $this->config();
}
public function getVS()
{
$fe78e = $this->getNewURL();
return base64_encode($fe78e);
}
private function getTrackingCookies()
{
goto ba0cd;
ec211:
return $E2248;
goto F3352;
A4275:
$E2248 = preg_replace("/GA[0-9]+\.[0-9]+\./", '', $E2248);
goto ec211;
ba0cd:
$E2248 = isset($_COOKIE["_ga"]) ? $_COOKIE["_ga"] : '';
goto A4275;
F3352:
}
public function eventid()
{
goto e05aa;
E3b11:
$Db528[6] = chr(ord($Db528[6]) & 0xf | 0x40);
goto d91d9;
e05aa:
$Db528 = openssl_random_pseudo_bytes(16);
goto E3b11;
ee781:
return vsprintf("%s%s-%s-%s-%s-%s%s%s", str_split(bin2hex($Db528), 4));
goto F9cf3;
d91d9:
$Db528[8] = chr(ord($Db528[8]) & 0x3f | 0x80);
goto ee781;
F9cf3:
}
public function getUser()
{
goto febf7;
febf7:
$be3f4 = ["user_id" => '', "customer_id" => '', "external_id" => '', "email" => '', "telephone" => '', "em" => '', "ph" => '', "ph_e164" => '', "fn" => '', "ln" => '', "ad" => '', "ct" => '', "pc" => '', "st" => '', "cc" => ''];
goto a0aa6;
Dc386:
return $be3f4;
goto B22c1;
a0aa6:
if (!(isset($this->settings["customer_data"]) && $this->settings["customer_data"])) {
goto C0112;
}
goto Ed018;
Ed018:
$be3f4 = $this->getCustomerData($be3f4);
goto e102c;
e102c:
C0112:
goto Dc386;
B22c1:
}
public function getCustomerData($be3f4)
{
goto d5cfd;
D89d6:
$c0c35 = false;
goto D2f5b;
Ec27d:
ed402:
goto E8953;
e96a4:
e59a8:
goto Ee4fb;
c9237:
$this->saveCustomerData($be3f4);
goto Cab86;
f9378:
$c782a = '';
goto b4914;
Ec22a:
$c0c35 = true;
goto D1d64;
da65b:
goto e3118;
goto Ec27d;
Dc7c5:
$c5f4c = $E486e->row["name"];
goto D97ce;
ff167:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "customer WHERE customer_id = '" . (int) $D1131 . "'");
goto af5c8;
e2bf7:
$Eca20 = isset($this->session->data["guest"]["lastname"]) ? $this->session->data["guest"]["lastname"] : '';
goto Dfe2e;
F7f4d:
if (!(isset($D1131) && $D1131 > 0)) {
goto Fc877;
}
goto F9f40;
b4914:
$B05d4 = '';
goto A62cf;
ea720:
$C79ce = '';
goto fc435;
B9ec9:
b179e:
goto dcdaf;
Ff8fa:
$fc05f = isset($fc05f) ? $this->formatPostcode($fc05f) : '';
goto b013b;
adc91:
$c5f4c = '';
goto ea720;
E62e1:
$D41c7 = '';
goto e9c2c;
Bf645:
$D41c7 = '';
goto cb528;
a9f22:
$a3275 = '';
goto ab389;
B2cb2:
B3d0f:
goto Ec22a;
a4c01:
$c5f4c = isset($this->session->data["payment_address"]["zone"]) ? $this->session->data["payment_address"]["zone"] : '';
goto E198b;
Fc372:
$f85b3 = (int) $c63c0->row["address_id"];
goto acabb;
e9796:
$Dcd05 = isset($Dcd05) ? $Dcd05 : '';
goto Cbd21;
Dc329:
if (!$c49f0) {
goto b37a5;
}
goto d8b4b;
Aa62b:
e3118:
goto Ddd70;
Be659:
$ba42e = strtolower(trim(str_replace(" ", '', $c63c0->row["email"])));
goto cfb62;
Caef2:
goto e3118;
goto A52b7;
A5e9c:
if ($E486e->num_rows) {
goto ccafe;
}
goto adc91;
D8667:
Ba501:
goto c95c8;
B7a78:
$e71fa = $c63c0->row["newsletter"];
goto Fec38;
eb8f4:
$ba42e = strtolower(trim(str_replace(" ", '', $ba42e)));
goto Dcff6;
e9c2c:
goto Cf4da;
goto D8667;
dea4b:
$B05d4 = isset($B93dd->row["city"]) ? $B93dd->row["city"] : '';
goto Cb615;
ae477:
$Dcd05 = $c63c0->row["telephone"];
goto B7a78;
b347d:
if (!$B93dd->num_rows) {
goto d45ac;
}
goto E1e03;
b013b:
$be3f4 = ["user_id" => $D1131, "customer_id" => $D1131, "external_id" => $D1131, "email" => $ba42e, "telephone" => isset($b55e0["e164"]) ? $b55e0["e164"] : '', "em" => isset($ba42e) ? $this->getHash($ba42e) : '', "ph" => isset($b55e0["ph"]) ? $this->getHash($b55e0["ph"]) : '', "ph_e1" => isset($b55e0["e1"]) ? $this->getHash($b55e0["e4"]) : '', "fn" => isset($f9e0d) ? $this->getHash($f9e0d) : '', "ln" => isset($Eca20) ? $this->getHash($Eca20) : '', "ad" => isset($c782a) ? $this->getHash($c782a) : '', "ct" => isset($B05d4) ? $this->getHash($B05d4) : '', "pc" => isset($fc05f) ? $this->getHash($fc05f) : '', "st" => isset($c5f4c) ? $this->getHash($c5f4c) : '', "cc" => isset($D41c7) ? $this->getHash($D41c7) : ''];
goto Ded72;
D1d64:
Fc877:
goto da65b;
f76f9:
$F2ffe = $this->session->data["dmt_user"];
goto D45e1;
F5fd2:
ea9cc:
goto e9796;
c95c8:
$a3275 = $d4fbe->row["name"];
goto E4df6;
Dcff6:
$f9e0d = isset($this->session->data["guest"]["firstname"]) ? $this->session->data["guest"]["firstname"] : '';
goto e2bf7;
d8b4b:
return $c49f0;
goto A9762;
Ae67a:
$c0c35 = true;
goto Aa62b;
E198b:
$a3275 = isset($this->session->data["payment_address"]["country"]) ? $this->session->data["payment_address"]["country"] : '';
goto Bc0a4;
c3948:
ccafe:
goto Dc7c5;
b2f0c:
$ba42e = isset($this->session->data["guest"]["email"]) ? $this->session->data["guest"]["email"] : '';
goto eb8f4;
F7f3b:
$fc05f = isset($this->session->data["payment_address"]["postcode"]) ? $this->session->data["payment_address"]["postcode"] : '';
goto ff36a;
cfb62:
$f9e0d = $c63c0->row["firstname"];
goto ef6fe;
Ac323:
$this->cache->set("dmt.customer." . $D1131, $be3f4);
goto B2cb2;
Fec38:
$B05d4 = '';
goto Fdcba;
D9d92:
$Dcd05 = '';
goto f9378;
Ce0d1:
if ($this->customer->isLogged()) {
goto a4ed7;
}
goto Fd3f3;
E4df6:
$D41c7 = $d4fbe->row["iso_code_2"];
goto ee280;
dcdaf:
d45ac:
goto Ecf77;
b1c91:
$b55e0 = $this->formatPhone($Dcd05, $D41c7);
goto A1941;
D97ce:
$C79ce = $E486e->row["code"];
goto B9ec9;
e80fe:
return $be3f4;
goto eb560;
F9f40:
if (!$B5ef2) {
goto A59cf;
}
goto Fc268;
D39d4:
A59cf:
goto ff167;
ab389:
$D41c7 = '';
goto Cc644;
Ddd70:
if (!$c0c35) {
goto abb67;
}
goto c9237;
D2f5b:
$Fa48b = false;
goto ebe85;
Fd3f3:
if (isset($this->session->data["guest"])) {
goto ed402;
}
goto Caef2;
Ccbd0:
$c782a = isset($this->session->data["payment_address"]["address_1"]) ? $this->session->data["payment_address"]["address_1"] : '';
goto Bf236;
d9117:
$c3845 = $this->customer->getId();
goto c2366;
Ecf77:
F1cf3:
goto F5fd2;
b8700:
$B93dd = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "address WHERE address_id = '" . (int) $f85b3 . "' AND customer_id = '" . (int) $D1131 . "'");
goto b347d;
Dfe2e:
$Dcd05 = isset($this->session->data["guest"]["telephone"]) ? $this->session->data["guest"]["telephone"] : '';
goto Ccbd0;
Cc644:
$e71fa = '';
goto C34da;
Fc268:
$c49f0 = $this->cache->get("dmt.customer." . $D1131);
goto Dc329;
A52b7:
a4ed7:
goto d9117;
ebe85:
$ba42e = '';
goto D9d92;
b763b:
$a3275 = '';
goto E62e1;
ff36a:
$fc05f = isset($fc05f) ? $this->formatPostcode($fc05f) : '';
goto f6f85;
E62dd:
$c5f4c = '';
goto Bf645;
af5c8:
if (!$c63c0->num_rows) {
goto ea9cc;
}
goto Be659;
Bc0a4:
$D41c7 = isset($this->session->data["payment_address"]["iso_code_2"]) ? $this->session->data["payment_address"]["iso_code_2"] : '';
goto F7f3b;
Cab86:
abb67:
goto e80fe;
C34da:
if (!(isset($this->session->data["dmt_user"]) && !empty($this->session->data["dmt_user"]))) {
goto c6a9f;
}
goto f76f9;
A1941:
$be3f4 = ["user_id" => $D1131, "customer_id" => $D1131, "external_id" => $D1131, "email" => $ba42e, "telephone" => isset($b55e0["e1"]) ? $b55e0["e4"] : '', "em" => isset($ba42e) ? $this->getHash($ba42e) : '', "ph" => isset($b55e0["ph"]) ? $this->getHash($b55e0["ph"]) : '', "ph_e164" => isset($b55e0["e4"]) ? $this->getHash($b55e0["e1"]) : '', "fn" => isset($f9e0d) ? $this->getHash($f9e0d) : '', "ln" => isset($Eca20) ? $this->getHash($Eca20) : '', "ad" => isset($c782a) ? $this->getHash($c782a) : '', "ct" => isset($B05d4) ? $this->getHash($B05d4) : '', "pc" => isset($fc05f) ? $this->getHash($fc05f) : '', "st" => isset($c5f4c) ? $this->getHash($c5f4c) : '', "cc" => isset($D41c7) ? $this->getHash($D41c7) : ''];
goto Ae67a;
acabb:
if (!(isset($f85b3) && $f85b3 > 0)) {
goto F1cf3;
}
goto b8700;
a12d6:
$be3f4 = unserialize($F2ffe);
goto dd618;
c2366:
$D1131 = (int) $c3845;
goto F7f4d;
af240:
$c3845 = '';
goto b2f0c;
Ee4fb:
c6a9f:
goto Ce0d1;
E8953:
$D1131 = '';
goto af240;
D45e1:
if (!(isset($F2ffe) && $F2ffe)) {
goto e59a8;
}
goto a12d6;
d5cfd:
$B5ef2 = $this->dmt_cache;
goto D89d6;
fc435:
goto b179e;
goto c3948;
Cb615:
$fc05f = isset($B93dd->row["postcode"]) ? $B93dd->row["postcode"] : '';
goto a094c;
f6f85:
$Dcd05 = isset($Dcd05) ? $Dcd05 : '';
goto b1c91;
A62cf:
$fc05f = '';
goto f7aa5;
ef6fe:
$Eca20 = $c63c0->row["lastname"];
goto ae477;
f7aa5:
$c5f4c = '';
goto a9f22;
d306e:
if ($d4fbe->num_rows) {
goto Ba501;
}
goto b763b;
Bf236:
$B05d4 = isset($this->session->data["payment_address"]["city"]) ? $this->session->data["payment_address"]["city"] : '';
goto a4c01;
a094c:
$d4fbe = $this->db->query("SELECT * FROM `" . DB_PREFIX . "country` WHERE country_id = '" . (int) $B93dd->row["country_id"] . "'");
goto d306e;
ee280:
Cf4da:
goto b8616;
Fdcba:
$a3275 = '';
goto E62dd;
Ded72:
if (!$B5ef2) {
goto B3d0f;
}
goto Ac323;
cb528:
$fc05f = '';
goto Fc372;
dd618:
return $be3f4;
goto e96a4;
E1e03:
$c782a = isset($B93dd->row["address_1"]) ? $B93dd->row["address_1"] : '';
goto dea4b;
b8616:
$E486e = $this->db->query("SELECT * FROM `" . DB_PREFIX . "zone` WHERE zone_id = '" . (int) $B93dd->row["zone_id"] . "'");
goto A5e9c;
Cbd21:
$b55e0 = $this->formatPhone($Dcd05, $D41c7);
goto Ff8fa;
A9762:
b37a5:
goto D39d4;
eb560:
}
public function saveCustomerData($Db528)
{
goto f3ba0;
B1a06:
return;
goto e1377;
A3a1c:
A7fa5:
goto E8789;
f3ba0:
if (isset($Db528)) {
goto A7fa5;
}
goto d7313;
A3652:
$this->session->data["dmt_user"] = $F2ffe;
goto B1a06;
E8789:
$F2ffe = serialize($Db528);
goto A3652;
d7313:
return false;
goto A3a1c;
e1377:
}
public function resetCustomerData()
{
$this->session->data["dmt_user"] = '';
return;
}
public function saveOrderID($c58b0 = 0)
{
goto C4945;
A2724:
ad2f1:
goto F4ca4;
Fd9e3:
if (!($c58b0 > 0)) {
goto ad2f1;
}
goto c889e;
e2629:
$De11b = (int) $De11b;
goto F44a6;
Cb035:
$this->saveGTMCookie("dmt_orderid", $c58b0);
goto A2724;
F4ca4:
return;
goto A42b3;
F44a6:
$c58b0 = (int) $c58b0;
goto Fd9e3;
c889e:
$this->session->data["dmt_order_id"] = $c58b0;
goto Cb035;
C4945:
$De11b = isset($this->session->data["dmt_order_id"]) ? $this->session->data["dmt_order_id"] : 0;
goto e2629;
A42b3:
}
public function deleteOrderID()
{
goto c08e3;
Fe97f:
unset($this->session->data["dmt_order_id"]);
goto d4c92;
d4c92:
setcookie("dmt_order_id", '', time() - 3600);
goto F397f;
c08e3:
unset($this->session->data["tm_order_id"]);
goto Fe97f;
F397f:
}
public function saveGTMCookie($B1ba5, $Db528)
{
goto ed011;
Ab28c:
eca61:
goto B4727;
Bc46c:
setcookie($B1ba5, $Db528, ["expires" => $Dad62, "path" => $D6526, "domain" => $b3ca5, "samesite" => $B64b9, "secure" => true, "httponly" => true]);
goto b3e31;
B71f1:
$b3ca5 = isset($this->request->server["HTTP_HOST"]) ? $this->request->server["HTTP_HOST"] : '';
goto a24c0;
d01ca:
Df8bd:
goto A43bc;
ea0a0:
$c429e = true;
goto a823f;
B4727:
f2688:
goto c5e1e;
B69b8:
if (!(isset($Db528) && $Db528)) {
goto f2688;
}
goto c372d;
D6b97:
Fea3e:
goto B5d35;
d0aa9:
$Db528 = serialize($Db528);
goto b9533;
cac4b:
$D6526 = "/";
goto B69b8;
b9533:
A5235:
goto B71f1;
a24c0:
$B64b9 = "Lax";
goto D7c91;
e1dae:
return false;
goto d01ca;
a823f:
$Dad62 = time() + 86400 * 1;
goto cac4b;
B5d35:
setcookie($B1ba5, $Db528, $Dad62, $D6526 . "; samesite=" . $B64b9, $b3ca5, true, true);
goto Ab28c;
b3e31:
goto eca61;
goto D6b97;
A43bc:
if (!$this->check_array($Db528)) {
goto A5235;
}
goto d0aa9;
c5e1e:
return;
goto Cf1e2;
ed011:
if (!(!isset($Db528) || !isset($B1ba5))) {
goto Df8bd;
}
goto e1dae;
D7c91:
$b25dc = true;
goto ea0a0;
c372d:
if (PHP_VERSION_ID < 70300) {
goto Fea3e;
}
goto Bc46c;
Cf1e2:
}
public function resetGTMCookie($B1ba5)
{
goto B2c6e;
a42aa:
$b3ca5 = isset($this->request->server["HTTP_HOST"]) ? $this->request->server["HTTP_HOST"] : '';
goto e9219;
c68f8:
return;
goto Ad9d4;
ed557:
F91f4:
goto cd20f;
c0cd1:
eb5a1:
goto a42aa;
cd20f:
E9b8c:
goto c68f8;
C94ab:
return false;
goto c0cd1;
fd743:
C812d:
goto a4535;
Cba47:
goto F91f4;
goto fd743;
e9219:
$B64b9 = "strict";
goto f00fd;
A437e:
if (!(isset($B1ba5) && $B1ba5)) {
goto E9b8c;
}
goto Ec76d;
a4535:
setcookie($B1ba5, '', $Dad62, $D6526 . "; samesite=" . $B64b9, $b3ca5, $c429e, $b25dc);
goto ed557;
Cf380:
$c429e = true;
goto d4a3b;
Ec76d:
if (PHP_VERSION_ID < 70300) {
goto C812d;
}
goto f16a4;
d4a3b:
$Dad62 = time() - 7200;
goto bccdd;
B2c6e:
if (isset($B1ba5)) {
goto eb5a1;
}
goto C94ab;
bccdd:
$D6526 = "/";
goto A437e;
f16a4:
setcookie($B1ba5, '', ["expires" => $Dad62, "path" => $D6526, "domain" => $b3ca5, "samesite" => $B64b9, "secure" => $c429e, "httponly" => $b25dc]);
goto Cba47;
f00fd:
$b25dc = true;
goto Cf380;
Ad9d4:
}
public function readGTMCookie($B1ba5)
{
goto D29d2;
A6ec5:
if (!isset($B1ba5)) {
goto aa95a;
}
goto c69b6;
a7a05:
return $Db528;
goto adff0;
dccac:
aa95a:
goto a7a05;
c69b6:
$Db528 = isset($_COOKIE[$B1ba5]) ? $_COOKIE[$B1ba5] : false;
goto dccac;
D29d2:
$Db528 = false;
goto A6ec5;
adff0:
}
public function readConsent()
{
goto f90a3;
E7c24:
cec31:
goto a16b0;
F2530:
foreach ($d1051["categories"] as $bbbc1) {
goto Ac44d;
ecbec:
$Db528["cc_marketing"] = 1;
goto Dc932;
F0a9f:
$Db528["cc_analytics"] = 1;
goto e4673;
B8da1:
$Db528["ad_user_data"] = "granted";
goto a343a;
a457d:
$Db528["allowAdFeatures"] = "true";
goto Fef48;
Ac44d:
if (!($bbbc1 == "analytics")) {
goto a7ec2;
}
goto F0a9f;
C7dce:
$Db528["consent"] = "grant";
goto B198a;
a1d31:
if (!($bbbc1 == "marketing")) {
goto A0634;
}
goto ecbec;
c9e0d:
a7ec2:
goto a1d31;
fbff4:
$Db528["consent"] = "revoke";
goto c9e0d;
B198a:
A0634:
goto E3552;
Dc932:
$Db528["gdpr_marketing"] = "granted";
goto B8da1;
Fef48:
$Db528["marketing_block"] = false;
goto C7dce;
efe04:
$Db528["tracking_block"] = false;
goto fbff4;
a343a:
$Db528["ad_personalization"] = "granted";
goto a457d;
e4673:
$Db528["gdpr_analytics"] = "granted";
goto a1eca;
a1eca:
$Db528["allowAdFeatures"] = "false";
goto efe04;
E3552:
A8399:
goto ccbc6;
ccbc6:
}
goto C1dfb;
afbb8:
if (!isset($d1051["categories"])) {
goto Adeff;
}
goto F2530;
Fd369:
$d1051 = (array) json_decode(stripslashes(html_entity_decode($_COOKIE["_consents"])));
goto afbb8;
E6c81:
return $Db528;
goto E7c24;
eaaed:
if (!isset($_COOKIE["_consents"])) {
goto c57fb;
}
goto b0993;
a16b0:
if (!(isset($c513c["eu_cookie_enforce"]) && $c513c["eu_cookie_enforce"])) {
goto Df8ec;
}
goto Eceee;
Eceee:
$Db528 = ["cc_enabled" => 1, "cc_analytics" => 0, "cc_marketing" => 0, "gdpr_analytics" => "denied", "gdpr_marketing" => "denied", "ad_user_data" => "denied", "ad_personalization" => "denied", "consent" => "revoke", "allowAdFeatures" => "false", "tracking_block" => true, "marketing_block" => true, "consent_state" => "notset"];
goto E6ab4;
Add7c:
c57fb:
goto A5913;
De5bb:
Adeff:
goto Add7c;
b0993:
$d1051 = (array) json_decode($_COOKIE["_consents"]);
goto Fd369;
C84ec:
if (!(isset($c513c["consent_external"]) && $c513c["consent_external"])) {
goto F6c68;
}
goto Ffaa3;
baa4f:
F6c68:
goto cfd64;
E6ab4:
Df8ec:
goto eaaed;
Ab31a:
return $Db528;
goto baa4f;
f90a3:
$c513c = $this->settings;
goto f686e;
C1dfb:
fc6b5:
goto a9524;
f686e:
$Db528 = ["cc_enabled" => 0, "cc_analytics" => 1, "cc_marketing" => 1, "gdpr_analytics" => "granted", "gdpr_marketing" => "granted", "ad_user_data" => "granted", "ad_personalization" => "granted", "consent" => "grant", "allowAdFeatures" => "true", "tracking_block" => false, "marketing_block" => false, "consent_state" => "default"];
goto C84ec;
cfd64:
if (!(isset($c513c["eu_cookie"]) && !$c513c["eu_cookie"])) {
goto cec31;
}
goto E6c81;
A5913:
return $Db528;
goto adba7;
a9524:
$Db528["consent_state"] = "set";
goto De5bb;
Ffaa3:
$Db528 = ["cc_enabled" => 0, "cc_analytics" => 1, "cc_marketing" => 1, "gdpr_analytics" => '', "gdpr_marketing" => '', "ad_user_data" => '', "ad_personalization" => '', "consent" => '', "allowAdFeatures" => "true", "tracking_block" => false, "marketing_block" => false, "consent_state" => false];
goto Ab31a;
adba7:
}
public function getDataLayerSettings($A5606 = false, $c513c = false, $c9f9f = false)
{
goto Cb664;
c2f82:
D06fc:
goto B7fbd;
Abf10:
$A5606[] = ["adwordEnable" => $c513c["adword"], "adwordTagID" => $c513c["aw_tagid"], "adwordConversionID" => $c513c["conversion_id"], "adwordConversionLabel" => $c513c["conversion_label"], "adwordCurrency" => $c513c["currency"]];
goto Bcd01;
d27d5:
if (!(isset($c513c["fn"]) && !empty($c513c["fn"]))) {
goto d9acd;
}
goto C0b0b;
cacd4:
if (!(isset($c513c["useremail"]) && !empty($c513c["useremail"]))) {
goto C2f3f;
}
goto Ce4ff;
fd20e:
if (!isset($Ec703)) {
goto Aee90;
}
goto e1b41;
ba798:
edace:
goto Cb831;
C11f7:
d9acd:
goto fa8fd;
d1ddf:
$Fdb96 = [];
goto Dc4f7;
A4658:
if (!(isset($c513c["remarketing"]) && $c513c["remarketing"] == "1")) {
goto c03e1;
}
goto ec015;
D5912:
if (!(isset($c513c["cj_code"]) && !empty($c513c["cj_code"]) && $c513c["cj_status"] == "1")) {
goto edace;
}
goto c8bf9;
f119f:
if ($c9f9f) {
goto da06f;
}
goto e06a8;
ec015:
$A5606[] = ["RemarketingEnable" => "1"];
goto E4873;
dc1a7:
$A5606[] = ["cj_status" => "1", "cj_code" => $c513c["cj_code"], "cj_currency" => $c513c["cj_currency"], "cj_currency_value" => $c513c["cj_currency_value"], "cj_actionid" => $c513c["cj_actionid"], "cj_page" => $Cfb8d];
goto ba798;
Fab4e:
if (isset($c513c["aw_tagid"]) && !empty($c513c["aw_tagid"])) {
goto F40a9;
}
goto F4cc7;
B2054:
$A5606[] = ["pinterest_status" => "1", "pinterest_tag" => $c513c["pinterest_tag"]];
goto cdb32;
B95a8:
$A5606[] = ["up" => $c513c["telephone"]];
goto ae12c;
fdf02:
$A5606[] = ["url_passthrough" => "true"];
goto B2671;
Dc4f7:
foreach ($A5606 as $f2de0) {
goto efb3e;
B9388:
d0b38:
goto Aa4a2;
efb3e:
foreach ($f2de0 as $F54aa => $f5425) {
$Fdb96[$F54aa] = $f5425;
dafa0:
}
goto B9388;
Aa4a2:
C4a73:
goto D6301;
D6301:
}
goto C81b3;
Cb664:
if ($A5606) {
goto a03d1;
}
goto A86e0;
Aba1b:
if (!isset($c513c["ga4_mid"])) {
goto a758d;
}
goto b51ec;
De692:
$A5606[] = ["currencyCode" => $c513c["currency"], "store_country" => isset($c513c["store_country"]) ? $c513c["store_country"] : '', "locale" => $c513c["locale"]];
goto a084a;
Ce4ff:
$A5606[] = ["um" => $c513c["useremail"]];
goto Cea7f;
a9159:
if (!(isset($c513c["glami_code"]) && !empty($c513c["glami_code"]) && $c513c["glami_status"] == "1")) {
goto D368b;
}
goto B0dde;
B98af:
if (!isset($c513c["user_id"])) {
goto fd010;
}
goto B1ad6;
C719b:
A6136:
goto ae837;
fa8fd:
if (!(isset($c513c["ln"]) && !empty($c513c["ln"]))) {
goto B2dfa;
}
goto C3572;
d0c73:
$Cfb8d = '';
goto fd20e;
Cef6a:
da06f:
goto D0fcb;
b664c:
if (!(isset($c513c["ga4_status"]) && $c513c["ga4_status"])) {
goto f5522;
}
goto Aba1b;
E4831:
goto F2a48;
goto Df821;
B1ad6:
$A5606[] = ["user_id" => $c513c["user_id"]];
goto af363;
a83b9:
if (!isset($c513c["external_id"])) {
goto c77ef;
}
goto c37a6;
A86e0:
$A5606 = [];
goto a9b02;
bb303:
D368b:
goto D5912;
Ac52f:
$A5606[] = ["ue" => $c513c["email"]];
goto C719b;
d2ed5:
$be3f4["sha256_phone_number"] = $c513c["ph_e1"];
goto F3e3d;
c8bf9:
$cb074 = isset($Ec703) ? $Ec703 : "common/home";
goto d0c73;
e06a8:
$c9f9f = [];
goto Cef6a;
Cecce:
Aee90:
goto dc1a7;
ae12c:
d075c:
goto D2c36;
bb6b8:
a91cc:
goto Bbd20;
B0403:
if (!(isset($c513c["ph_e164"]) && !empty($c513c["ph_e164"]))) {
goto bc1f1;
}
goto d2ed5;
A13f9:
Edded:
goto a4ed2;
E4873:
c03e1:
goto a83b9;
fa9c4:
$Ec703 = $A5606[0]["route"];
goto D66d9;
e1b41:
switch ($Ec703) {
case "checkout/cart":
$Cfb8d = "cart";
goto d47e0;
case "product/product":
$Cfb8d = "productDetail";
goto d47e0;
case "product/category":
$Cfb8d = "category";
goto d47e0;
case "catalog/catalog":
$Cfb8d = "category";
goto d47e0;
case "catalog/search":
$Cfb8d = "search";
goto d47e0;
case "catalog/special":
$Cfb8d = "special";
goto d47e0;
case "catalog/manufacturer/info":
$Cfb8d = "Manufacturer";
goto d47e0;
case "common/home":
$Cfb8d = "homepage";
goto d47e0;
}
goto F1816;
Add1f:
$d5009 = $this->readConsent();
goto fa9c4;
D2c1a:
$be3f4["sha256_email_address"] = $c513c["em"];
goto Cbaea;
aa108:
$A5606[] = ["yandex_status" => "1", "yandex_code" => $c513c["yandex_code"]];
goto c2f82;
F1816:
E8076:
goto Fb3f7;
ca7e5:
a758d:
goto d59dd;
Dce52:
$A5606[] = ["adword2Enable" => $c513c["adword2"], "adwordConversionID2" => $c513c["conversion_id2"]];
goto bb6b8;
C3572:
$be3f4["address"]["sha2_last_name"] = $c513c["ln"];
goto f3552;
ae837:
if (!(isset($c513c["telephone"]) && !empty($c513c["telephone"]))) {
goto d075c;
}
goto B95a8;
B7fbd:
if (!(isset($c513c["pinterest_tag"]) && !empty($c513c["pinterest_tag"]) && $c513c["pinterest_status"] == "1")) {
goto Edf9d;
}
goto B2054;
Deccf:
$A5606[] = ["VER" => $c513c["ver"]];
goto c4d14;
D2c36:
$A5606[] = ["user_data" => $be3f4];
goto De692;
f3552:
B2dfa:
goto D07f2;
B0dde:
$A5606[] = ["GlamiEnable" => "1", "glami_code" => $c513c["glami_code"]];
goto bb303;
d4518:
$E1ad7 = $c513c["aw_tagid"];
goto E11fc;
a9b02:
a03d1:
goto f119f;
Cbaea:
A5324:
goto B0403;
Eea83:
if (!($c513c["conversion_id"] && $c513c["adword"] == "1")) {
goto d2cf3;
}
goto Fab4e;
Fb3f7:
d47e0:
goto Cecce;
D1e7a:
if (!($d5009["gdpr_analytics"] != "granted" || $d5009["gdpr_marketing"] != "granted")) {
goto E0019;
}
goto fdf02;
C81b3:
f62a4:
goto a5af4;
d59dd:
f5522:
goto Eea83;
Cea7f:
C2f3f:
goto Ec218;
Bbd20:
d2cf3:
goto A4658;
D0fcb:
$d5009 = ["cc_enabled" => 1, "gdpr_analytics" => "granted", "gdpr_marketing" => "granted", "ad_user_data" => "granted", "ad_personalization" => "granted", "consent" => "grant", "allowAdFeatures" => "true", "tracking_block" => false, "marketing_block" => false, "consent_state" => false];
goto Add1f;
E59bc:
b3c38:
goto cacd4;
Df821:
F40a9:
goto d4518;
b6ede:
$be3f4["address"] = [];
goto d27d5;
F3e3d:
bc1f1:
goto E59bc;
D66d9:
$A5606[] = ["consent_state" => $d5009["consent_state"], "allowAdFeatures" => $d5009["allowAdFeatures"], "analytics_storage" => $d5009["gdpr_analytics"], "ad_storage" => $d5009["gdpr_marketing"], "consent" => $d5009["consent"], "ad_user_data" => $d5009["ad_user_data"], "ad_personalization" => $d5009["ad_personalization"]];
goto D1e7a;
E11fc:
F2a48:
goto Abf10;
a084a:
if (!(isset($c513c["bing_uetid"]) && !empty($c513c["bing_uetid"]) && $c513c["bing_status"] == "1")) {
goto Edded;
}
goto ad58a;
af363:
fd010:
goto Be1c5;
a4ed2:
if (!(isset($c513c["yandex_status"]) && !empty($c513c["yandex_code"]) && $c513c["yandex_status"] == "1")) {
goto D06fc;
}
goto aa108;
Ec218:
if (!(isset($c513c["email"]) && !empty($c513c["email"]))) {
goto A6136;
}
goto Ac52f;
cdb32:
Edf9d:
goto a9159;
B2671:
E0019:
goto b664c;
c4d14:
Da694:
goto d1ddf;
B3837:
if (!(isset($c513c["customer_data"]) && $c513c["customer_data"])) {
goto b3c38;
}
goto b6ede;
Bcd01:
if (!($c513c["conversion_id2"] && $c513c["adword2"] == "1")) {
goto a91cc;
}
goto Dce52;
C0b0b:
$be3f4["address"]["sha256_first_name"] = $c513c["fn"];
goto C11f7;
a5af4:
return $Fdb96;
goto a8c20;
F4cc7:
$E1ad7 = "AW-" . $c513c["conversion_id"];
goto E4831;
Be1c5:
$be3f4 = [];
goto B3837;
D07f2:
if (!(isset($c513c["em"]) && !empty($c513c["em"]))) {
goto A5324;
}
goto D2c1a;
da357:
c77ef:
goto B98af;
b51ec:
$A5606[] = ["ga4_mid" => $c513c["ga4_mid"], "ga4_status" => $c513c["ga4_status"]];
goto ca7e5;
c37a6:
$A5606[] = ["user_id" => $c513c["external_id"]];
goto da357;
Cb831:
if (!isset($c513c["ver"])) {
goto Da694;
}
goto Deccf;
ad58a:
$A5606[] = ["bingEnable" => "1", "bingid" => $c513c["bing_uetid"]];
goto A13f9;
a8c20:
}
public function getDimensionsX()
{
goto Bb16f;
d6624:
if (!(isset($c513c["custom_dimension"]) && $c513c["custom_dimension"])) {
goto Fcaa9;
}
goto fb721;
B6eb6:
switch ($f2dd1) {
case "ecomm_prodid":
goto e607c;
d0990:
${"dimension_value" . $D27f1} = $e9677;
goto d0eee;
d2568:
$e9677 = '';
goto b67e2;
e607c:
if (isset($c9f9f["ecomm_prodid"])) {
goto C42cf;
}
goto Afb7a;
b03d0:
goto d95c3;
goto cc2f6;
cc2f6:
b8dbb:
goto Db1f2;
B76a7:
$e9677 = $c9f9f["ecomm_prodid"];
goto b03d0;
fa832:
goto a4b6f;
goto e2952;
Afb7a:
$e9677 = false;
goto fa832;
Dcf73:
if ($Bdb1b) {
goto b8dbb;
}
goto B76a7;
d0eee:
goto a017a;
goto a13d6;
b9958:
$b226b = 0;
goto d2568;
F27f3:
a4b6f:
goto d0990;
e2952:
C42cf:
goto b9958;
D5c89:
d95c3:
goto F27f3;
b67e2:
$Bdb1b = $this->gtm->check_array($c9f9f["ecomm_prodid"]);
goto Dcf73;
Db1f2:
foreach ($c9f9f["ecomm_prodid"] as $d4f52) {
goto A83a1;
e830a:
$e9677 .= isset($d4f52) ? $d4f52 : false;
goto a26ff;
A83a1:
if (!($b226b > 0)) {
goto E57e4;
}
goto f84c3;
Af3c1:
b479f:
goto Da891;
a26ff:
$b226b++;
goto Af3c1;
C63f1:
E57e4:
goto e830a;
f84c3:
$e9677 .= ",";
goto C63f1;
Da891:
}
goto F493c;
F493c:
D3d10:
goto D5c89;
a13d6:
case "ecomm_pagetype":
${"dimension_value" . $D27f1} = isset($c9f9f["ecomm_pagetype"]) ? $c9f9f["ecomm_pagetype"] : false;
goto a017a;
case "ecomm_totalvalue":
${"dimension_value" . $D27f1} = isset($c9f9f["ecomm_totalvalue"]) ? $c9f9f["ecomm_totalvalue"] : false;
goto a017a;
case "dynx_itemid":
${"dimension_value" . $D27f1} = isset($c9f9f["dynx_itemid"]) ? $c9f9f["dynx_itemid"] : false;
goto a017a;
case "dynx_itemid2":
${"dimension_value" . $D27f1} = isset($c9f9f["dynx_itemid2"]) ? $c9f9f["dynx_itemid2"] : false;
goto a017a;
case "dynx_pagetype":
${"dimension_value" . $D27f1} = isset($c9f9f["dynx_pagetype"]) ? $c9f9f["dynx_pagetype"] : false;
goto a017a;
case "dynx_totalvalue":
${"dimension_value" . $D27f1} = isset($c9f9f["dynx_totalvalue"]) ? $c9f9f["dynx_totalvalue"] : false;
goto a017a;
case "user_id":
${"dimension_value" . $D27f1} = isset($c513c["user_id"]) ? $c513c["user_id"] : false;
goto a017a;
case "disable":
${"dimension_value" . $D27f1} = false;
goto a017a;
}
goto F3b86;
d51fd:
$f2dd1 = '';
goto Aaaf4;
Bb16f:
$c513c = $this->settings;
goto d6624;
F8eef:
goto B4c07;
goto c8e66;
F916f:
goto c0b34;
goto Cf05a;
cb081:
$D27f1++;
goto F916f;
Ab44f:
if (!($D27f1 <= 8)) {
goto A3679;
}
goto D18cc;
A091e:
c0b34:
goto Ab44f;
b9564:
$A5606[] = ["dimension_index" . $D27f1 => $c513c["custom_dimension" . $D27f1], "dimension_text" . $D27f1 => ${"dimension_value" . $D27f1}];
goto C0add;
Fbec1:
$D27f1 = 1;
goto A091e;
Aab88:
a017a:
goto b0fd8;
d31e1:
if (!($D27f1 <= 8)) {
goto cda09;
}
goto d51fd;
Db01e:
$D27f1++;
goto F8eef;
ae984:
d5281:
goto cb081;
b0fd8:
Ac985:
goto B2588;
E5614:
$f2dd1 = $c513c["custom_dimension" . $D27f1 . "_text"];
goto A2262;
fb721:
$D27f1 = 1;
goto ef08c;
Cf05a:
A3679:
goto Fd96a;
C0add:
db878:
goto ae984;
B2588:
D432e:
goto Db01e;
ef08c:
B4c07:
goto d31e1;
F3b86:
B19b3:
goto Aab88;
Aaaf4:
if (!(isset($c513c["custom_dimension" . $D27f1 . "_text"]) && $c513c["custom_dimension" . $D27f1 . "_text"] != "disable")) {
goto Ac985;
}
goto E5614;
Fd96a:
Fcaa9:
goto fe8eb;
D18cc:
if (!(isset($c513c["custom_dimension" . $D27f1]) && $c513c["custom_dimension" . $D27f1] != "0" && isset(${"dimension_value" . $D27f1}) && ${"dimension_value" . $D27f1})) {
goto db878;
}
goto b9564;
A2262:
${"dimension_value" . $D27f1} = false;
goto B6eb6;
c8e66:
cda09:
goto Fbec1;
fe8eb:
}
public function tagmangerPmap($C6158 = '', $B49ec = '', $e9d1b = '')
{
goto dd4e3;
ce312:
$Ebf4f = $this->config->get("config_currency");
goto Fb12a;
Bc3a5:
if (!(isset($c513c["id_suffix"]) && !empty($c513c["id_suffix"]))) {
goto Dfb6e;
}
goto A6bd8;
E3442:
if ($Ebf4f == "MXN") {
goto F31db;
}
goto dfdf8;
f203f:
$ecc30 = $e9d1b . "_" . $this->config->get("config_language");
goto bcb39;
B3e80:
goto C13b2;
goto D6c9c;
cb12a:
Dfb6e:
goto e610f;
E8686:
b2f7b:
goto f203f;
Fb12a:
$fe6cc = ["GBP", "USD", "EUR", "AUD", "BRL", "CZK", "JPY", "CHF", "CAD", "DKK", "INR", "MXN", "NOK", "PLN", "RUB", "SEK", "TRY"];
goto b3be8;
C50ef:
goto C13b2;
goto af8e7;
D8ac9:
Ef6e3:
goto F265b;
F82ce:
$B0a29 = "au";
goto e0ca7;
ff77e:
goto C2426;
goto c58b0;
bd90a:
goto C13b2;
goto ed289;
B68f0:
if ($Ebf4f == "AUD") {
goto Ec211;
}
goto C4a26;
D31c3:
goto C2426;
goto ba8e5;
Ce6f3:
if ($c0549 == "sku") {
goto ac252;
}
goto E8e64;
Bd5f2:
F9b9e:
goto ce778;
d27bc:
E9b69:
goto Bc3a5;
c97bf:
if ($c0549 == "product_id_language") {
goto b2f7b;
}
goto Daa32;
b3be8:
if (in_array($Ebf4f, $fe6cc)) {
goto Ca1d5;
}
goto F6cd8;
d0d28:
goto C2426;
goto F2b8c;
dd39a:
$B0a29 = "mx";
goto E7c17;
a5105:
$B0a29 = "gb";
goto F8d57;
b24cc:
goto C2426;
goto f306d;
b92bb:
$B0a29 = "in";
goto Adb07;
bdd1d:
F31db:
goto dd39a;
Daa32:
$ecc30 = $e9d1b;
goto D31c3;
F2b8c:
ac252:
goto E458f;
Ce289:
a9e3a:
goto b92bb;
b1964:
if ($c0549 == "product_id_currency") {
goto F93ae;
}
goto c97bf;
c58b0:
F93ae:
goto c95e7;
ce778:
$ecc30 = $C6158;
goto d0d28;
dd4e3:
$c513c = $this->settings;
goto f509f;
a7e8f:
goto C2426;
goto E8686;
F6cd8:
$Ebf4f = "GBP";
goto caad1;
F265b:
$B0a29 = "ca";
goto C50ef;
Ac930:
e5289:
goto cdd61;
E7c17:
goto C13b2;
goto Ce289;
f509f:
$c0549 = $c513c["pmap"];
goto ce312;
C7acb:
if ($c0549 == "product_id") {
goto cfaa9;
}
goto a876e;
af8e7:
b6f53:
goto De8a6;
e0ca7:
goto C13b2;
goto D8ac9;
F2e8a:
if ($Ebf4f == "GBP") {
goto D29f5;
}
goto a0706;
ed289:
Ec211:
goto F82ce;
a05bd:
goto C13b2;
goto bdd1d;
cdd61:
$B0a29 = "us";
goto bd90a;
C4a26:
if ($Ebf4f == "CAD") {
goto Ef6e3;
}
goto fee3a;
F8d57:
goto C13b2;
goto Ac930;
C9558:
$ecc30 = trim($c513c["id_prefix"]) . $ecc30;
goto d27bc;
E8e64:
if ($c0549 == "model_product_id") {
goto e5015;
}
goto b1964;
Adb07:
C13b2:
goto C7acb;
bae89:
$ecc30 = $C6158 . "_" . $e9d1b;
goto ff77e;
fee3a:
if ($Ebf4f == "CHF") {
goto b6f53;
}
goto E3442;
D6c9c:
D29f5:
goto a5105;
Eca96:
if (!(isset($c513c["id_prefix"]) && !empty($c513c["id_prefix"]))) {
goto E9b69;
}
goto C9558;
a876e:
if ($c0549 == "model") {
goto F9b9e;
}
goto Ce6f3;
f306d:
e5015:
goto bae89;
ba8e5:
cfaa9:
goto Ad312;
bcb39:
C2426:
goto Eca96;
bd607:
goto C2426;
goto Bd5f2;
dfdf8:
if ($Ebf4f == "INR") {
goto a9e3a;
}
goto B3e80;
c95e7:
$ecc30 = $e9d1b . "_" . $B0a29;
goto a7e8f;
Ad312:
$ecc30 = $e9d1b;
goto bd607;
e610f:
return (string) $ecc30;
goto f74bc;
E458f:
$ecc30 = $B49ec;
goto b24cc;
a0706:
if ($Ebf4f == "USD") {
goto e5289;
}
goto B68f0;
A6bd8:
$ecc30 = $ecc30 . trim($c513c["id_suffix"]);
goto cb12a;
caad1:
Ca1d5:
goto F2e8a;
De8a6:
$B0a29 = "ch";
goto a05bd;
f74bc:
}
public function tagmangerPtitle($B1ba5 = '', $F2554 = '', $C6158 = '', $e9d1b = '')
{
goto bdc62;
d9b1b:
goto efee0;
goto bad55;
B45fe:
goto efee0;
goto Df9a8;
fb509:
$F8148 = $c513c["ptitle"];
goto Dddb1;
a07d2:
if ($F8148 == "brand_model") {
goto D5205;
}
goto ec62c;
aff4f:
return $F8148;
goto f3f63;
Dddb1:
if ($F8148 == "name") {
goto F26bc;
}
goto a07d2;
bad55:
F26bc:
goto b0023;
b0023:
$F8148 = $B1ba5;
goto B45fe;
Df9a8:
D5205:
goto b757d;
C228e:
$F8148 = $this->cleanStr($F8148);
goto aff4f;
bdc62:
$c513c = $this->settings;
goto fb509;
b757d:
$F8148 = $F2554 . " " . $C6158;
goto bd8f3;
bd8f3:
efee0:
goto C228e;
ec62c:
$F8148 = $B1ba5;
goto d9b1b;
f3f63:
}
public function fetchWithCache($A0b28, callable $d4aff, $Dc0a4 = false)
{
goto Fa046;
Ec505:
$Db528 = $d4aff();
goto f43be;
A4a2b:
e16af:
goto df79e;
df79e:
return $Db528;
goto Bd7b3;
F977f:
if (!$B5ef2) {
goto Fcf07;
}
goto e213c;
fe209:
$this->cache->set($A0b28, $Db528);
goto A4a2b;
f43be:
if (!($B5ef2 && ($Dc0a4 || !empty($Db528)))) {
goto e16af;
}
goto fe209;
F7a83:
Fcf07:
goto Ec505;
Fa046:
$B5ef2 = $this->dmt_cache;
goto F977f;
dcd85:
if (!$c49f0) {
goto c9ef4;
}
goto f8393;
f8393:
return $c49f0;
goto b3fec;
e213c:
$c49f0 = $this->cache->get($A0b28);
goto dcd85;
b3fec:
c9ef4:
goto F7a83;
Bd7b3:
}
public function getProductGTIN($e9d1b = 0)
{
goto F9163;
e7284:
return false;
goto Bba3b;
D0e84:
$A0b28 = "dmt.gtin." . (int) $e9d1b;
goto f286d;
F9163:
if ($e9d1b) {
goto da21e;
}
goto e7284;
f286d:
return $this->fetchWithCache($A0b28, function () use($e9d1b) {
$c63c0 = $this->db->query("
\x9 SELECT ean \xd
\x9ROM " . DB_PREFIX . "product \xd\xa\x9\x9 \x9WHERE product_id = '" . (int) $e9d1b . "'
\x9 LIMIT 1\xd\xa \x9");
return isset($c63c0->row["ean"]) ? $c63c0->row["ean"] : '';
}, true);
goto e8c78;
Bba3b:
da21e:
goto D0e84;
e8c78:
}
public function getProductSKU($e9d1b = 0)
{
goto db02a;
E1e87:
$A0b28 = "dmt.sku." . (int) $e9d1b;
goto adbc4;
f230b:
return false;
goto Ab704;
Ab704:
F1d0c:
goto E1e87;
db02a:
if ($e9d1b) {
goto F1d0c;
}
goto f230b;
adbc4:
return $this->fetchWithCache($A0b28, function () use($e9d1b) {
$c63c0 = $this->db->query("
\xa\x9 \x9 SELECT sku
\xa ROM " . DB_PREFIX . "product
\xa\x9\x9 \x9WHERE product_id = '" . (int) $e9d1b . "' \xd\xa \x9 LIMIT 1\xd
\x9\x9\x9");
return $c63c0->num_rows === 1 && isset($c63c0->row["sku"]) ? $c63c0->row["sku"] : '';
});
goto abcca;
abcca:
}
public function getProductCatName($e9d1b = 0, $bab60 = false)
{
goto a7631;
ba962:
foreach ($Ce4f5 as $f2de0) {
goto e859e;
df1ef:
goto d7d30;
goto D91db;
D5b22:
${"item_category" . $D27f1} = $this->cleanStr($f2de0["name"]);
goto df1ef;
C536e:
d7d30:
goto Eed05;
d3968:
goto D58f5;
goto Bd426;
aa772:
b6df1:
goto C1c41;
e859e:
if ($D27f1 == 1) {
goto Bc662;
}
goto D5b22;
ad434:
if (!($D27f1 > 6)) {
goto E2642;
}
goto d3968;
Bd426:
E2642:
goto aa772;
D91db:
Bc662:
goto F27f2;
Eed05:
$D27f1++;
goto ad434;
F27f2:
$C7834 = $this->cleanStr($f2de0["name"]);
goto C536e;
C1c41:
}
goto a95d6;
F7e5a:
$b249b = '';
goto d12bb;
d5a4c:
$ba10b = $c63c0->rows;
goto B5a16;
D14f1:
D0843:
goto Dcb8c;
a4bdb:
$b249b = $c63c0->row["category_id"];
goto A3bd6;
d657c:
$Ce4f5 = $ce112;
goto a1e81;
d8444:
$c49f0 = $this->cache->get($A0b28);
goto ee5e9;
ab2af:
$D27f1 = 1;
goto A5257;
b3b38:
$A0b28 = "dmt.catdata." . $e9d1b . ($bab60 ? . $bab60 : '');
goto C26a4;
ee5e9:
if (!$c49f0) {
goto bee1c;
}
goto E18d8;
e1585:
ceec2:
goto F631b;
bebab:
return false;
goto e1585;
f839f:
$Ce4f5 = [];
goto F7e5a;
E18d8:
return $c49f0;
goto C6d18;
C8307:
foreach ($ce112 as $f2de0) {
goto D593f;
d2e3b:
fdcbe:
goto Ae7e7;
c6432:
$ad240 .= " > ";
goto d7a21;
f28d4:
$Fff98 = $c63c0->row["category_id"];
goto c17d9;
D593f:
if (!($D27f1 > 1)) {
goto b47f1;
}
goto c6432;
c17d9:
$D27f1++;
goto d2e3b;
d7a21:
b47f1:
goto Ae0d0;
Ae0d0:
$ad240 .= $f2de0["name"];
goto f28d4;
Ae7e7:
}
goto Fadc6;
Bb75d:
f1f7b:
goto a2d17;
F977b:
$B5ef2 = $this->gtm->dmt_cache;
goto b3b38;
f23a9:
if (!isset($Ce4f5)) {
goto E7b23;
}
goto ba962;
B5a16:
foreach ($ba10b as $efc44) {
goto F7957;
A01eb:
goto D0843;
goto Eed95;
dcdd2:
goto ab096;
goto E94d0;
E94d0:
B44e9:
goto De2b2;
f2c1c:
$f2de0 = $this->getparent($efc44["category_id"]);
goto Adb39;
De2b2:
$f2de0 = $this->getparent($efc44["category_id"]);
goto A01eb;
F7957:
if ($bab60 && $bab60 == $efc44["category_id"]) {
goto B44e9;
}
goto f2c1c;
C8ecc:
bd306:
goto B1679;
Adb39:
goto D0843;
goto dcdd2;
Eed95:
ab096:
goto C8ecc;
B1679:
}
goto D14f1;
a2d17:
$Db528 = ["category" => isset($E88d3) ? $E88d3 : '', "item_list_id" => isset($D799d["category_id"]) ? $D799d["category_id"] : $b249b, "item_list_name" => isset($D799d["name"]) ? $D799d["name"] : $be627, "item_category" => isset($C7834) ? $C7834 : '', "item_category2" => isset($C0d0c) ? $C0d0c : '', "item_category3" => isset($fe36c) ? $fe36c : '', "item_category4" => isset($bf395) ? $bf395 : '', "item_category5" => isset($cda6c) ? $cda6c : ''];
goto dddf3;
c6245:
$ad240 = '';
goto ab2af;
C26a4:
if (!$B5ef2) {
goto ecdf3;
}
goto d8444;
F631b:
$ce112 = array_reverse($f2de0);
goto d657c;
a95d6:
D58f5:
goto f2eec;
dddf3:
if (!($B5ef2 && !empty($Db528))) {
goto D159b;
}
goto Bf613;
B5402:
$c63c0 = $this->db->query("SELECT category_id FROM " . DB_PREFIX . "product_to_category WHERE product_id = '" . (int) $e9d1b . "' ");
goto d5a4c;
D7dca:
$D799d = false;
goto B5402;
dc861:
return $Db528;
goto Dbe58;
a1e81:
if (!(isset($ce112) && $this->check_array($ce112))) {
goto f1f7b;
}
goto C8307;
Fadc6:
f6f29:
goto C8c26;
A5257:
$D6526 = '';
goto D7dca;
B926f:
aba4e:
goto F977b;
C6d18:
bee1c:
goto b655a;
Dcb8c:
if (!(!isset($f2de0) || !$this->check_array($f2de0))) {
goto ceec2;
}
goto bebab;
d12bb:
$be627 = '';
goto c6245;
Efd1f:
$D27f1 = 1;
goto f23a9;
C8c26:
$E88d3 = $this->cleanStr($ad240);
goto a4bdb;
b57f0:
D159b:
goto dc861;
Bf613:
$this->cache->set($A0b28, $Db528);
goto b57f0;
a7631:
if ($e9d1b) {
goto aba4e;
}
goto Aee69;
f2eec:
E7b23:
goto Bb75d;
b655a:
ecdf3:
goto f839f;
Aee69:
return false;
goto B926f;
A3bd6:
$be627 = $this->cleanStr($ad240);
goto Efd1f;
Dbe58:
}
public function getProductCatNameNew($e9d1b = 0, $bab60 = false)
{
goto A1a0f;
eb244:
return false;
goto d46d6;
a8cdc:
return $this->fetchWithCache($A0b28, function () use($e9d1b, $bab60) {
goto C3796;
C3796:
$c63c0 = $this->db->query("
\xa \x9 SELECT category_id
ROM " . DB_PREFIX . "product_to_category \xd\xa\x9\x9 \x9WHERE product_id = '" . (int) $e9d1b . "'\xd\xa\x9 ");
goto D7d89;
Bb21c:
$be627 = $E88d3;
goto D30d9;
E0984:
return false;
goto b4ac0;
db2b1:
$b249b = $E3962;
goto B24d8;
D30d9:
$b249b = $c63c0->row["category_id"];
goto B0f37;
B24d8:
$be627 = '';
goto f37fe;
Ae5ce:
if ($E3962) {
goto bac72;
}
goto d13d7;
b3394:
if ($this->check_array($b6c9a)) {
goto aab02;
}
goto Af19b;
ef2e2:
return $F458a;
goto Cc159;
be947:
$D27f1 = 1;
goto F8239;
b4ac0:
A3504:
goto cb96d;
eeaf9:
C0ee0:
goto Ae5ce;
Ee7f3:
foreach ($ba10b as $efc44) {
goto B6502;
Cebd1:
A744a:
goto Ab692;
E56c3:
f9c0e:
goto Ef0f5;
b11b4:
$E3962 = $efc44["category_id"];
goto d25e9;
d25e9:
goto C0ee0;
goto d721d;
f76d2:
goto C0ee0;
goto Cebd1;
Ab692:
A3981:
goto A8ed4;
Ef0f5:
$E3962 = $efc44["category_id"];
goto f76d2;
d721d:
goto A744a;
goto E56c3;
B6502:
if ($bab60 && $bab60 == $efc44["category_id"]) {
goto f9c0e;
}
goto b11b4;
A8ed4:
}
goto eeaf9;
B0f37:
$F458a = ["category" => $E88d3, "item_list_id" => $b249b, "item_list_name" => $be627];
goto be947;
be079:
bac72:
goto Da410;
D7d89:
if ($c63c0->num_rows) {
goto A3504;
}
goto E0984;
f6eb0:
Cfc5b:
goto fc40c;
ffb99:
f7c00:
goto ef2e2;
Bd675:
aab02:
goto d5308;
f37fe:
$D27f1 = 1;
goto d0b26;
C2eaf:
$Ce4f5 = $b6c9a;
goto a1435;
Da410:
$b6c9a = $this->getparent($E3962);
goto b3394;
cb96d:
$ba10b = $c63c0->rows;
goto fb761;
d0b26:
foreach ($b6c9a as $a3461) {
goto a7efc;
d7f66:
$ad240 .= $a3461["name"];
goto d4927;
af58c:
b706a:
goto d7f66;
E933a:
d643c:
goto a7756;
a7efc:
if (!($D27f1 > 1)) {
goto b706a;
}
goto Ae169;
Ae169:
$ad240 .= " > ";
goto af58c;
d4927:
$D27f1++;
goto E933a;
a7756:
}
goto f6eb0;
fb761:
$E3962 = null;
goto Ee7f3;
a1435:
$ad240 = '';
goto db2b1;
d13d7:
return false;
goto be079;
fc40c:
$E88d3 = $this->cleanStr($ad240);
goto Bb21c;
Af19b:
return false;
goto Bd675;
d5308:
$b6c9a = array_reverse($b6c9a);
goto C2eaf;
F8239:
foreach ($Ce4f5 as $f2de0) {
goto C018d;
f8b01:
$F458a[$F54aa] = $this->cleanStr($f2de0["name"]);
goto Dba90;
Dba90:
if (!(++$D27f1 > 6)) {
goto De63e;
}
goto D80d9;
D80d9:
goto f7c00;
goto A67ce;
C018d:
$F54aa = $D27f1 === 1 ? "item_category" : "item_category" . $D27f1;
goto f8b01;
e0b41:
C7c8e:
goto E58e3;
A67ce:
De63e:
goto e0b41;
E58e3:
}
goto ffb99;
Cc159:
});
goto D5992;
A1a0f:
if ($e9d1b) {
goto B0bc5;
}
goto eb244;
d46d6:
B0bc5:
goto e62f0;
e62f0:
$A0b28 = "dmt.catdata." . $e9d1b . ($bab60 ? . $bab60 : '');
goto a8cdc;
D5992:
}
public function getProductCatID($e9d1b = 0)
{
goto Db8cc;
Dd59c:
return false;
goto be017;
C379c:
$A0b28 = "dmt.cat." . (int) $e9d1b;
goto A34c2;
Db8cc:
if ($e9d1b) {
goto a3562;
}
goto Dd59c;
A34c2:
return $this->fetchWithCache($A0b28, function () use($e9d1b) {
$c63c0 = $this->db->query("\xd
\x9 \x9SELECT category_id \xd\xa \x9\x9 FROM " . DB_PREFIX . "product_to_category \xd\xa\x9 WHERE product_id = '" . (int) $e9d1b . "' \xd
\x9 \x9 ORDER BY category_id DESC \xd\xa \x9LIMIT\xd
\x9 ");
return $c63c0->num_rows === 1 ? (int) $c63c0->row["category_id"] : 0;
}, true);
goto bcdf1;
be017:
a3562:
goto C379c;
bcdf1:
}
public function getParent($eebb6 = 0)
{
goto d6935;
d90f1:
Fa219:
goto adbbb;
adbbb:
$A0b28 = "dmt.parent." . (int) $eebb6;
goto f563e;
f563e:
return $this->fetchWithCache($A0b28, function () use($eebb6) {
goto B034a;
B8ac9:
$c63c0 = $this->db->query("
\xa \x9 SELECT c.category_id, cd1.name AS name, c.parent_id \xd
\x9 ROM " . DB_PREFIX . "category c \xd
\x9 \x9\x9LEFT JOIN " . DB_PREFIX . "category_description cd1
\xa\x9 \x9 \x9ON c.category_id = cd1.category_id \xd
WHERE cd1.language_id = '" . (int) $this->config->get("config_language_id") . "'
\x9 AND c.category_id = '" . (int) $eebb6 . "'
\xa\x9\x9\x9 LIMIT 1
\xa \x9\x9");
goto da58a;
C0aff:
$Db528 = array_merge($Db528, $ddb38);
goto D0576;
a72da:
$Db528[] = $b5014;
goto e5a06;
e5a06:
if (!((int) $b5014["parent_id"] !== 0)) {
goto e8c46;
}
goto B9af0;
D0e8b:
return $Db528;
goto E6fbb;
D0576:
A0df5:
goto A220b;
A220b:
e8c46:
goto e07cd;
da58a:
if (!($c63c0->num_rows === 1)) {
goto E803e;
}
goto Ccb04;
e07cd:
E803e:
goto D0e8b;
Ccb04:
$b5014 = $c63c0->row;
goto a72da;
f911a:
if (empty($ddb38)) {
goto A0df5;
}
goto C0aff;
B9af0:
$ddb38 = $this->getParent($b5014["parent_id"]);
goto f911a;
B034a:
$Db528 = [];
goto B8ac9;
E6fbb:
});
goto a4ad4;
d6935:
if ($eebb6) {
goto Fa219;
}
goto E45c6;
E45c6:
return false;
goto d90f1;
a4ad4:
}
public function getProductBrandName($e9d1b = 0)
{
goto De775;
ee0cc:
c3e07:
goto bf086;
ae87e:
return $this->fetchWithCache($A0b28, function () use($e9d1b) {
goto d24ee;
d58a2:
$F2554 = isset($c63c0->row["name"]) ? $c63c0->row["name"] : '';
goto a5327;
d24ee:
$c63c0 = $this->db->query("\xd\xa\x9 \x9\x9SELECT m.name \xd\xa FROM " . DB_PREFIX . "manufacturer m
\xa \x9\x9LEFT JOIN " . DB_PREFIX . "product p
\xa \x9 \x9ON m.manufacturer_id = p.manufacturer_id
\xa\x9 \x9 WHERE p.product_id = '" . (int) $e9d1b . "'\xd\xa \x9LIMIT\xd\xa ");
goto d58a2;
a5327:
return $this->cleanStr($F2554);
goto caa6c;
caa6c:
}, true);
goto E9cb2;
De775:
if ($e9d1b) {
goto c3e07;
}
goto Eb9f7;
Eb9f7:
return '';
goto ee0cc;
bf086:
$A0b28 = "dmt.brand." . (int) $e9d1b;
goto ae87e;
E9cb2:
}
public function getProductImages($e9d1b = 0)
{
goto B0926;
B7238:
return [];
goto b3639;
B0926:
if ($e9d1b) {
goto E87c7;
}
goto B7238;
A84c1:
return $this->fetchWithCache($A0b28, function () use($e9d1b) {
$c63c0 = $this->db->query("
\xa \x9\x9 SELECT *
\xa\x9 ROM " . DB_PREFIX . "product_image
\xa\x9\x9 \x9WHERE product_id = '" . (int) $e9d1b . "'
\x9\x9ORDER BY sort_order ASC \xd\xa\x9 \x9\x9LIMIT 1\xd\xa \x9");
return $c63c0->rows;
});
goto Dd866;
b3639:
E87c7:
goto dd904;
dd904:
$A0b28 = "dmt.images." . (int) $e9d1b;
goto A84c1;
Dd866:
}
public function getModuleProducts($Be00b = array(), $be5b4 = '', $E447f = '')
{
goto a9a4f;
D2336:
Ed8dd:
goto ffc99;
Fa98b:
if (!empty($be5b4)) {
goto Ed8dd;
}
goto B1d4d;
De859:
foreach ($Be00b as $f5425) {
goto af269;
Dee60:
$f5425["category"] = $be5b4;
goto D01b6;
b16b2:
Dd17b:
goto fb991;
Ff169:
befe7:
goto D7416;
Fa0dc:
$E4ccf = $this->model_extension_module_dmt->getProductInfo($e9d1b);
goto B6ef4;
c000a:
$f5425["item_list_id"] = $E447f;
goto F538b;
B6ef4:
$f5425["sku"] = isset($E4ccf["sku"]) ? $E4ccf["sku"] : $e9d1b;
goto b7ac2;
aa403:
$f2a49 = isset($E4ccf["price"]) ? $E4ccf["price"] : 0;
goto b16b2;
Bcf72:
$Ff056 = 0.0;
goto a51d1;
C49d7:
$f5425["item_category"] = $be5b4;
goto Dee60;
F6909:
$f5425["category_name"] = $be5b4;
goto C49d7;
E1bab:
$f5425["model"] = isset($E4ccf["model"]) ? $E4ccf["model"] : $e9d1b;
goto Cdbb8;
C61f7:
C68b4:
goto Cc33f;
b7ac2:
$f5425["gtin"] = isset($E4ccf["ean"]) ? $E4ccf["ean"] : '';
goto E1bab;
b73d9:
$f5425["tax_class_id"] = $E4ccf["tax_class_id"];
goto F6909;
Cc33f:
$f570e = 0.0;
goto Bcf72;
Cdbb8:
$f5425["pid"] = $this->tagmangerPmap($f5425["model"], $f5425["sku"], $e9d1b);
goto e92aa;
d82b7:
$f2a49 = 0;
goto Aee81;
F538b:
if (!($this->customer->isLogged() || !$this->config->get("config_customer_price"))) {
goto Dd17b;
}
goto aa403;
Aee81:
$e9d1b = $f5425["product_id"];
goto Fa0dc;
a51d1:
$B89c0 = 0;
goto d82b7;
e92aa:
$f5425["brand"] = isset($E4ccf["manufacturer"]) ? $this->cleanStr($E4ccf["manufacturer"]) : $this->getProductBrandName($e9d1b);
goto Af333;
B4393:
$f5425["item_price"] = $f2a49;
goto ff372;
D68ef:
$f2a49 = $E4ccf["special"];
goto Ff169;
D01b6:
$f5425["item_list_name"] = $be5b4;
goto c000a;
D7416:
$f570e = $this->currency->format($this->tax->calculate($f2a49, $f5425["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto B4393;
D60ca:
db39f:
goto B5b61;
af269:
if (!(!isset($f5425["product_id"]) || !isset($f5425["price"]))) {
goto C68b4;
}
goto A19e6;
fb991:
if (!(isset($E4ccf["special"]) && (float) $E4ccf["special"])) {
goto befe7;
}
goto D68ef;
A19e6:
goto db39f;
goto C61f7;
Af333:
$f5425["title"] = $this->tagmangerPtitle($f5425["name"], $f5425["brand"], $f5425["model"], $e9d1b);
goto b73d9;
ba4a0:
$f2de0[] = $f5425;
goto D60ca;
ff372:
$f5425["pprice"] = number_format((float) $f570e, 2, , '');
goto ba4a0;
B5b61:
}
goto d0250;
dc7bf:
return false;
goto A290f;
c18d1:
if (!($this->check_array($Be00b) && count($Be00b) < 1)) {
goto ef60b;
}
goto cf09a;
F0131:
dfe99:
goto B4b60;
A290f:
Ce626:
goto c18d1;
B4b60:
if ($this->check_array($Be00b)) {
goto Ce626;
}
goto dc7bf;
ffc99:
if (!empty($E447f)) {
goto dfe99;
}
goto d03e7;
cf09a:
return false;
goto B710d;
B1d4d:
$be5b4 = "Modules";
goto D2336;
d0250:
C20ca:
goto be01a;
d03e7:
$E447f = "modules";
goto F0131;
be01a:
return $f2de0;
goto d483b;
a9a4f:
$this->load->model("extension/module/dmt");
goto B703e;
B710d:
ef60b:
goto De859;
B703e:
$f2de0 = [];
goto Fa98b;
d483b:
}
public function getProduct($e9d1b = false, $B4f19 = array(), $Be248 = array())
{
goto dbf2b;
c4339:
$c36f9 = ["event" => "productView", "eventAction" => "productView", "eventLabel" => "Product Detail View", "ga" => $A8ce3, "content_name" => $fda0d, "content_category" => $Ea555, "content_ids" => $ecc30, "content_type" => "product", "category" => $Ea555, "brand" => $F2554, "remarketing_ids" => $c1aca, "currency" => $c513c["currency"], "value" => $bdea5, "event_id" => $e7e18];
goto F7d6c;
B473e:
$E850b[] = ["product_name" => $fda0d, "product_id" => $ecc30, "product_category" => $Ea555, "product_price" => $bdea5, "product_brand" => $F2554];
goto D6460;
Fa3f0:
$c1649 = 0;
goto b3653;
c2376:
goto cb3bd;
goto Abee5;
Bdfba:
if (!$c513c["twitter_status"]) {
goto bbd18;
}
goto a5f0d;
ea97a:
$C6970[] = ["content_category" => $Ea555, "content_name" => $fda0d, "price" => $bdea5, "content_id" => $ecc30, "quantity" => 1, "brand" => $F2554, "currency" => $A881c, "value" => $E06bd, "description" => $fda0d, "content_type" => "product"];
goto B9d51;
A5538:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto ba3f8;
}
goto Fc757;
Ba612:
if (!(!is_null($B4f19["special"]) && (float) $B4f19["special"] >= 0)) {
goto D2aca;
}
goto D0708;
aab5a:
$Edc97 = false;
goto aac7f;
a8ea9:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto Dd62c;
}
goto E44c9;
ec029:
$c1649 = $c513c["twitter_viewcontent"];
goto e6ecf;
b7681:
if (!isset($B4f19["image"])) {
goto F8cb4;
}
goto B2910;
D8add:
$E1d8b = false;
goto D5938;
C63e1:
$f2a49 = $B4f19["price"];
goto D7fd8;
D1dfe:
$d5ede = ["ecomm_prodid" => $ecc30, "ecomm_pagetype" => "product"];
goto caae7;
c7457:
if (isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"]) {
goto D7b54;
}
goto D0455;
Fe337:
if (isset($c513c["twitter_viewcontent"]) && !empty($c513c["twitter_viewcontent"])) {
goto ad889;
}
goto Cf97c;
b1f5f:
$b748b = false;
goto D8add;
af6ef:
$C0d0c = $E88d3["item_category2"];
goto dbaf3;
f2e77:
$C6158 = $B4f19["model"];
goto B8147;
D7fd8:
b222b:
goto Ba612;
ce86f:
$C8d20 = false;
goto e01ca;
c34f8:
return false;
goto C21e4;
c6bcb:
ba3f8:
goto da84e;
F8e5d:
$fd039 = '';
goto ce86f;
dda56:
D2aca:
goto A00fe;
da84e:
A65f0:
goto d610e;
B2910:
$fd039 = "//image/" . $B4f19["image"];
goto c2376;
e35f0:
$be627 = $E88d3["item_list_name"];
goto bf234;
A4879:
return false;
goto E44d6;
e65a8:
$b249b = $E88d3["item_list_id"];
goto e35f0;
c031e:
if (!$c513c["matomo_status"]) {
goto b583c;
}
goto E9f7c;
C414a:
$B1d02 = [];
goto cd2da;
D0455:
$C98e9 = $this->tax->calculate($f2a49, $cd714, $this->config->get("config_tax"));
goto eb4bd;
E4870:
$C98e9 = number_format((float) $this->currency->format($C98e9, $this->session->data["currency"], 0, false), 2, , '');
goto Fbe91;
eb4bd:
goto Ba471;
goto bf01b;
A5c37:
$bf395 = $E88d3["item_category4"];
goto fe95c;
f55d4:
$A881c = $c513c["currency"];
goto a8ea9;
E9d9a:
$E1d8b = ["content_category" => $Ea555, "currency" => $c513c["currency"], "content_ids" => $ecc30, "value" => $bdea5, "brands" => $F2554, "num_items" => 1];
goto De207;
a5f0d:
$Ec46e = [];
goto Fe337;
db36a:
$d5ede = false;
goto aab5a;
F0fca:
if (!($this->customer->isLogged() || !$this->config->get("config_customer_price"))) {
goto b222b;
}
goto C63e1;
e7d77:
if ($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"]) {
goto f79fb;
}
goto E4870;
cd2da:
$A8ce3 = [];
goto Ab8d9;
d1b0c:
$d4f2b = '';
goto F8e5d;
Aad7d:
$fda0d = $this->gtm->tagmangerPtitle($B4f19["name"], $F2554, $C6158, $B4f19["product_id"]);
goto da8c7;
bf01b:
D7b54:
goto B15a0;
Bd719:
$E06bd = number_format((float) $this->currency->format($f2a49, $this->session->data["currency"], 0, false), 2, , '');
goto f55d4;
c8054:
$c1aca[] = ["id" => (string) $ecc30, "google_business_vertical" => "retail"];
goto fdae2;
B8147:
$d1607 = isset($B4f19["ean"]) ? $B4f19["ean"] : '';
goto E131f;
f273a:
if (isset($B4f19["price"])) {
goto F39b3;
}
goto B171f;
Fc757:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto c6bcb;
d69c8:
Ba471:
goto e7d77;
b7f4e:
C0772:
goto Cf476;
d3352:
$d4f2b = $this->url->link("product/product", "&product_id=" . $e9d1b);
goto daa71;
f0b19:
$e7e18 = "1-" . $this->eventid();
goto Fa3f0;
B15a0:
$C98e9 = $f2a49;
goto d69c8;
bfeaf:
$b748b = ["price" => $bdea5, "currency" => $c513c["currency"], "item_ids" => $ecc30, "number_items" => 1, "brands" => $F2554, "item_category" => $Ea555, "description" => "Product Viewed"];
goto E9d9a;
da6d8:
$B49ec = isset($B4f19["sku"]) ? $B4f19["sku"] : '';
goto f2e77;
C6e04:
if (!$c513c["snap_pixel_status"]) {
goto Cf441;
}
goto bfeaf;
bf234:
$C7834 = $E88d3["item_category"];
goto af6ef;
D6460:
$Edc97 = ["event_id" => $e7e18, "currency" => $c513c["currency"], "line_items" => $E850b];
goto B16a5;
Cf97c:
$c1649 = 0;
goto Fea1f;
E8bf8:
goto C6522;
goto D83fc;
fe95c:
$cda6c = $E88d3["item_category5"];
goto b7f4e;
Bc8a1:
$A9f49 = $c513c["currency"];
goto C414a;
db4d2:
E8de2:
goto D8efa;
Cf476:
if (!$c513c["admitad_retag_status"]) {
goto Eacdf;
}
goto b7681;
D8efa:
$Db528 = ["error" => "false", "page_type" => "product", "datalayer" => $c36f9, "items" => $B1d02, "remarketing" => $a786b, "tiktok" => $b175e, "snapchat" => $b748b, "snapchat_api" => $E1d8b, "fb_data" => $C7054, "twitter_event" => $c1649, "twitter_data" => $cb6e9, "matomo" => $B5b4e, "bing_data" => $d5ede, "pinterest_data" => $Edc97, "related" => $C8d20];
goto Eae35;
cfb12:
if (!$c513c["bing_status"]) {
goto Ebdcf;
}
goto D1dfe;
B01e1:
$C98e9 = number_format((float) $this->currency->format($C98e9, $c513c["alt_currency"], 0, false), 2, , '');
goto D0bb4;
daa71:
Eacdf:
goto c8054;
aac7f:
$B5b4e = false;
goto c22de;
c22de:
$c1aca = [];
goto Bc8a1;
d610e:
$a786b = ["send_to" => "ads", "value" => $bdea5, "items" => $c1aca];
goto d1ee4;
D0708:
$f2a49 = $B4f19["special"];
goto dda56;
e0ee8:
$cb6e9 = false;
goto db36a;
F11b8:
$c513c = $this->config();
goto f0b19;
E131f:
$ecc30 = $this->gtm->tagmangerPmap($C6158, $B49ec, $B4f19["product_id"]);
goto f0431;
B9d51:
$b175e = ["contents" => $C6970, "content_type" => "product", "currency" => $A881c, "value" => $E06bd, "description" => $fda0d];
goto D686a;
d1ee4:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $bdea5, "items" => $B1d02];
goto c4339;
caae7:
Ebdcf:
goto a04cc;
a6cc9:
$cb6e9 = ["value" => $bdea5, "currency" => $c513c["currency"], "contents" => $Ec46e];
goto C1fd1;
De207:
Cf441:
goto Bdfba;
D83fc:
f79fb:
goto B01e1;
A2bb4:
b583c:
goto cfb12;
aaace:
F39b3:
goto B755a;
bae4d:
$Ec46e[] = ["content_id" => $ecc30, "content_type" => "product", "content_name" => $c513c["currency"], "content_price" => $bdea5, "content_group_id" => ''];
goto a6cc9;
B755a:
$f2a49 = 0;
goto F0fca;
c4a59:
D03b6:
goto E4165;
f9908:
$c36f9["cj_page"] = "productDetail";
goto c4a59;
e01ca:
$Ea555 = $b249b = $be627 = $C7834 = $C0d0c = $fe36c = $bf395 = $cda6c = '';
goto f273a;
a04cc:
if (!$c513c["pinterest_status"]) {
goto Af0a9;
}
goto F11dd;
E4165:
if (!($this->check_array($Be248) && count($Be248) > 0)) {
goto E8de2;
}
goto Ed28a;
Eae35:
return $Db528;
goto D74be;
D4256:
if (!$c513c["tiktok_status"]) {
goto C8ad7;
}
goto Bd719;
D0bb4:
$A9f49 = $c513c["alt_currency"];
goto a051d;
B171f:
return false;
goto aaace;
Abee5:
F8cb4:
goto A58d7;
C21e4:
adcb8:
goto F11b8;
B095e:
if (!$c513c["pixel"]) {
goto A65f0;
}
goto c7457;
Fd6a9:
$A881c = $c513c["tiktok_alt_currency"];
goto Ab4f0;
A8425:
cb3bd:
goto d3352;
Fbe91:
$A9f49 = $c513c["currency"];
goto E8bf8;
c4cea:
$C6970 = [];
goto ea97a;
bf1f0:
$cd714 = $B4f19["tax_class_id"];
goto e10b9;
e6ecf:
F4f4a:
goto bae4d;
F7d6c:
if (!$c513c["cj_status"]) {
goto D03b6;
}
goto f9908;
E44d6:
Ac648:
goto A2ee9;
Ca8f3:
$Ea555 = $E88d3["category"];
goto e65a8;
D6436:
foreach ($A356c as $f01e6) {
$fd039 = "//image/" . $f01e6["image"];
F8151:
}
goto bd83c;
F11dd:
$E850b = [];
goto B473e;
Ab8d9:
$a786b = [];
goto d1b0c;
e10b9:
$bdea5 = number_format((float) $bdea5, 2, , '');
goto da6d8;
b3653:
$Db528 = false;
goto C6caa;
A00fe:
$bdea5 = $this->currency->format($this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto bf1f0;
dbf2b:
if ($e9d1b) {
goto Ac648;
}
goto A4879;
da8c7:
$E88d3 = $this->gtm->getProductCatName($e9d1b);
goto eb2c7;
B3891:
$C7054 = ["content_name" => $fda0d, "content_category" => $Ea555, "content_ids" => $ecc30, "content_type" => "product", "value" => $C98e9, "currency" => $A9f49];
goto A5538;
f0431:
$F2554 = $this->gtm->cleanStr($B4f19["manufacturer"]);
goto Aad7d;
B16a5:
Af0a9:
goto D4256;
D5938:
$C7054 = false;
goto e0ee8;
Ab4f0:
Dd62c:
goto c4cea;
D686a:
C8ad7:
goto C6e04;
bd83c:
De9b2:
goto A8425;
Fea1f:
goto F4f4a;
goto E4898;
E9f7c:
$B5b4e = ["sku" => $ecc30, "name" => $fda0d, "category" => $C7834, "price" => $bdea5];
goto A2bb4;
a051d:
C6522:
goto B3891;
eb2c7:
if (!(isset($E88d3) && $E88d3)) {
goto C0772;
}
goto Ca8f3;
E4898:
ad889:
goto ec029;
C6caa:
$b175e = false;
goto b1f5f;
E44c9:
$E06bd = number_format((float) $this->currency->format($f2a49, $c513c["tiktok_alt_currency"], 0, false), 2, , '');
goto Fd6a9;
dbaf3:
$fe36c = $E88d3["item_category3"];
goto A5c37;
A58d7:
$A356c = $this->gtm->getProductImages($this->request->get["product_id"]);
goto D6436;
C1fd1:
bbd18:
goto B095e;
fdae2:
$B1d02[] = ["item_id" => $ecc30, "item_name" => $fda0d, "item_brand" => $F2554, "item_list_name" => $be627, "item_list_id" => $b249b, "item_category" => $C7834, "item_category2" => $C0d0c, "item_category3" => $fe36c, "item_category4" => $bf395, "item_category5" => $cda6c, "item_variant" => '', "affiliation" => '', "discount" => 0, "coupon" => '', "price" => $bdea5, "curency" => $c513c["currency"], "item_image" => $fd039, "item_url" => $d4f2b, "index" => 0, "quantity" => 1];
goto c031e;
A2ee9:
if (!($this->check_array($B4f19) && count($B4f19) < 1)) {
goto adcb8;
}
goto c34f8;
Ed28a:
$C8d20 = $this->getModuleProducts($Be248, "Related Items", "related_items");
goto db4d2;
D74be:
}
public function getProducts($Db528 = array(), $da009 = array())
{
goto a3ac7;
f1f72:
$ed197 = [];
goto d52b9;
E1a98:
$a9f50 = "view_search_results";
goto c63eb;
c437b:
if (isset($c513c["twitter_search"]) && !empty($c513c["twitter_search"])) {
goto f0a5c;
}
goto E67d8;
b75c6:
if (isset($A2d05) && !empty($A2d05)) {
goto Fe30e;
}
goto b0c85;
f5a7e:
Bccdd:
goto F192a;
fce4e:
$adebb = "view_search_result";
goto b7d87;
B868b:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto Cffbc;
}
goto C19d9;
c63eb:
$Cb091 = "searchResult";
goto db11d;
Cdd3e:
Fbc3c:
goto a3377;
B83a9:
abfb7:
goto F82b4;
a1113:
$cb6e9 = [];
goto b74e5;
b74e5:
$Ec46e = [];
goto cea28;
F5449:
$cec2f = 1;
goto Be4db;
c6cf7:
Cffbc:
goto A8119;
ed2b9:
$c36f9 = ["event" => $Cb091, "eventAction" => $Cb091, "eventLabel" => $Cb091, "content_name" => $be5b4, "content_category" => $be5b4, "content_ids" => $ed197, "ga" => $A8ce3, "content_type" => "product", "search" => $A2d05, "category" => $be5b4, "brand" => $Abc3c, "remarketing_ids" => $c1aca, "currency" => $c513c["currency"], "value" => $f5425, "pixel_value" => $f5425, "fb_currency" => $c513c["currency"], "event_id" => $e7e18];
goto d461a;
a571c:
$C7054 = ["content_name" => $be5b4, "content_category" => $be5b4, "content_ids" => $ed197, "content_type" => "product"];
goto B868b;
bf357:
Cf53d:
goto acb46;
b95dc:
if (!$A2d05) {
goto be8e6;
}
goto Df860;
b679a:
$c36f9["cj_page"] = "category";
goto E1bf8;
ea633:
Eef24:
goto f8767;
E5b91:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto D5a4a;
}
goto A66d2;
A66d2:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto fd910;
cc55f:
if (!$c513c["pinterest_status"]) {
goto da2a6;
}
goto b95dc;
ceaec:
return false;
goto Bf22a;
dd4a6:
$F1c28 = (int) array_pop($B6bc8);
goto F1827;
B6d5f:
goto E1fe7;
goto f317b;
Afd5a:
$a786b = [];
goto B3274;
C9aff:
$cb6e9 = ["search_string" => $A2d05, "value" => $f5425, "currency" => $c513c["currency"], "contents" => $Ec46e];
goto B83a9;
E9ea4:
$B5b4e = '';
goto f1f72;
F72eb:
Cdf5f:
goto b696d;
C947d:
da2a6:
goto c3e0a;
A7fd9:
$B6c9d = "ViewCategory";
goto Fa9df;
a3377:
$d5ede = ["ecomm_category" => $F1c28, "ecomm_prodid" => $E8e9c, "ecomm_pagetype" => "category"];
goto Ed164;
fd910:
D5a4a:
goto e5df7;
e0eb5:
$C7054 = ["content_name" => $be5b4, "content_category" => $be5b4, "content_ids" => $ed197, "content_type" => "product", "search_string" => $A2d05];
goto E5b91;
Aad98:
$c36f9 = [];
goto b0b8b;
c6e67:
$E850b = [];
goto F9226;
A46d7:
$A2d05 = $da009["search"];
goto e4a9d;
c1af6:
$Db528 = ["products" => $f2de0, "error" => "false", "page_type" => "listing", "category_id" => $F1c28, "category_name" => $be5b4, "datalayer" => $c36f9, "fb_data" => $C7054, "matomo" => $B5b4e, "snapchat" => $b748b, "snapchat_api" => $E1d8b, "tiktok" => $b175e, "items" => $B1d02, "remarketing" => $a786b, "twitter_event" => $c1649, "twitter_data" => $cb6e9, "bing_data" => $d5ede, "pinterest_data" => $Edc97];
goto E7f96;
Eda9b:
$C6970 = [];
goto Fab47;
b5c5b:
$c1aca = [];
goto Cea70;
E67d8:
$c1649 = 0;
goto B6d5f;
e4a9d:
$Abc3c = $da009["brand"];
goto a6ce7;
c3e0a:
$f5425 = number_format((float) $C7e06, 2, , '');
goto C8415;
a6439:
$E447f = $da009["list_id"];
goto A46d7;
d0195:
return false;
goto F9dd8;
c1cd1:
A537a:
goto C1089;
F2122:
$B5b4e = $be5b4;
goto C220f;
Fac76:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto E8476;
}
goto dcd7e;
Df860:
$Edc97 = ["event_id" => "1001", "search_query" => $A2d05, "currency" => $c513c["currency"], "line_items" => $E850b];
goto E6b8b;
C8415:
if (!(isset($c513c["twitter_status"]) & $c513c["twitter_status"] && !empty($A2d05))) {
goto Cdf5f;
}
goto c437b;
F9226:
if ($this->check_array($Db528)) {
goto B300b;
}
goto d0195;
E1bf8:
B9906:
goto Cb16d;
C1089:
$B6bc8 = explode("_", (string) $this->request->get["path"]);
goto dd4a6;
c615a:
$adebb = "view_item_list";
goto A7fd9;
fe9dd:
$A881c = $c513c["currency"];
goto Fac76;
Bec4b:
$C7e06 = 0;
goto C5e2d;
b0b8b:
$C7054 = false;
goto Afd5a;
Fd967:
goto Bccdd;
goto Ca4e3;
Acd12:
$c1649 = $c513c["twitter_search"];
goto D9d74;
abf25:
goto Ea8f4;
goto ea633;
C154a:
Fe187:
goto Cefc1;
a3299:
E8476:
goto D0921;
ca86b:
$f2de0 = [];
goto a93bb;
d461a:
if (!$c513c["cj_status"]) {
goto B9906;
}
goto b679a;
e2ba7:
goto A32eb;
goto Cdd3e;
Fadb3:
$D27f1 = 0;
goto Bec4b;
Bed24:
if (!($c513c["matomo_status"] && !$A2d05)) {
goto Bf17f;
}
goto F2122;
C26d9:
if (!$A2d05) {
goto E0416;
}
goto f8a21;
b7d87:
$B6c9d = "viewSearch";
goto E1a98;
afabf:
$Edc97 = false;
goto c6e67;
f8767:
$e7e18 = "2-" . $this->eventid();
goto fce4e;
Fa9df:
$a9f50 = "view_item_list";
goto c3484;
Ed164:
A32eb:
goto e7b50;
e69b5:
if (!$A2d05) {
goto Fbc3c;
}
goto B9b09;
D3b8e:
$b748b["description"] = "View Search Results";
goto C154a;
F63b8:
$b748b["search_string"] = $A2d05;
goto D3b8e;
e5df7:
$D9cc7 = "Search";
goto F33c9;
e19bb:
if (!(isset($c513c["twitter_status"]) & $c513c["twitter_status"] && !empty($A2d05))) {
goto abfb7;
}
goto C9aff;
F8fb5:
foreach ($Db528 as $f5425) {
goto a353f;
Bdde7:
cca31:
goto feae6;
Bc599:
E05a6:
goto A1972;
C4ecd:
C1cd8:
goto A2431;
cedae:
$f5425["item_list_name"] = $E88d3["item_list_name"];
goto ec108;
E7b71:
if ($F1c28) {
goto F2899;
}
goto B8e4a;
F96ce:
$f5425["item_list_name"] = $E447f;
goto d9925;
bfcef:
f6954:
goto B3810;
d7a24:
$f5425["item_category3"] = $E88d3["item_category3"];
goto C2008;
D84f1:
$E06bd = $this->currency->format($f5425["item_price"], $c513c["tiktok_alt_currency"], 0, false);
goto a9a27;
Bfbd9:
$f570e = $this->currency->format($this->tax->calculate($f2a49, $f5425["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto B47b2;
b9850:
$ad240[] = $E88d3;
goto F3d8e;
C2008:
$f5425["item_category4"] = $E88d3["item_category4"];
goto e128a;
c860d:
$f5425["item_category"] = '';
goto a6089;
a4043:
goto dd682;
goto e46dc;
c97f0:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto bfa1d;
}
goto D84f1;
feae6:
a3d5d:
goto babca;
A1972:
if (empty($E447f)) {
goto cca31;
}
goto F24ea;
Ce15c:
$f5425["brand"] = isset($E4ccf["manufacturer"]) ? $this->cleanStr($E4ccf["manufacturer"]) : $this->getProductBrandName($e9d1b);
goto B4d79;
Ad7d9:
$F5508[] = ["id" => $f5425["pid"], "quantity" => 1, "item_price" => $f5425["pprice"]];
goto fdc44;
B1d96:
if (!($this->customer->isLogged() || !$this->config->get("config_customer_price"))) {
goto b5459;
}
goto e5cba;
b5630:
if (empty($be5b4)) {
goto E05a6;
}
goto Fa2f6;
E9184:
$ed197[] = $f5425["pid"];
goto eda1d;
c596b:
$E06bd = $this->currency->format($f5425["item_price"], $this->session->data["currency"], 0, false);
goto c97f0;
e8de1:
cc20a:
goto Bfbd9;
Fa895:
$E850b[] = ["product_name" => $f5425["title"], "product_id" => $f5425["pid"], "product_category" => $f5425["item_list_name"], "product_price" => $f5425["pprice"], "product_brand" => $f5425["brand"]];
goto d1206;
cad1c:
$e5739 = $cec2f;
goto B1afd;
A9d32:
Eab2c:
goto Fa895;
E8a58:
goto a3d5d;
goto bea25;
a9a27:
bfa1d:
goto b543f;
a0662:
$f5425["item_price"] = $f2a49;
goto edcf5;
d9925:
$f5425["category_name"] = $be5b4;
goto c860d;
Fc9ee:
$f5425["item_list_id"] = $be5b4;
goto F96ce;
F4fed:
if (!(isset($E4ccf["special"]) && (float) $E4ccf["special"])) {
goto cc20a;
}
goto Bf79c;
B1afd:
$cec2f++;
goto c15b2;
C9cec:
$f5425["item_category3"] = '';
goto C0b1e;
d1eb4:
$f5425["item_category"] = $E88d3["item_category"];
goto dedb9;
a353f:
if (!(!isset($f5425["product_id"]) || !isset($f5425["price"]))) {
goto E7132;
}
goto a4043;
b543f:
$C6970[] = ["content_category" => $f5425["item_list_name"], "content_name" => $f5425["title"], "price" => number_format((float) $E06bd, 2, , ''), "content_id" => $f5425["pid"], "quantity" => 1, "brand" => $f5425["brand"]];
goto Ac201;
F24ea:
$f5425["item_list_id"] = $E447f;
goto Bdde7;
e128a:
$f5425["item_category5"] = $E88d3["item_category5"];
goto b5630;
bf3b8:
goto dd682;
goto a9003;
ef0ab:
$f5425["gtin"] = isset($E4ccf["ean"]) ? $E4ccf["ean"] : '';
goto A9550;
edcf5:
$f5425["pprice"] = number_format((float) $f570e, 2, , '');
goto A9338;
e46dc:
E7132:
goto f3f87;
a6089:
$f5425["item_category2"] = '';
goto C9cec;
ad088:
$E4ccf = $this->model_extension_module_dmt->getProductInfo($e9d1b);
goto E7b71;
A2431:
$f5425["brand"] = $this->cleanStr($Abc3c);
goto e5e32;
D4921:
$f5425["title"] = $this->tagmangerPtitle($f5425["name"], $f5425["brand"], $f5425["model"], $e9d1b);
goto e3a38;
fdc44:
if (!$c513c["tiktok_status"]) {
goto Eab2c;
}
goto c596b;
c15b2:
$D27f1++;
goto C0716;
C0539:
if (!($cec2f > $be8e9)) {
goto Afa69;
}
goto bf3b8;
fe4bb:
$f5425["item_list_id"] = $E88d3["item_list_id"];
goto cedae;
C0716:
dd682:
goto C70d6;
e3a38:
$f5425["tax_class_id"] = $E4ccf["tax_class_id"];
goto B1d96;
f7043:
$e9d1b = $f5425["product_id"];
goto ad088;
e5e32:
ca2e3:
goto D4921;
B8e4a:
$E88d3 = $this->getProductCatName($e9d1b);
goto Ddd3c;
eda1d:
$c1aca[] = ["id" => (string) $f5425["pid"], "google_business_vertical" => "retail"];
goto b2332;
A9338:
$f2de0[] = $f5425;
goto C0539;
Bf79c:
$f2a49 = isset($E4ccf["special"]) ? $E4ccf["special"] : 0;
goto e8de1;
F3d8e:
$B1d02[] = ["item_id" => $f5425["pid"], "item_name" => $f5425["title"], "item_brand" => $f5425["brand"], "item_list_name" => $f5425["item_list_name"], "item_list_id" => $f5425["item_list_id"], "item_category" => $f5425["item_category"], "item_category2" => $f5425["item_category2"], "item_category3" => $f5425["item_category3"], "item_category4" => $f5425["item_category4"], "item_category5" => $f5425["item_category5"], "item_variant" => '', "affiliation" => '', "discount" => 0, "coupon" => '', "price" => $f5425["pprice"], "curency" => $c513c["currency"], "index" => $D27f1, "quantity" => 1];
goto d044f;
fbf54:
$f2a49 = 0;
goto f7043;
E31aa:
$Ff056 = 0.0;
goto C4395;
B3810:
$f5425["sku"] = isset($E4ccf["sku"]) ? $E4ccf["sku"] : $e9d1b;
goto ef0ab;
A5a67:
D14c4:
goto a0662;
Ac201:
$ce100 += $E06bd;
goto A9d32;
b2332:
$C7e06 += $f570e;
goto cad1c;
e5cba:
$f2a49 = isset($E4ccf["price"]) ? $E4ccf["price"] : 0;
goto a1398;
B47b2:
if ($this->check_array($E88d3)) {
goto Fb1e3;
}
goto Fc9ee;
A4e03:
$E88d3 = $this->getProductCatName($e9d1b, $F1c28);
goto bfcef;
d1206:
$E8e9c[] = $f5425["pid"];
goto E9184;
A4b8a:
F2899:
goto A4e03;
ec108:
$f5425["category_name"] = $E88d3["category"];
goto d1eb4;
bea25:
Fb1e3:
goto fe4bb;
a1398:
b5459:
goto F4fed;
dedb9:
$f5425["item_category2"] = $E88d3["item_category2"];
goto d7a24;
babca:
if (!(!empty($Ec703) && $Ec703 == "product/search")) {
goto D14c4;
}
goto C3234;
E64b2:
if ($Abc3c) {
goto C1cd8;
}
goto Ce15c;
B4d79:
goto ca2e3;
goto C4ecd;
C4395:
$B89c0 = 0;
goto fbf54;
Fa2f6:
$f5425["item_list_name"] = $be5b4;
goto Bc599;
C8c77:
$f5425["item_list_name"] = $be5b4;
goto A5a67;
f3f87:
$f570e = 0.0;
goto E31aa;
C0b1e:
$f5425["item_category4"] = '';
goto fc401;
fc401:
$f5425["item_category5"] = '';
goto E8a58;
d044f:
$Ec46e[] = ["content_id" => $f5425["pid"], "content_type" => "product", "content_name" => $f5425["title"], "content_price" => $f5425["pprice"]];
goto Ad7d9;
C3234:
$f5425["item_list_id"] = $E447f;
goto C8c77;
A9550:
$f5425["model"] = isset($E4ccf["model"]) ? $E4ccf["model"] : $e9d1b;
goto a4524;
Ddd3c:
goto f6954;
goto A4b8a;
a4524:
$f5425["pid"] = $this->tagmangerPmap($f5425["model"], $f5425["sku"], $e9d1b);
goto E64b2;
a9003:
Afa69:
goto b9850;
C70d6:
}
goto fdd71;
Cea70:
$e5739 = 0;
goto Aad98;
c3484:
$Cb091 = "listingView";
goto abf25;
B9b09:
$d5ede = ["ecomm_query" => $A2d05, "ecomm_prodid" => $E8e9c, "ecomm_pagetype" => "searchresults"];
goto e2ba7;
E7405:
if (!($this->check_array($Db528) && count($Db528) < 1)) {
goto E88be;
}
goto ceaec;
E7f96:
return $Db528;
goto Dc339;
eca93:
$F5508 = [];
goto b443d;
Bf22a:
E88be:
goto Dd49d;
e1d7a:
$F1c28 = 0;
goto Aef0c;
Dd49d:
if (isset($this->request->get["path"])) {
goto A537a;
}
goto e1d7a;
f8a21:
$b175e["query"] = $A2d05;
goto F3c1c;
C058c:
$be5b4 = $da009["list_name"];
goto a6439;
f317b:
f0a5c:
goto Acd12;
b0c85:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "items" => $B1d02];
goto Fd967;
Be4db:
$be8e9 = 20;
goto a1113;
F82b4:
if (!$c513c["tiktok_status"]) {
goto Cf53d;
}
goto fe9dd;
ba0d0:
$b748b = ["price" => $f5425, "currency" => $c513c["currency"], "item_ids" => $E8e9c, "number_items" => $e5739, "item_category" => $be5b4, "description" => "Product Category View"];
goto e14e5;
Dcdef:
$a786b = [];
goto Eda9b;
B3e2c:
$Edc97 = ["event_id" => "1001", "currency" => $c513c["currency"], "line_items" => $E850b];
goto aae5e;
acb46:
if (!$c513c["snap_pixel_status"]) {
goto ad412;
}
goto ba0d0;
A26d6:
$c513c = $this->config();
goto F8fb5;
Aef0c:
goto c9d1e;
goto c1cd1;
Bffc8:
$E1d8b["search_string"] = $A2d05;
goto F63b8;
a42ac:
if (!(isset($A2d05) && !empty($A2d05))) {
goto Fe187;
}
goto Bffc8;
fdd71:
A8d03:
goto a6b78;
Af849:
goto C876e;
goto F9c9f;
E6b8b:
goto E0d7b;
goto B7471;
a93bb:
$e5d23 = [];
goto Fadb3;
B3274:
$d5ede = false;
goto afabf;
a3ac7:
$this->load->model("extension/module/dmt");
goto C058c;
D0921:
$b175e = ["contents" => $C6970, "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $ce100, 2, , ''), "description" => $be5b4];
goto C26d9;
F9dd8:
B300b:
goto E7405;
aae5e:
E0d7b:
goto C947d;
F1827:
c9d1e:
goto A26d6;
A3ef0:
F5da8:
goto Bed24;
b696d:
if ($A2d05) {
goto Eef24;
}
goto b8926;
fd878:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "search_term" => $A2d05, "term" => $A2d05, "items" => $B1d02];
goto f5a7e;
D9d74:
E1fe7:
goto F72eb;
e7b50:
Eaa85:
goto cc55f;
Ae85d:
$ce100 = 0;
goto a2b3a;
Abfaa:
$E1d8b = [];
goto eca93;
a6ce7:
$F1c28 = $da009["category"];
goto ca86b;
d52b9:
$B1d02 = [];
goto db07e;
F33c9:
C876e:
goto A3ef0;
Cefc1:
ad412:
goto b75c6;
a2b3a:
$b748b = [];
goto Abfaa;
b8926:
$e7e18 = "9-" . $this->eventid();
goto c615a;
b443d:
$E8e9c = [];
goto b5c5b;
cea28:
$c1649 = 0;
goto E9ea4;
dcd7e:
$A881c = $c513c["tiktok_alt_currency"];
goto a3299;
F3c1c:
E0416:
goto bf357;
Fab47:
$b175e = [];
goto Ae85d;
F192a:
$a786b = ["send_to" => "ads", "value" => $f5425, "items" => $c1aca];
goto ed2b9;
Ca4e3:
Fe30e:
goto fd878;
Cb16d:
if (!$c513c["pixel"]) {
goto F5da8;
}
goto cebad;
F9c9f:
E3d31:
goto e0eb5;
C5e2d:
$C98e9 = 0;
goto F5449;
e14e5:
$E1d8b = ["content_category" => $be5b4, "currency" => $c513c["currency"], "content_ids" => $ed197, "contents" => $F5508, "value" => $f5425];
goto a42ac;
C19d9:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto c6cf7;
A8119:
$D9cc7 = "ViewCategory";
goto Af849;
C220f:
Bf17f:
goto c1af6;
cebad:
if ($A2d05) {
goto E3d31;
}
goto a571c;
db07e:
$A8ce3 = [];
goto Dcdef;
B7471:
be8e6:
goto B3e2c;
db11d:
Ea8f4:
goto e19bb;
a6b78:
if (!$c513c["bing_status"]) {
goto Eaa85;
}
goto e69b5;
Dc339:
}
public function prepareAddtoCart($e9d1b, $B4f19, $Ea153, $a17f7, $f2bcc, $C54b0 = 0)
{
goto E63c2;
A8052:
$C98e9 = number_format((float) $c2fce, 2, , '');
goto ddf53;
A4d24:
$de779 = array_keys($a17f7);
goto B79d6;
d130a:
$b726f = $b726f / $Ddb25;
goto Cde22;
D9370:
ac64b:
goto d11b3;
bd512:
$e7e18 = "5-" . $this->eventid();
goto eebd7;
d91aa:
$Ccad7 = "Snapchat";
goto F4366;
d390a:
fd489:
goto bfdc3;
f7a25:
$Adddc = $this->cart->getTotal();
goto Db090;
d11b3:
$Ec46e = ["content_id" => (string) $ecc30, "content_type" => "product", "content_name" => $fda0d, "num_items" => $Ea153, "content_price" => $f2a49, "content_group_id" => ''];
goto ac4fc;
Cd113:
$Ec46e = [];
goto ecf78;
b554b:
d77ad:
goto ca53c;
C6d4e:
$F2554 = $this->getProductBrandName($B4f19["product_id"]);
goto d9169;
caf52:
$Ea555 = $E88d3["category"];
goto E836d;
d65e2:
Bac8c:
goto c9174;
d8f25:
$fda0d = $this->tagmangerPtitle($B4f19["name"], $F2554, $B4f19["model"], $B4f19["product_id"]);
goto B0cff;
bfdc3:
if (!$c513c["snap_pixel_status"]) {
goto e3054;
}
goto B018f;
a9513:
$E06bd = number_format((float) $this->currency->format($f2a49, $this->session->data["currency"], 0, false), 2, , '');
goto B46aa;
D5f9a:
foreach ($a17f7[$de779[$D27f1]] as $Ac077) {
$a6669[] = ["option_id" => $de779[$D27f1], "option_values" => $Ac077];
a5ca8:
}
goto C1f19;
B1bcb:
if (!$c513c["fb_api"]) {
goto d9d01;
}
goto e24e0;
cb10c:
$C7834 = $E88d3["item_category"];
goto E48ae;
ecf78:
$E02ed = [];
goto Afd41;
B30f7:
$A881c = $c513c["currency"];
goto A415c;
df3b9:
$Af6d1 = ["email" => $c513c["email"], "event" => "add_to_cart", "cuid" => $this->getCuid(), "properties" => ["FIRSTNAME" => $c513c["fn"], "LASTNAME" => $c513c["ln"]], "eventdata" => ["id" => $this->GUID(), "data" => []]];
goto a7ca4;
B46d6:
$Af6d1["eventdata"]["data"]["currency"] = $c513c["currency"];
goto dd18e;
B63c4:
$Aefb2 = $aaedc["pixel_user_data"];
goto a0a41;
A23db:
E2ddd:
goto Fc495;
a59bd:
if (!(isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"])) {
goto C4b12;
}
goto db438;
cc271:
$Ff056 = 0;
goto D1988;
f740c:
$f2a49 = number_format((float) $f2a49, 2, , '');
goto f4f6f;
A415c:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto Eb406;
}
goto F6e30;
E48ae:
$C0d0c = $E88d3["item_category2"];
goto D3035;
f7ec2:
ea6f3:
goto c9eb0;
Ba958:
Bf92c:
goto b635b;
C4ba6:
$cb6e9 = [];
goto Cd113;
C925b:
$Ddb25 = $c513c["tax"];
goto Ca491;
cbf6c:
if (!($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"])) {
goto e14ac;
}
goto cde1b;
A5f3d:
Ef2d9:
goto e069e;
Eb0af:
if (!$c513c["pinterest_status"]) {
goto F0c62;
}
goto c49f1;
B268a:
$f2a49 = $B4f19["price"];
goto Fc077;
f08be:
$ce100 = $this->currency->format($ce100, $c513c["tiktok_alt_currency"], 0, false);
goto a19b3;
af384:
$this->Log("API Post Results - ADD TO CART " . $d787b);
goto Ae0c9;
B0511:
$c6d1a = [];
goto d24fd;
f6e57:
$E850b[] = ["product_name" => $fda0d, "product_id" => $ecc30, "product_category" => $Ea555, "product_price" => $f2a49, "product_brand" => $F2554, "product_quantity" => $Ea153, "product_variant" => $a78f5];
goto B48c3;
A4189:
$Ae039 = [];
goto C0d35;
D9314:
$c97c7 = 0;
goto Afca8;
B73fd:
Ac0e7:
goto B262f;
Db6c9:
$d5ede = ["ecomm_prodid" => $ecc30, "ecomm_pagetype" => "product", "ecomm_totalvalue" => $f2a49, "revenue_value" => $f2a49, "currency" => $c513c["currency"], "items" => $Ae039];
goto c4e15;
C6413:
c221e:
goto Eda53;
C0d35:
$Ae039[] = ["id" => $ecc30, "quantity" => $Ea153, "price" => $f2a49];
goto Db6c9;
e24e0:
$B19ca = $C7054;
goto dc66f;
Fa3a2:
$D9ecc = $Ccad7 . " / Result: error occourced data not posted";
goto E9685;
a6e40:
$f5425 = 0;
goto D9314;
Ffd20:
$b175e = ["contents" => $C6970, "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $ce100, 2, , ''), "description" => $fda0d];
goto Fd972;
Fc495:
Bd9c5:
goto c7dac;
D3035:
$fe36c = $E88d3["item_category3"];
goto e5e7f;
Cf650:
$D9ecc = $Ccad7 . " / Result: error occourced data not posted";
goto Ef144;
B71e0:
$D9ecc = $Ccad7 . " / Result: Success data sent";
goto E0979;
d7d47:
b8bea:
goto af384;
D9762:
F542d:
goto d390a;
D1679:
e3486:
goto a9ec3;
e99fb:
$B4f19["special"] = $B4f19["special"] + $c97c7;
goto B787d;
dd18e:
$b6280 = [];
goto b5282;
cf864:
F0c62:
goto B9779;
Efd56:
if (!isset($E88d3)) {
goto D63ee;
}
goto caf52;
ff378:
D63ee:
goto d8f25;
Ae0c9:
Ca413:
goto Ac29d;
F5ead:
$a6669[] = ["option_id" => $de779[$D27f1], "option_values" => $a17f7[$de779[$D27f1]]];
goto f5a3b;
b635b:
$c6d1a[$Ccad7] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $D9ecc];
goto a9f2c;
E6199:
D0d33:
goto Af73b;
Af54d:
$C7054 = ["contents" => $E02ed, "content_type" => "product", "value" => $C98e9, "currency" => $A9f49, "product_catalog_id" => $c513c["fb_catalog_id"], "quantity" => $Ea153, "content_ids" => $ecc30];
goto Fcc41;
F640e:
fcbe7:
goto C1865;
e0355:
$f2de0 = $this->tiktokAPI($c513c, "AddToCart", $b175e, $F9b77);
goto de216;
e1ce1:
$Edc97 = false;
goto D8813;
a58bb:
$Bbec2 = ["value" => $f5425, "currency" => $c513c["currency"], "pixel_value" => $C98e9, "fcurrency" => $A9f49, "ga" => $A8ce3, "event_id" => $e7e18, "name" => $fda0d, "id" => $ecc30, "price" => $f5425, "brand" => $F2554, "category" => isset($Ea555) ? $Ea555 : '', "quantity" => $Ea153, "variant" => $a78f5];
goto fe9f6;
dc66f:
$f2de0 = $this->facebookAPI($c513c, "AddToCart", $B19ca, $Aefb2, $e7e18);
goto Df8a0;
b2f01:
$E1d8b = ["content_category" => isset($be627) ? $be627 : '', "currency" => $c513c["currency"], "content_ids" => $ecc30, "value" => $f2a49, "brands" => $F2554, "num_items" => $Ea153];
goto bf3d8;
b9a17:
$Af6d1["eventdata"]["data"]["tax"] = number_format((float) $F388e, 2, , '');
goto Fed11;
Be268:
if (!(isset($c513c["twitter_status"]) && $c513c["twitter_status"])) {
goto E87bb;
}
goto F3120;
ede86:
$B1d02[] = ["item_id" => $ecc30, "item_name" => $fda0d, "item_brand" => $F2554, "item_list_name" => isset($be627) ? $be627 : '', "item_list_id" => isset($b249b) ? $b249b : '', "item_category" => isset($C7834) ? $C7834 : '', "item_category2" => isset($C0d0c) ? $C0d0c : '', "item_category3" => isset($fe36c) ? $fe36c : '', "item_category4" => isset($bf395) ? $bf395 : '', "item_category5" => isset($cda6c) ? $cda6c : '', "item_variant" => $a78f5, "affiliation" => '', "discount" => 0, "coupon" => '', "price" => $f2a49, "currency" => $c513c["currency"], "quantity" => $Ea153];
goto Da93a;
d24fd:
$d5ede = false;
goto e1ce1;
B9173:
$A9f49 = $c513c["alt_currency"];
goto dd5ea;
c770c:
if (!$this->checkapiStatus("tiktok")) {
goto F542d;
}
goto e0355;
d3bf6:
$C6970[] = ["content_category" => isset($be627) ? $be627 : '', "content_name" => $fda0d, "price" => $E06bd, "content_id" => $ecc30, "quantity" => $Ea153, "brand" => $F2554, "currency" => $A881c, "value" => number_format((float) $ce100, 2, , ''), "description" => $fda0d, "content_type" => "product"];
goto Ffd20;
E9685:
goto Bac8c;
goto Adf05;
Fc077:
if (!(float) $B4f19["special"]) {
goto Ef2d9;
}
goto Fe819;
C9a44:
if (!$cd974) {
goto B0b3c;
}
goto d91aa;
B46aa:
$ce100 = $f2a49 * $Ea153;
goto d5375;
F21b9:
$A9f49 = $c513c["currency"];
goto cbf6c;
e5256:
foreach ($f2bcc as $fee0a) {
goto d26df;
d26df:
foreach ($a6669 as $a2e15) {
goto d2b69;
bbacd:
c0cd3:
goto Fba75;
a3071:
D2eec:
goto ceb54;
C3ee3:
if (substr(VERSION, 0, 1) == "1") {
goto b07a8;
}
goto E1a5f;
ceb54:
foreach ($b2cd4 as $f5425) {
goto De681;
Bc80a:
Ce457:
goto e5d59;
De681:
if (!($a2e15["option_values"] == $f5425["product_option_value_id"])) {
goto Ce457;
}
goto a5e1b;
a5e1b:
$a78f5 .= $f5425["name"];
goto Bc80a;
e5d59:
C28a4:
goto c9218;
c9218:
}
goto bbacd;
eb733:
goto C2ed8;
goto a3071;
f36ed:
if (!(isset($b2cd4) && !empty($b2cd4))) {
goto F6856;
}
goto F6924;
Fba75:
C2ed8:
goto db8b0;
eeeef:
F59b9:
goto a77d4;
E8cbd:
$a78f5 .= ", ";
goto eeeef;
bd5ab:
c2434:
goto a08f5;
E1a5f:
$b2cd4 = isset($fee0a["product_option_value"]) ? $fee0a["product_option_value"] : false;
goto a5a44;
db8b0:
e6a77:
goto C7af4;
a08f5:
if (isset($b2cd4) && $this->check_array($b2cd4)) {
goto D2eec;
}
goto f36ed;
d1da8:
b07a8:
goto Bbe63;
a5a44:
goto c2434;
goto d1da8;
C7af4:
F4301:
goto df57a;
Bbe63:
$b2cd4 = isset($fee0a["option_value"]) ? $fee0a["option_value"] : false;
goto bd5ab;
a77d4:
$cec2f++;
goto C3ee3;
Bd5b5:
F6856:
goto eb733;
ce5b8:
if (!($cec2f > 0)) {
goto F59b9;
}
goto E8cbd;
d2b69:
if (!($fee0a["product_option_id"] == $a2e15["option_id"])) {
goto e6a77;
}
goto ce5b8;
F6924:
$a78f5 .= $b2cd4;
goto Bd5b5;
df57a:
}
goto Dc7d4;
E253f:
b821a:
goto D9182;
Dc7d4:
fcd23:
goto E253f;
D9182:
}
goto E6199;
Fed11:
$Af6d1["eventdata"]["data"]["discount"] = 0;
goto Acbfc;
A6dfb:
$c1649 = 0;
goto A4fea;
F6e30:
$ce100 = $f2a49 * $Ea153;
goto f08be;
f021a:
$Af6d1["eventdata"]["data"]["shipping"] = 0;
goto Caef5;
C7f30:
$C85f9 = [];
goto Fc15b;
ab80e:
$C6970 = [];
goto dfb31;
C1f19:
F1c9c:
goto F640e;
c4d47:
$D27f1 = 0;
goto B73fd;
ff75b:
$ecc30 = $this->tagmangerPmap($B4f19["model"], $B4f19["sku"], $B4f19["product_id"]);
goto C6d4e;
bf3d8:
if (!(isset($aaedc["snapchat_user_data"]) && $aaedc)) {
goto f99da;
}
goto E9571;
c8ae0:
$D9ecc = $Ccad7 . " / Result: error occourced data not posted";
goto E2020;
fe9f6:
if (!$c513c["pixel"]) {
goto c221e;
}
goto A4493;
a9ec3:
e3054:
goto Be268;
Df34e:
$b748b = [];
goto b1ff8;
Ac29d:
a22f9:
goto F1f6c;
c5065:
$f2a49 = $this->currency->format($this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto Bfa5a;
b628d:
b727c:
goto b99e9;
c8be6:
$d787b = '';
goto A8af0;
a11ef:
$d4bfa = $c513c["override_tax"];
goto C925b;
cde1b:
$c2fce = $this->currency->format($c922b, $c513c["alt_currency"], 0, false);
goto B9173;
Bbba8:
$F9b77 = $aaedc["tiktok_user_data"];
goto bf93f;
E0979:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto Edda0;
}
goto c8ae0;
be1d8:
db692:
goto e89cf;
ddf53:
if (isset($B4f19["sku"])) {
goto ef016;
}
goto Fe764;
a7ca4:
$b726f = $this->cart->getSubTotal();
goto f7a25;
Fd972:
if (!(isset($aaedc["tiktok_user_data"]) && $aaedc)) {
goto db6f0;
}
goto Bbba8;
C2aa5:
$cda6c = $E88d3["item_category5"];
goto ff378;
f2b0c:
$C7054 = false;
goto a11ef;
F3120:
if (isset($c513c["twitter_addcart"]) && !empty($c513c["twitter_addcart"])) {
goto d77ad;
}
goto A6dfb;
c49f1:
$E850b = [];
goto f6e57;
B79d6:
$a99b8 = count($a17f7);
goto c4d47;
B48c3:
$Edc97 = ["event_id" => $e7e18, "value" => $f2a49, "order_quantity" => $Ea153, "currency" => $c513c["currency"], "line_items" => $E850b];
goto cf864;
b1ff8:
$E1d8b = [];
goto C7f30;
F8692:
$Af6d1["eventdata"]["data"]["products"] = $b6280;
goto f61fb;
B1090:
if (!($c513c["snap_pixel_api"] && !empty($c513c["snap_pixel_token"]) && isset($E1d8b))) {
goto e3486;
}
goto ff34d;
B0cff:
$aaedc = $this->formatUserdata($c513c);
goto C9957;
bdc07:
a63e1:
goto C7e72;
E63c2:
$c513c = $this->config();
goto B9b71;
A8e46:
C4b12:
goto c5065;
dba3b:
$D27f1++;
goto C145a;
e069e:
$f5425 = $f2a49 * $Ea153;
goto ca9d5;
e5e7f:
$bf395 = $E88d3["item_category4"];
goto C2aa5;
fc451:
E87bb:
goto ede86;
f5a3b:
goto fcbe7;
goto e1fd9;
b3550:
foreach ($c6d1a as $F54aa => $f5425) {
$d787b .= "\xa" . strtoupper($F54aa) . " ----> " . $f5425["post_result"] . "\xa" . $f5425["message"] . "\xa";
E7239:
}
goto d7d47;
B262f:
if (!($D27f1 < $a99b8)) {
goto ea6f3;
}
goto e8366;
Af73b:
a8d57:
goto B268a;
eabd4:
$cd974 = true;
goto cea4e;
C9cd3:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto d4342;
}
goto Fa3a2;
eebd7:
$a78f5 = '';
goto f2b0c;
Ad37d:
return $Ed7a1;
goto Ac14c;
ac4fc:
$cb6e9 = ["value" => $f5425, "currency" => $c513c["currency"], "contents" => $Ec46e];
goto fc451;
e89cf:
if (!$cd974) {
goto a22f9;
}
goto c8be6;
a0a41:
D8d25:
goto B1bcb;
ca9d5:
$c922b = $this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax"));
goto a59bd;
B787d:
$a6669 = [];
goto A4d24;
Acbfc:
$Af6d1["eventdata"]["data"]["total"] = number_format((float) $Adddc, 2, , '');
goto D431f;
B018f:
$b748b = ["client_deduplication_id" => $e7e18, "event_id" => $e7e18, "price" => $f2a49, "currency" => $c513c["currency"], "item_ids" => $ecc30, "number_items" => $Ea153, "brands" => $F2554, "item_category" => isset($be627) ? $be627 : '', "description" => "Item Added to Cart"];
goto b2f01;
c9174:
$c6d1a[$Ccad7] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $D9ecc];
goto f83ba;
f61fb:
$this->sendinbluePost($Af6d1, "trackEvent");
goto be1d8;
A4493:
$E02ed[] = ["id" => $ecc30, "quantity" => $Ea153];
goto Af54d;
Db090:
$F388e = $Adddc - $b726f;
goto ec9a5;
a9f2c:
bf8ca:
goto D9762;
Da93a:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f2a49, "items" => $B1d02];
goto a58bb;
b5282:
foreach ($B1d02 as $E4ccf) {
$b6280[] = ["id" => $E4ccf["item_id"], "name" => $E4ccf["item_name"], "quantity" => $E4ccf["quantity"], "price" => $E4ccf["price"], "url" => str_replace("&", "&", $this->url->link("product/product", "product_id=" . $e9d1b))];
d24e0:
}
goto Baa2d;
cea4e:
F141d:
goto a2d5b;
f3655:
ef016:
goto ff75b;
ec9a5:
if (!$d4bfa) {
goto b727c;
}
goto d130a;
D431f:
$Af6d1["eventdata"]["data"]["url"] = str_replace("&", "&", $this->url->link("checkout/checkout", '', "SSL"));
goto B46d6;
Df8a0:
if (!$cd974) {
goto a63e1;
}
goto b8379;
a2d5b:
$c513c["event_id"] = $e7e18;
goto Ef7e7;
Fe764:
$B4f19["sku"] = $B4f19["model"];
goto f3655;
b8379:
$Ccad7 = "Meta Facebook";
goto b2c0f;
A8af0:
if (!(isset($c6d1a) && $this->check_array($c6d1a))) {
goto Ca413;
}
goto b3550;
Adf05:
d4342:
goto d65e2;
Fcc41:
if (!(isset($aaedc["pixel_user_data"]) && $aaedc)) {
goto D8d25;
}
goto B63c4;
F4366:
$D9ecc = $Ccad7 . " / Result: Success data sent";
goto C9cd3;
C7e72:
d9d01:
goto C6413;
D1988:
$a688c = 0;
goto ef787;
dd5ea:
e14ac:
goto f740c;
Caef5:
$Af6d1["eventdata"]["data"]["total_before_tax"] = number_format((float) $b726f, 2, , '');
goto b9a17;
de216:
if (!$cd974) {
goto bf8ca;
}
goto f36a8;
C1865:
d0e7b:
goto dba3b;
da86c:
$be627 = $E88d3["item_list_name"];
goto cb10c;
Afca8:
$cd974 = false;
goto B0511;
A4fea:
goto ac64b;
goto b554b;
b2c0f:
$D9ecc = $Ccad7 . " / Result: Success data sent";
goto Ca9fe;
d9169:
$E88d3 = $this->getProductCatName($e9d1b);
goto Efd56;
a19b3:
$E06bd = number_format((float) $this->currency->format($f2a49, $c513c["tiktok_alt_currency"], 0, false), 2, , '');
goto B0082;
Baa2d:
Fe9c9:
goto F8692;
c4e15:
B6c8f:
goto Eb0af;
Ef144:
goto Bd9c5;
goto A23db;
C9957:
if (!$c513c["bing_status"]) {
goto B6c8f;
}
goto A4189;
Bfa5a:
$f5425 = $this->currency->format($this->tax->calculate($f5425, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto D33c4;
c7dac:
$c6d1a[$Ccad7] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $D9ecc];
goto bdc07;
c9eb0:
$cec2f = 0;
goto e5256;
E836d:
$b249b = $E88d3["item_list_id"];
goto da86c;
f36a8:
$Ccad7 = "Tiktok";
goto B71e0;
f83ba:
B0b3c:
goto D1679;
ae1e3:
Eb406:
goto d3bf6;
Eda53:
if (!(isset($c513c["sendinblue_status"]) && $c513c["sendinblue_status"])) {
goto db692;
}
goto df3b9;
b99e9:
$Af6d1["eventdata"]["data"]["subtotal"] = number_format((float) $b726f, 2, , '');
goto f021a;
ee14c:
f99da:
goto B1090;
Ca9fe:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto E2ddd;
}
goto Cf650;
B9b71:
$b175e = [];
goto bd512;
e1fd9:
cf1ea:
goto D5f9a;
D0fa1:
Edda0:
goto Ba958;
D8813:
if (!(isset($c513c["debug_api"]) && $c513c["debug_api"])) {
goto F141d;
}
goto eabd4;
f4f6f:
$f5425 = number_format((float) $f5425, 2, , '');
goto A8052;
F1f6c:
$Ed7a1 = ["error" => "false", "action" => "addToCart", "data" => $Bbec2, "fb_data" => $C7054, "tiktok" => $b175e, "twitter_event" => $c1649, "twitter_data" => $cb6e9, "bing_data" => $d5ede, "pinterest_data" => $Edc97, "snapchat" => $b748b, "user_data" => $aaedc, "event_id" => $e7e18];
goto Ad37d;
B9779:
if (!$c513c["tiktok_status"]) {
goto fd489;
}
goto a9513;
bf93f:
db6f0:
goto c770c;
E2020:
goto Bf92c;
goto D0fa1;
d5375:
$ce100 = $this->currency->format($ce100, $this->session->data["currency"], 0, false);
goto B30f7;
e8366:
if (is_array($a17f7[$de779[$D27f1]])) {
goto cf1ea;
}
goto F5ead;
Fe819:
$f2a49 = $B4f19["special"];
goto A5f3d;
B0082:
$A881c = $c513c["tiktok_alt_currency"];
goto ae1e3;
dfb31:
$F9b77 = [];
goto Df34e;
Afd41:
$Aefb2 = [];
goto ab80e;
D33c4:
$c2fce = $this->currency->format($c922b, $this->session->data["currency"], 0, false);
goto F21b9;
Fc15b:
$f570e = 0;
goto cc271;
E9571:
$C85f9 = $aaedc["snapchat_user_data"];
goto ee14c;
Cde22:
$F388e = $Adddc - $b726f;
goto b628d;
db438:
$c922b = $f2a49;
goto A8e46;
C145a:
goto Ac0e7;
goto f7ec2;
ca53c:
$c1649 = $c513c["twitter_addcart"];
goto D9370;
Ef7e7:
if (!(isset($a17f7) && isset($f2bcc))) {
goto a8d57;
}
goto B740e;
B740e:
$c97c7 = $this->getOptionPrice($e9d1b, $a17f7, $B4f19["price"], $Ea153);
goto aaf60;
aaf60:
$B4f19["price"] = $B4f19["price"] + $c97c7;
goto e99fb;
ef787:
$b0845 = 0;
goto Ec560;
ff34d:
$f2de0 = $this->snapchatAPI($c513c, "ADD_CART", $E1d8b, $C85f9, $e7e18);
goto C9a44;
Ca491:
$c1649 = 0;
goto C4ba6;
Ec560:
$f2a49 = 0;
goto a6e40;
Ac14c:
}
public function prepareRemoveCart($e9d1b, $B4f19, $Ea153)
{
goto c8bfc;
d3733:
$f5425 = 0;
goto Ff7cb;
Db729:
E2846:
goto fe1ff;
c3e92:
$fe36c = $E88d3["item_category3"];
goto b290d;
Fb97e:
$cda6c = $E88d3["item_category5"];
goto Db729;
Ab602:
a3f7b:
goto d75bf;
f19ee:
$c2fce = $this->currency->format($c922b, $this->session->data["currency"], 0, false);
goto Fdae3;
de142:
return $Ed7a1;
goto d05bb;
D8000:
$Ff056 = 0;
goto df9d9;
B1a78:
if (!isset($E88d3)) {
goto E2846;
}
goto f1a57;
A0c6f:
$f5425 = $this->currency->format($this->tax->calculate($f5425, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto f19ee;
Fae85:
$c922b = $f2a49;
goto B131d;
a55c4:
$Bbec2 = ["name" => $fda0d, "id" => $ecc30, "price" => $f5425, "value" => $f5425, "brand" => $F2554, "category" => isset($Ea555) ? $Ea555 : '', "quantity" => $Ea153, "currency" => $c513c["currency"], "pixel_value" => $C98e9, "fcurrency" => $A9f49, "ga" => $A8ce3, "event_id" => $e7e18];
goto c4904;
E1890:
$C98e9 = number_format((float) $c2fce, 2, , '');
goto c4b48;
E554d:
$f2a49 = 0;
goto d3733;
Def6c:
$B4f19["price"] = $B4f19["price"] + $c97c7;
goto Ff45d;
c0953:
return false;
goto Ab602;
Fe88e:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f2a49, "items" => $B1d02];
goto a55c4;
Bc739:
$f2a49 = $this->currency->format($dd0ad, $this->session->data["currency"], 0, false);
goto a0392;
f1a57:
$Ea555 = $E88d3["category"];
goto f14c6;
f3695:
$f570e = 0;
goto D8000;
B131d:
Cf72f:
goto ebb4a;
Ff45d:
$f2a49 = $B4f19["price"];
goto f341f;
D56de:
$F0b8f = $this->check_array($B4f19);
goto f3695;
E0952:
$ecc30 = $this->tagmangerPmap($B4f19["model"], $B4f19["sku"], $B4f19["product_id"]);
goto b0750;
Aa5be:
$dd0ad = $b0845;
goto Bc739;
d4a5f:
$B1d02[] = ["item_id" => $ecc30, "item_name" => $fda0d, "item_brand" => $F2554, "item_list_name" => isset($be627) ? $be627 : '', "item_list_id" => isset($b249b) ? $b249b : '', "item_category" => isset($C7834) ? $C7834 : '', "item_category2" => isset($C0d0c) ? $C0d0c : '', "item_category3" => isset($fe36c) ? $fe36c : '', "item_category4" => isset($bf395) ? $bf395 : '', "item_category5" => isset($cda6c) ? $cda6c : '', "item_variant" => '', "affiliation" => '', "discount" => 0, "coupon" => '', "price" => $f2a49, "currency" => $c513c["currency"], "quantity" => $Ea153];
goto Fe88e;
d75bf:
$c97c7 = $this->getOptionPrice($e9d1b, $B4f19["option"], $B4f19["price"], $Ea153);
goto Def6c;
ad70b:
$b0845 = 0;
goto E554d;
f341f:
$f5425 = $f2a49 * $Ea153;
goto C69f8;
df9d9:
$a688c = 0;
goto ad70b;
a6630:
$C7834 = $E88d3["item_category"];
goto baa98;
f14c6:
$b249b = $E88d3["item_list_id"];
goto E3d72;
F4487:
if (!(isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"])) {
goto Cf72f;
}
goto Fae85;
F99aa:
if ($F0b8f) {
goto a3f7b;
}
goto c0953;
b05f1:
$f5425 = number_format((float) $f5425, 2, , '');
goto E1890;
E8ff1:
if (!($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"])) {
goto a1b18;
}
goto fc5c4;
b9170:
$B4f19["sku"] = $B4f19["model"];
goto C3e06;
a0392:
$f570e = $dd0ad * $Ea153;
goto C013b;
ebb4a:
$f2a49 = $this->currency->format($this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto A0c6f;
b3b4a:
$E88d3 = $this->getProductCatName($e9d1b);
goto B1a78;
f363e:
$A9f49 = $c513c["alt_currency"];
goto a1010;
F3ad2:
$f2a49 = number_format((float) $f2a49, 2, , '');
goto b05f1;
Fdae3:
$A9f49 = $c513c["currency"];
goto E8ff1;
Ff7cb:
$c97c7 = 0;
goto ecbe8;
b0750:
$F2554 = $this->getProductBrandName($B4f19["product_id"]);
goto b3b4a;
baa98:
$C0d0c = $E88d3["item_category2"];
goto c3e92;
b0147:
$Ff056 = $this->currency->format($f570e, $c513c["alt_currency"], 0, false);
goto d593b;
c8bfc:
$c513c = $this->config();
goto ca92c;
b290d:
$bf395 = $E88d3["item_category4"];
goto Fb97e;
E3d72:
$be627 = $E88d3["item_list_name"];
goto a6630;
ecbe8:
$c6d1a = [];
goto F99aa;
c4b48:
$b0845 = $this->tax->calculate($B4f19["price"], $B4f19["tax_class_id"], $this->config->get("config_tax"));
goto Aa5be;
C013b:
$f570e = $this->currency->format($f570e, $this->session->data["currency"], 0, false);
goto b0147;
c4904:
$Ed7a1 = ["error" => "false", "action" => "RemoveCart", "data" => $Bbec2];
goto de142;
ca92c:
$e7e18 = "10-" . $this->eventid();
goto D56de;
C3e06:
Dabab:
goto E0952;
C69f8:
$c922b = $this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax"));
goto F4487;
a1010:
a1b18:
goto F3ad2;
d593b:
if (isset($B4f19["sku"])) {
goto Dabab;
}
goto b9170;
fe1ff:
$fda0d = $this->tagmangerPtitle($B4f19["name"], $F2554, $B4f19["model"], $B4f19["product_id"]);
goto d4a5f;
fc5c4:
$c2fce = $this->currency->format($c922b, $c513c["alt_currency"], 0, false);
goto f363e;
d05bb:
}
public function prepareAddtoWishlist($e9d1b, $B4f19)
{
goto c1e5b;
Bdb9f:
$B1d02[] = ["item_id" => $ecc30, "item_name" => $fda0d, "item_brand" => $F2554, "item_list_name" => isset($be627) ? $be627 : '', "item_list_id" => isset($b249b) ? $b249b : '', "item_category" => isset($C7834) ? $C7834 : '', "item_category2" => isset($C0d0c) ? $C0d0c : '', "item_category3" => isset($fe36c) ? $fe36c : '', "item_category4" => isset($bf395) ? $bf395 : '', "item_category5" => isset($cda6c) ? $cda6c : '', "item_variant" => '', "affiliation" => '', "discount" => 0, "coupon" => '', "price" => $f2a49, "currency" => $c513c["currency"], "quantity" => 1];
goto D8159;
Bb137:
$Aefb2 = $aaedc["pixel_user_data"];
goto dada8;
Cc7a5:
$E06bd = number_format((float) $this->currency->format($f2a49, $c513c["tiktok_alt_currency"], 0, false), 2, , '');
goto e46bc;
dc014:
$f2a49 = $B4f19["special"];
goto E9dca;
D3366:
$be627 = $E88d3["item_list_name"];
goto b8c40;
Ffa58:
$a688c = 0;
goto d2958;
f371b:
$c1649 = 0;
goto ab832;
aeefa:
$c2fce = $this->currency->format($c922b, $c513c["alt_currency"], 0, false);
goto C6b70;
edb24:
$b175e = ["contents" => $C6970, "content_type" => "product", "currency" => $A881c, "value" => $E06bd, "description" => $fda0d];
goto Cd83f;
Cf603:
$c1649 = $c513c["twitter_addwishlist"];
goto c5612;
ab832:
$cb6e9 = [];
goto F4a87;
a3738:
$f5425 = number_format((float) $f5425, 2, , '');
goto Ae0b0;
A4e26:
$ecc30 = $this->tagmangerPmap($B4f19["model"], $B4f19["sku"], $B4f19["product_id"]);
goto Da024;
b0927:
if (!$c513c["pixel"]) {
goto Dbea6;
}
goto a5c2c;
c0c3a:
$C85f9 = [];
goto c42c4;
e46bc:
$A881c = $c513c["tiktok_alt_currency"];
goto d5546;
c6218:
$Ff056 = 0;
goto Ffa58;
e628a:
$C0d0c = $E88d3["item_category2"];
goto Cf7fd;
bf7ae:
$C670a = $this->gtm->tiktokAPI($c513c, "AddToWishlist", $b175e, $F9b77);
goto a809f;
b8c40:
$C7834 = $E88d3["item_category"];
goto e628a;
D2988:
if (isset($B4f19["sku"])) {
goto ed50a;
}
goto e2598;
Aae7e:
$A881c = $c513c["currency"];
goto D8f08;
Ffc63:
$C670a = $this->gtm->facebookAPI($c513c, "AddToWishlist", $B19ca, $Aefb2, $e7e18);
goto D0741;
dada8:
ec856:
goto beb85;
F4a87:
$Ec46e = [];
goto D6ebc;
F47b3:
$E1d8b = ["content_category" => isset($be627) ? $be627 : '', "currency" => $c513c["currency"], "content_ids" => $ecc30, "value" => $f2a49, "brands" => $F2554, "num_items" => 1];
goto Ac22d;
c3a4d:
$c922b = $f2a49;
goto a663c;
ac370:
$f2a49 = $B4f19["price"];
goto D16ae;
d2958:
$b0845 = 0;
goto a8fc8;
F0531:
$Ec46e = ["content_id" => (string) $ecc30, "content_type" => "product", "content_name" => $fda0d, "num_items" => 1, "content_price" => $f2a49, "content_group_id" => ''];
goto B333c;
Cd83f:
if (!(isset($aaedc["tiktok_user_data"]) && $aaedc)) {
goto fead1;
}
goto C4041;
C9349:
B17cc:
goto Cf603;
Cc8af:
$Ed7a1 = ["error" => "false", "action" => "addToWishlist", "data" => $Bbec2, "twitter_event" => $c1649, "twitter_data" => $cb6e9, "snapchat" => $b748b, "tiktok" => $b175e, "fb_data" => $C7054, "event_id" => $e7e18];
goto b189f;
aa7d0:
ae01f:
goto e903a;
e2598:
$B4f19["sku"] = $B4f19["model"];
goto Ff3c6;
E1d95:
C19b4:
goto Fcd3a;
Ac22d:
if (!(isset($aaedc["snapchat_user_data"]) && $aaedc)) {
goto e4ec5;
}
goto C70ae;
Fcd3a:
$fda0d = $this->tagmangerPtitle($B4f19["name"], $F2554, $B4f19["model"], $B4f19["product_id"]);
goto Bdb9f;
Bd392:
e4ec5:
goto C6f4b;
a5c2c:
$C7054 = ["content_ids" => $ecc30, "content_type" => "product", "value" => $C98e9, "currency" => $A9f49, "product_catalog_id" => $c513c["fb_catalog_id"]];
goto A95ea;
A0632:
$aaedc = $this->formatUserdata($c513c);
goto Ff04f;
c1e5b:
$c513c = $this->config();
goto A050d;
Cbfd9:
$c922b = $this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax"));
goto Ac8b9;
E0247:
$E88d3 = $this->getProductCatName($e9d1b);
goto Fed2d;
c7e98:
return false;
goto a4a3f;
D6083:
$Bbec2 = ["name" => $fda0d, "id" => $ecc30, "price" => $f2a49, "value" => $f5425, "brand" => $F2554, "quantity" => 1, "category" => isset($Ea555) ? $Ea555 : '', "currency" => $c513c["currency"], "pixel_value" => $C98e9, "fcurrency" => $A9f49, "ga" => $A8ce3, "event_id" => $e7e18];
goto b0927;
A050d:
$e7e18 = "4-" . $this->eventid();
goto cb98f;
a809f:
a8573:
goto A6449;
Ff3c6:
ed50a:
goto A4e26;
B333c:
$cb6e9 = ["value" => $f5425, "currency" => $c513c["currency"], "contents" => $Ec46e];
goto E7985;
cb98f:
$F0b8f = $this->check_array($B4f19);
goto f371b;
Baa57:
$b748b = ["client_deduplication_id" => $e7e18, "event_id" => $e7e18, "price" => $f2a49, "currency" => $c513c["currency"], "item_ids" => $ecc30, "number_items" => 1, "brands" => $F2554, "item_category" => isset($be627) ? $be627 : '', "description" => "Item added to wishlist"];
goto F47b3;
D0741:
B2a33:
goto f5463;
d9ef1:
fead1:
goto bf7ae;
A7334:
$C670a = $this->gtm->snapchatAPI($c513c, "ADD_TO_WISHLIST", $E1d8b, $C85f9, $e7e18);
goto C0697;
a663c:
Aaf1e:
goto Da8b2;
Ea6b4:
goto D7341;
goto C9349;
Fed2d:
if (!isset($E88d3)) {
goto C19b4;
}
goto Df084;
Da8b2:
$f2a49 = $this->currency->format($this->tax->calculate($f2a49, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto E94f4;
E9dca:
a66ff:
goto a2129;
a2129:
$f5425 = $f2a49;
goto Cbfd9;
c42c4:
$C7054 = false;
goto A0580;
Fa1bc:
$b175e = [];
goto c0c3a;
D8159:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f2a49, "items" => $B1d02];
goto E1478;
D8f08:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto E4587;
}
goto Cc7a5;
b6897:
$b748b = [];
goto F7575;
f5463:
Dbea6:
goto Cc8af;
F7575:
$E1d8b = [];
goto Fa1bc;
F6f34:
$Aefb2 = [];
goto D3937;
b189f:
return $Ed7a1;
goto Ecf87;
a19ea:
if (isset($c513c["twitter_addwishlist"]) && !empty($c513c["twitter_addwishlist"])) {
goto B17cc;
}
goto Aeba2;
A6449:
if (!$c513c["snap_pixel_status"]) {
goto ae01f;
}
goto Baa57;
a075b:
$bf395 = $E88d3["item_category4"];
goto d0d14;
E10ca:
$b249b = $E88d3["item_list_id"];
goto D3366;
C70ae:
$C85f9 = $aaedc["snapchat_user_data"];
goto Bd392;
b7a33:
$f2a49 = number_format((float) $f2a49, 2, , '');
goto a3738;
Ce465:
$C6970[] = ["content_category" => isset($be627) ? $be627 : '', "content_name" => $fda0d, "price" => $E06bd, "content_id" => $ecc30, "quantity" => 1, "brand" => $F2554, "currency" => $A881c, "value" => $E06bd, "description" => $fda0d, "content_type" => "product"];
goto edb24;
D16ae:
if (!(float) $B4f19["special"]) {
goto a66ff;
}
goto dc014;
Cf7fd:
$fe36c = $E88d3["item_category3"];
goto a075b;
C6b70:
$A9f49 = $c513c["alt_currency"];
goto a9aa8;
D3937:
$C6970 = [];
goto Fe942;
a9aa8:
B320e:
goto b7a33;
c5612:
D7341:
goto F0531;
a4fc2:
$f5425 = 0;
goto B7aaf;
A0580:
$c6d1a = [];
goto ddc95;
d5546:
E4587:
goto Ce465;
a8fc8:
$f2a49 = 0;
goto a4fc2;
C4041:
$F9b77 = $aaedc["tiktok_user_data"];
goto d9ef1;
e903a:
if (!(isset($c513c["twitter_status"]) && $c513c["twitter_status"])) {
goto e9b0a;
}
goto a19ea;
a4a3f:
A49d4:
goto ac370;
F20d3:
$c2fce = $this->currency->format($c922b, $this->session->data["currency"], 0, false);
goto a83fd;
Df084:
$Ea555 = $E88d3["category"];
goto E10ca;
E1478:
if (!$c513c["tiktok_status"]) {
goto a8573;
}
goto F1167;
beb85:
if (!$c513c["fb_api"]) {
goto B2a33;
}
goto D9622;
Da024:
$F2554 = $this->getProductBrandName($B4f19["product_id"]);
goto E0247;
F5bc3:
if (!($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"])) {
goto B320e;
}
goto aeefa;
Fe942:
$F9b77 = [];
goto b6897;
D9622:
$B19ca = $C7054;
goto Ffc63;
Aeba2:
$c1649 = 0;
goto Ea6b4;
Ff04f:
if ($F0b8f) {
goto A49d4;
}
goto c7e98;
C6f4b:
if (!($c513c["snap_pixel_api"] && !empty($c513c["snap_pixel_token"]) && isset($E1d8b))) {
goto D8e40;
}
goto A7334;
F1167:
$E06bd = number_format((float) $this->currency->format($f2a49, $this->session->data["currency"], 0, false), 2, , '');
goto Aae7e;
ddc95:
$c513c["event_id"] = $e7e18;
goto A0632;
a83fd:
$A9f49 = $c513c["currency"];
goto F5bc3;
D6ebc:
$f570e = 0;
goto c6218;
E7985:
e9b0a:
goto D6083;
A95ea:
if (!(isset($aaedc["pixel_user_data"]) && $aaedc)) {
goto ec856;
}
goto Bb137;
d0d14:
$cda6c = $E88d3["item_category5"];
goto E1d95;
Ac8b9:
if (!(isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"])) {
goto Aaf1e;
}
goto c3a4d;
E94f4:
$f5425 = $this->currency->format($this->tax->calculate($f5425, $B4f19["tax_class_id"], $this->config->get("config_tax")), $this->session->data["currency"], 0, false);
goto F20d3;
B7aaf:
$c97c7 = 0;
goto F6f34;
Ae0b0:
$C98e9 = number_format((float) $c2fce, 2, , '');
goto D2988;
C0697:
D8e40:
goto aa7d0;
Ecf87:
}
public function prepareCart()
{
goto A9c9c;
e8f06:
$c36f9 = ["event" => "CART_VIEW", "eventAction" => "CART_VIEW", "eventLabel" => "CART_VIEW", "ga" => $A8ce3, "content_name" => "View Cart", "content_category" => "Checkout", "content_ids" => $E8e9c, "content_type" => "product", "contents" => $Db528["fb_contents"], "number_items" => $Db528["fb_items"], "pixel_value" => number_format((float) $c2fce, 2, , ''), "fb_currency" => $A9f49, "remarketing_ids" => $c1aca, "currency" => $c513c["currency"], "value" => $f5425, "event_id" => $e7e18];
goto a2b03;
F95eb:
$b175e = ["contents" => $Db528["tiktok_items"], "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $Db528["tiktok_value"], 2, , ''), "description" => "View Cart"];
goto d5a73;
a6b99:
$A881c = $c513c["tiktok_alt_currency"];
goto bcfdc;
Ac130:
$c513c = $this->config();
goto D4e4b;
Be10e:
$Af6d1["eventdata"]["data"]["subtotal"] = number_format((float) $b726f, 2, , '');
goto ad6fd;
D5e52:
E399f:
goto a6c02;
d0853:
$E1d8b = ["currency" => $c513c["currency"], "content_ids" => $E8e9c, "value" => $f5425, "num_items" => $Db528["fb_items"]];
goto a5a95;
E733f:
$E1d8b["search_string"] = $A2d05;
goto F6b6f;
C008f:
$b748b = ["price" => $f5425, "currency" => $c513c["currency"], "item_ids" => $E8e9c, "number_items" => $Db528["fb_items"]];
goto d0853;
fb4f5:
$b726f = $this->cart->getSubTotal();
goto C44ad;
f9350:
$Db528 = $this->model_extension_module_dmt->getCartProducts();
goto E321b;
de4c5:
$Ceefe = ["error" => "true"];
goto C1395;
c70a7:
fa40f:
goto B4103;
D9d39:
$Edc97 = false;
goto E5763;
aa6b2:
if (!$c513c["pixel"]) {
goto fa40f;
}
goto f2611;
acbb2:
$A9f49 = $c513c["currency"];
goto D66a6;
a5a95:
if (!(isset($A2d05) && !empty($A2d05))) {
goto A22e4;
}
goto E733f;
B6a38:
$F388e = $Adddc - $b726f;
goto C01e9;
d736f:
$A9f49 = $c513c["alt_currency"];
goto A4952;
bdef9:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto B7b46;
}
goto a6b99;
A53a6:
$Af6d1["eventdata"]["data"]["discount"] = 0;
goto B972d;
c28af:
$b726f = $b726f / $Ddb25;
goto B6a38;
bdd6b:
$b8f3a = $Db528["matomo_items"];
goto ad86d;
B4103:
if (!(isset($c513c["sendinblue_status"]) && $c513c["sendinblue_status"])) {
goto A468c;
}
goto fe4f5;
d21a9:
$c2fce = $f5425;
goto acbb2;
f0318:
$F388e = $Adddc - $b726f;
goto B4067;
F72d5:
$C7054 = false;
goto e3a08;
Eee0b:
C6b7f:
goto B3f90;
Ab4f6:
if (!$c513c["tiktok_status"]) {
goto Bb989;
}
goto d09ff;
fe4f5:
$Af6d1 = ["email" => $c513c["email"], "event" => "view_cart", "cuid" => $this->getCuid(), "properties" => ["FIRSTNAME" => $c513c["fn"], "LASTNAME" => $c513c["ln"]], "eventdata" => ["id" => $this->GUID(), "data" => []]];
goto fb4f5;
Eb08c:
$c1aca = $Db528["remarketing_ids"];
goto c87e6;
a1a74:
$E8e9c = $Db528["ecom_prodid"];
goto Eb08c;
C1395:
return $Ceefe;
goto D5e52;
D4588:
b02b2:
goto aa5fe;
C44ad:
$Adddc = $this->cart->getTotal();
goto f0318;
E5763:
$d4bfa = $c513c["override_tax"];
goto Ce7d6;
B3f90:
if (!$c513c["pinterest_status"]) {
goto b02b2;
}
goto E6163;
a2b03:
if (!$c513c["cj_status"]) {
goto Da2bf;
}
goto e5411;
D66a6:
goto D41ba;
goto E03e1;
E1399:
A22e4:
goto f0afe;
ad6fd:
$Af6d1["eventdata"]["data"]["shipping"] = 0;
goto Aba80;
a36c1:
aac4b:
goto f0c1b;
f0c1b:
$Ed7a1 = ["error" => "false", "page_type" => "cart", "datalayer" => $c36f9, "fb_data" => $C7054, "sendinblue" => $Af6d1, "tiktok" => $b175e, "matomo" => $B5b4e, "snapchat" => $b748b, "snapchat_api" => $E1d8b, "items" => $Db528["ga4_items"], "bing_data" => $d5ede, "pinterest_data" => $Edc97];
goto df96d;
F6329:
$Af6d1["eventdata"]["data"]["url"] = str_replace("&", "&", $this->url->link("checkout/checkout", '', "SSL"));
goto C51dd;
ac049:
if (!$c513c["bing_status"]) {
goto C6b7f;
}
goto faa60;
df96d:
return $Ed7a1;
goto c2421;
F6b6f:
$b748b["search_string"] = $A2d05;
goto E1399;
e5f82:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto C49b4;
B4067:
if (!$d4bfa) {
goto Ddd6f;
}
goto c28af;
A9c9c:
$this->load->model("extension/module/dmt");
goto f9350;
Ce7d6:
$Ddb25 = $c513c["tax"];
goto a1a74;
ad86d:
$A8ce3 = [];
goto Ab4f6;
aa5fe:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "items" => $Db528["ga4_items"]];
goto e8f06;
d09ff:
$A881c = $c513c["currency"];
goto bdef9;
f588d:
$E1d8b = false;
goto c29fe;
aae89:
$c2fce = $Db528["ftotal"];
goto d736f;
a6c02:
$b175e = false;
goto F72d5;
C51dd:
$Af6d1["eventdata"]["data"]["currency"] = $c513c["currency"];
goto ae4ba;
A4952:
D41ba:
goto d7432;
bcfdc:
B7b46:
goto F95eb;
b520d:
$Af6d1["eventdata"]["data"]["tax"] = number_format((float) $F388e, 2, , '');
goto A53a6;
e5b6a:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto Fc525;
}
goto e5f82;
D4e4b:
$Ceefe = [];
goto B1443;
E3477:
if ($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"]) {
goto c46be;
}
goto d21a9;
C01e9:
Ddd6f:
goto Be10e;
C49b4:
Fc525:
goto c70a7;
B1443:
if (isset($Db528["ga4_items"])) {
goto E399f;
}
goto de4c5;
d5a73:
Bb989:
goto E3477;
dbf42:
if (!$c513c["matomo_status"]) {
goto aac4b;
}
goto A931a;
E134b:
$b748b = false;
goto f588d;
E03e1:
c46be:
goto aae89;
f0afe:
fe948:
goto ac049;
d7432:
if (!$c513c["snap_pixel_status"]) {
goto fe948;
}
goto C008f;
E321b:
$e7e18 = "12-" . $this->eventid();
goto Ac130;
ae4ba:
$Af6d1["eventdata"]["data"]["products"] = isset($Db528["sendinblue_products"]) ? $Db528["sendinblue_products"] : [];
goto D43d5;
c29fe:
$d5ede = false;
goto D9d39;
D43d5:
A468c:
goto dbf42;
e5411:
$c36f9["cj_page"] = "cart";
goto d1e8b;
e3a08:
$Af6d1 = false;
goto E134b;
Aba80:
$Af6d1["eventdata"]["data"]["total_before_tax"] = number_format((float) $b726f, 2, , '');
goto b520d;
d1e8b:
Da2bf:
goto aa6b2;
c87e6:
$f5425 = number_format((float) $Db528["ecom_totalvalue"], 2, , '');
goto Ab19e;
E6163:
$Edc97 = ["event_id" => $e7e18, "value" => $f5425, "order_quantity" => $Db528["fb_items"], "currency" => $c513c["currency"], "line_items" => $Db528["pinterest_items"]];
goto D4588;
B972d:
$Af6d1["eventdata"]["data"]["total"] = number_format((float) $Adddc, 2, , '');
goto F6329;
faa60:
$d5ede = ["ecomm_prodid" => $E8e9c, "ecomm_pagetype" => "cart", "ecomm_totalvalue" => $f5425, "revenue_value" => $f5425, "currency" => $c513c["currency"], "items" => $Db528["bing_items"]];
goto Eee0b;
f2611:
$C7054 = ["contents" => isset($Db528["fb_contents"]) ? $Db528["fb_contents"] : false, "content_type" => "product", "value" => number_format((float) $c2fce, 2, , ''), "currency" => $A9f49, "content_ids" => $E8e9c];
goto e5b6a;
A931a:
$B5b4e = ["items" => $b8f3a, "total" => $f5425];
goto a36c1;
Ab19e:
$B5b4e = '';
goto bdd6b;
c2421:
}
public function prepareCheckout($Ea0d3 = null)
{
goto dbc2b;
fda83:
$A9f49 = $c513c["currency"];
goto Bbbbb;
af81c:
$c1649 = 0;
goto d6ceb;
aa41f:
$Af6d1["eventdata"]["data"]["discount"] = 0;
goto E9096;
E84b5:
a4077:
goto D1622;
B9509:
$b175e = false;
goto fba1a;
a547b:
return $Ed7a1;
goto A0e4d;
Db4c0:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto A6847;
}
goto a2e5f;
D4a3d:
$Af6d1["eventdata"]["data"]["total_before_tax"] = number_format((float) $b726f, 2, , '');
goto ffa0e;
bcbca:
if (!(isset($c513c["sendinblue_status"]) && $c513c["sendinblue_status"])) {
goto f18b9;
}
goto ffc17;
eb8d2:
unset($this->session->data["ga4_payment_sent"]);
goto Dd0b8;
C233b:
$Ceefe = ["error" => "true"];
goto A97bc;
a2e5f:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto B6139;
Dfba4:
a8a44:
goto cad29;
F102f:
c772a:
goto bcbca;
d51cf:
if (!isset($this->session->data["ga4_shipping_method"])) {
goto A2a4f;
}
goto E5782;
f6da9:
if (!$d4bfa) {
goto a4077;
}
goto d463e;
d0f6a:
$c2fce = number_format((float) $Db528["ftotal"], 2, , '');
goto e01c3;
B6139:
A6847:
goto C31bf;
a1edd:
$f5425 = number_format((float) $Db528["ecom_totalvalue"], 2, , '');
goto Ab4b1;
eb12f:
$b726f = $this->cart->getSubTotal();
goto c2f18;
E3fcd:
if (!$c513c["snap_pixel_status"]) {
goto c772a;
}
goto f00c8;
a51b0:
$c36f9 = ["event" => "initiateCheckout", "eventAction" => "initiateCheckout", "eventLabel" => "Checkout Initiated", "content_name" => "Checkout", "content_category" => "Checkout", "ga" => $A8ce3, "content_ids" => $Db528["ecom_prodid"], "contents" => $Db528["fb_contents"], "number_items" => $Db528["fb_items"], "content_type" => "product", "pixel_value" => $c2fce, "fb_currency" => $A9f49, "remarketing_ids" => $Db528["remarketing_ids"], "currency" => $c513c["currency"], "value" => $f5425, "event_id" => $e7e18];
goto F91be;
C95e6:
$Af6d1["eventdata"]["data"]["url"] = str_replace("&", "&", $this->url->link("checkout/checkout", '', "SSL"));
goto C5b53;
D377d:
$Edc97 = ["event_id" => $e7e18, "value" => $f5425, "order_quantity" => $Db528["fb_items"], "currency" => $c513c["currency"], "line_items" => $Db528["pinterest_items"]];
goto a473e;
B5870:
$Db528 = $this->model_extension_module_dmt->getCartProducts();
goto Bdc61;
fbe75:
$c1649 = $c513c["twitter_checkout"];
goto C4efc;
e0e64:
if (isset($Ea0d3)) {
goto b04f4;
}
goto cea6d;
a746a:
if (!$c513c["bing_status"]) {
goto Cd841;
}
goto E79b1;
fe33f:
if (!isset($this->session->data["ga4_payment_sent"])) {
goto D7de6;
}
goto eb8d2;
b4191:
$Af6d1["eventdata"]["data"]["shipping"] = 0;
goto D4a3d;
A9f29:
F0e76:
goto Eebc5;
Ba0bd:
$C7054 = false;
goto Cc1b0;
C5b53:
$Af6d1["eventdata"]["data"]["currency"] = $c513c["currency"];
goto a87ca;
dbc2b:
$c513c = $this->config();
goto F663b;
Bbbbb:
if (!($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"])) {
goto a8232;
}
goto d0f6a;
cad29:
$b175e = ["contents" => $Db528["tiktok_items"], "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $Db528["tiktok_value"], 2, , ''), "description" => "Initiate Checkout"];
goto F3527;
C31bf:
E87dc:
goto fe634;
B4ed0:
if (!$c513c["pinterest_status"]) {
goto b1a74;
}
goto D377d;
faf45:
A2a4f:
goto Dfcf4;
D1622:
$Af6d1["eventdata"]["data"]["subtotal"] = number_format((float) $b726f, 2, , '');
goto b4191;
d6ceb:
$cb6e9 = false;
goto Ba0bd;
Bf514:
$Ddb25 = $c513c["tax"];
goto F410a;
Aee52:
f1e93:
goto d51cf;
fba1a:
$B5b4e = false;
goto a4257;
A92bb:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto a8a44;
}
goto cbc09;
Efb9b:
if (!$c513c["pixel"]) {
goto E87dc;
}
goto ca538;
F3527:
e88f8:
goto a746a;
E79b1:
$d5ede = ["ecomm_prodid" => $Db528["ecom_prodid"], "ecomm_pagetype" => "cart", "ecomm_totalvalue" => $f5425, "revenue_value" => $f5425, "currency" => $c513c["currency"], "items" => $Db528["bing_items"]];
goto Fad2d;
E9096:
$Af6d1["eventdata"]["data"]["total"] = number_format((float) $Adddc, 2, , '');
goto C95e6;
A2b2a:
$Ed7a1 = ["error" => "false", "currency" => $c513c["currency"], "datalayer" => $c36f9, "fb_data" => $C7054, "tiktok" => $b175e, "twitter_event" => $c1649, "twitter_data" => $cb6e9, "snapchat" => $b748b, "snapchat_api" => $E1d8b, "matomo" => $B5b4e, "items" => $Db528["ga4_items"], "bing_data" => $d5ede, "pinterest_data" => $Edc97, "sendinblue" => $Af6d1];
goto a547b;
f4c82:
B3b76:
goto Efb9b;
Cab53:
$E1d8b = ["currency" => $c513c["currency"], "content_ids" => $Db528["ecom_prodid"], "value" => $f5425, "num_items" => $Db528["fb_items"]];
goto F102f;
ca538:
$C7054 = ["content_category" => "Checkout", "content_ids" => $Db528["ecom_prodid"], "contents" => $Db528["fb_contents"], "currency" => $A9f49, "num_items" => $Db528["fb_items"], "value" => $c2fce, "content_type" => "product"];
goto Db4c0;
d59b3:
unset($this->session->data["ga4_payment_method"]);
goto d78f5;
E5782:
unset($this->session->data["ga4_shipping_method"]);
goto faf45;
e0097:
$d5ede = false;
goto cbd61;
Dd0b8:
D7de6:
goto A7c47;
cbd61:
$Edc97 = false;
goto B9509;
a473e:
b1a74:
goto a0117;
Ab4b1:
ab9b6:
goto fe33f;
Fad2d:
Cd841:
goto B4ed0;
b1285:
$b748b = false;
goto b606d;
Bdc61:
$e7e18 = "6-" . $this->eventid();
goto af81c;
cbc09:
$A881c = $c513c["tiktok_alt_currency"];
goto Dfba4;
e01c3:
$A9f49 = $c513c["alt_currency"];
goto Ce69d;
A97bc:
return $Ceefe;
goto A9f29;
ffc17:
$Af6d1 = ["email" => $c513c["email"], "event" => "checkout", "cuid" => $this->getCuid(), "properties" => ["FIRSTNAME" => $c513c["fn"], "LASTNAME" => $c513c["ln"]], "eventdata" => ["id" => $this->GUID(), "data" => []]];
goto eb12f;
a0117:
if (!$c513c["twitter_status"]) {
goto aa124;
}
goto c0243;
a4257:
$A8ce3 = false;
goto D1649;
Ae5de:
$B5b4e = ["items" => $Db528["matomo_items"], "total" => $f5425];
goto f4c82;
d463e:
$b726f = $b726f / $Ddb25;
goto Aa962;
cea6d:
$Ea0d3 = ["page" => "checkout", "step" => "1", "mode" => "onecheckout"];
goto e0190;
a87ca:
$b6280 = $Db528["sendinblue_products"];
goto Fbafb;
F91be:
if (!$c513c["matomo_status"]) {
goto B3b76;
}
goto Ae5de;
c2f18:
$Adddc = $this->cart->getTotal();
goto cd4e2;
D1649:
$f5425 = 0.0;
goto F08aa;
ffa0e:
$Af6d1["eventdata"]["data"]["tax"] = number_format((float) $F388e, 2, , '');
goto aa41f;
Cc1b0:
$Af6d1 = false;
goto b1285;
Ce69d:
a8232:
goto D487c;
Fd0ef:
$cb6e9 = ["value" => $f5425, "currency" => $c513c["currency"], "contents" => $Db528["twitter_items"]];
goto d9e9f;
C4efc:
b3f3f:
goto Fd0ef;
d78f5:
c09d9:
goto e0e64;
F410a:
if (isset($Db528["ga4_items"])) {
goto F0e76;
}
goto C233b;
F663b:
$this->load->model("extension/module/dmt");
goto B5870;
Dfcf4:
if (!isset($this->session->data["ga4_payment_method"])) {
goto c09d9;
}
goto d59b3;
Bf3ed:
$A881c = $c513c["currency"];
goto A92bb;
F08aa:
$d4bfa = $c513c["override_tax"];
goto Bf514;
e2515:
f18b9:
goto A2b2a;
b606d:
$E1d8b = false;
goto e0097;
cd4e2:
$F388e = $Adddc - $b726f;
goto f6da9;
A7c47:
if (!isset($this->session->data["ga4_shipping_sent"])) {
goto f1e93;
}
goto D7c6b;
fe634:
if (!$c513c["tiktok_status"]) {
goto e88f8;
}
goto Bf3ed;
Db3b6:
$c2fce = $f5425;
goto fda83;
D7c6b:
unset($this->session->data["ga4_shipping_sent"]);
goto Aee52;
d9e9f:
aa124:
goto E3fcd;
D487c:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "items" => $Db528["ga4_items"]];
goto a51b0;
f00c8:
$b748b = ["price" => $f5425, "currency" => $c513c["currency"], "item_ids" => $Db528["ecom_prodid"], "number_items" => $Db528["fb_items"], "description" => "Checkout Started"];
goto Cab53;
Aa962:
$F388e = $Adddc - $b726f;
goto E84b5;
e0190:
b04f4:
goto Db3b6;
Fbafb:
$Af6d1["eventdata"]["data"]["products"] = $b6280;
goto e2515;
Eebc5:
if (!isset($Db528["ecom_totalvalue"])) {
goto ab9b6;
}
goto a1edd;
c0243:
if (!(isset($c513c["twitter_checkout"]) && !empty($c513c["twitter_checkout"]))) {
goto b3f3f;
}
goto fbe75;
A0e4d:
}
public function prepareShipping($A407d = '')
{
goto bcd6e;
F64d0:
$e7e18 = "7-" . $this->eventid();
goto Bcf17;
cf5d2:
if (!($this->session->data["ga4_shipping_method"] == $A407d)) {
goto Ea9bd;
}
goto d66b7;
E6f1a:
$c513c = $this->config();
goto fbea9;
C9908:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "shipping_tier" => $A407d, "items" => $Db528["ga4_items"]];
goto a06ff;
d7039:
$Ceefe = ["error" => "true"];
goto A25a1;
B600a:
$this->load->model("extension/module/dmt");
goto ee8f9;
e703b:
return $Ceefe;
goto bf733;
bcd6e:
$this->resetCustomerData();
goto B600a;
c8974:
if (!(isset($this->session->data["ga4_shipping_sent"]) && isset($this->session->data["ga4_shipping_method"]))) {
goto f4799;
}
goto cf5d2;
d66b7:
$Ceefe = ["error" => "true"];
goto e703b;
f8d55:
return $Ed7a1;
goto ec0b6;
ee8f9:
$Db528 = $this->model_extension_module_dmt->getCartProducts();
goto F64d0;
bbe4b:
c4b36:
goto E6f1a;
fbea9:
$f5425 = isset($Db528["ecom_totalvalue"]) ? number_format((float) $Db528["ecom_totalvalue"], 2, , '') : 0;
goto c8974;
a06ff:
$c36f9 = ["event" => "add_shipping_info", "ga" => $A8ce3, "currency" => $c513c["currency"], "value" => $f5425, "event_id" => $e7e18, "shipping_tier" => $A407d];
goto F7cc6;
A25a1:
return $Ceefe;
goto bbe4b;
F7cc6:
$Ed7a1 = ["error" => "false", "datalayer" => $c36f9, "ga" => $A8ce3, "currency" => $c513c["currency"]];
goto f8d55;
Bcf17:
$Ceefe = [];
goto db033;
db033:
if (isset($Db528["ga4_items"])) {
goto c4b36;
}
goto d7039;
bf733:
Ea9bd:
goto Da139;
Da139:
f4799:
goto C9908;
ec0b6:
}
public function preparePayment($a81e4 = '')
{
goto Ee5c8;
fa82a:
if (!(isset($this->session->data["ga4_payment_sent"]) && isset($this->session->data["ga4_payment_method"]))) {
goto E7c31;
}
goto D2ee0;
Aebdc:
goto Aea27;
goto eeb1e;
b8841:
$Ceefe = [];
goto E2499;
eeb1e:
Dcd74:
goto Af063;
F946d:
if (!(isset($c513c["twitter_status"]) && $c513c["twitter_status"])) {
goto b566f;
}
goto A8ba8;
E970e:
c8d8f:
goto a1cf2;
aa02d:
E7c31:
goto cc9fb;
aab09:
if (!($c513c["pixel"] && $c513c["fb_api"])) {
goto b1025;
}
goto b0ee6;
a73c4:
return $Ceefe;
goto c168a;
b1a5a:
if (!(isset($aaedc["tiktok_user_data"]) && $aaedc)) {
goto e169d;
}
goto e04e3;
F6cc2:
$c1649 = $c513c["twitter_payment"];
goto E970e;
B16ab:
E23f8:
goto F946d;
f7420:
Eedb5:
goto c4bb0;
b2035:
$Db528 = $this->model_extension_module_dmt->getCartProducts();
goto B0ed7;
B6029:
$F9b77 = [];
goto ecc12;
e00b9:
$b175e = false;
goto a418f;
D5de3:
b4ccc:
goto bb791;
E76b8:
$A9f49 = $c513c["currency"];
goto Aebdc;
fc438:
$C7054 = ["content_category" => "Confirm", "content_type" => "product", "content_ids" => isset($Db528["ecom_prodid"]) ? $Db528["ecom_prodid"] : '', "contents" => isset($Db528["fb_contents"]) ? $Db528["fb_contents"] : array(), "currency" => $A9f49, "value" => number_format((float) $c2fce, 2, , ''), "num_items" => $Db528["fb_items"]];
goto C946b;
B0ed7:
$e7e18 = "7-" . $this->eventid();
goto b8841;
F7ed5:
Bdb2f:
goto Ae299;
c5626:
goto c8d8f;
goto b7cc6;
Abd74:
$aaedc = $this->formatUserdata($c513c);
goto fa82a;
e1d06:
$c36f9 = ["event" => "add_payment_info", "ga" => $A8ce3, "currency" => $c513c["currency"], "value" => $f5425, "event_id" => $e7e18, "payment_type" => $a81e4, "content_ids" => isset($Db528["ecom_prodid"]) ? $Db528["ecom_prodid"] : '', "number_items" => isset($Db528["fb_items"]) ? $Db528["fb_items"] : '', "content_type" => "product", "pixel_value" => number_format((float) $c2fce, 2, , ''), "fb_currency" => $A9f49];
goto C11bd;
Af063:
$A9f49 = $c513c["alt_currency"];
goto ae330;
ae330:
Aea27:
goto fd337;
cbf0d:
$C670a = $this->gtm->tiktokAPI($c513c, "AddPaymentInfo", $b175e, $F9b77);
goto D562a;
C09a1:
$Aefb2 = [];
goto B6029;
C11bd:
if (!$c513c["pixel"]) {
goto E23f8;
}
goto fc438;
fd74e:
$c1649 = 0;
goto Ab350;
e38c3:
c7504:
goto E6c67;
Ee5c8:
$this->resetCustomerData();
goto A3eb6;
d65e5:
return $Ed7a1;
goto F9444;
Aceab:
$Ceefe = ["error" => "true"];
goto Ef2df;
D562a:
F8a32:
goto e38c3;
b7cc6:
Dc32e:
goto F6cc2;
E6c67:
$Ed7a1 = ["error" => "false", "datalayer" => $c36f9, "fb_data" => $C7054, "currency" => $c513c["currency"], "twitter_event" => $c1649, "twitter_data" => $cb6e9, "tiktok" => $b175e, "ga" => $A8ce3, "event_id" => $e7e18];
goto d65e5;
cc9fb:
$c2fce = $Db528["ftotal"];
goto F2ace;
e04e3:
$F9b77 = $aaedc["tiktok_user_data"];
goto ae3a3;
ecc12:
$c513c["event_id"] = $e7e18;
goto Abd74;
Ae299:
if (!(isset($aaedc["pixel_user_data"]) && $aaedc)) {
goto B071a;
}
goto ecef7;
ecef7:
$Aefb2 = $aaedc["pixel_user_data"];
goto C61c9;
C54c8:
if (!$c513c["tiktok_status"]) {
goto c7504;
}
goto A05f6;
Ab350:
$cb6e9 = false;
goto e00b9;
c4bb0:
$b175e = ["contents" => $Db528["tiktok_items"], "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $Db528["tiktok_value"], 2, , ''), "description" => "Payment Confirm", "payment_method" => $a81e4];
goto b1a5a;
fd337:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "items" => $Db528["ga4_items"], "payment_type" => $a81e4];
goto e1d06;
e3a0d:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto Eedb5;
}
goto e7d80;
C946b:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto Bdb2f;
}
goto dcff5;
a418f:
$A8ce3 = [];
goto C09a1;
Ebfbb:
b566f:
goto C54c8;
e7d80:
$A881c = $c513c["tiktok_alt_currency"];
goto f7420;
b0ee6:
$C670a = $this->gtm->facebookAPI($c513c, "AddPaymentInfo", $C7054, $Aefb2, $e7e18);
goto dcf72;
C22fd:
$Ceefe = ["error" => "true"];
goto a73c4;
A8ba8:
if (isset($c513c["twitter_payment"]) && !empty($c513c["twitter_payment"])) {
goto Dc32e;
}
goto fdd94;
A3eb6:
$this->load->model("extension/module/dmt");
goto b2035;
ae3a3:
e169d:
goto Cf020;
Cf020:
if (!$this->checkapiStatus("tiktok")) {
goto F8a32;
}
goto cbf0d;
dd660:
$C7054 = false;
goto fd74e;
dcf72:
b1025:
goto B16ab;
E2499:
if (isset($Db528["ga4_items"])) {
goto b4ccc;
}
goto Aceab;
a1cf2:
$cb6e9 = ["value" => $f5425, "currency" => $c513c["currency"], "contents" => $Db528["twitter_items"]];
goto Ebfbb;
A05f6:
$A881c = $c513c["currency"];
goto e3a0d;
D2ee0:
if (!($this->session->data["ga4_payment_method"] == $a81e4)) {
goto Ba5eb;
}
goto C22fd;
C61c9:
B071a:
goto aab09;
Ef2df:
return $Ceefe;
goto D5de3;
fdd94:
$c1649 = 0;
goto c5626;
bb791:
$c513c = $this->config();
goto D88ac;
D88ac:
$f5425 = isset($Db528["ecom_totalvalue"]) ? number_format((float) $Db528["ecom_totalvalue"], 2, , '') : 0;
goto dd660;
F2ace:
if ($c513c["alt_currency_status"] && isset($c513c["alt_currency"]) && $c513c["alt_currency"] != $c513c["currency"]) {
goto Dcd74;
}
goto E76b8;
dcff5:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto F7ed5;
c168a:
Ba5eb:
goto aa02d;
F9444:
}
public function prepareConfirm($Ea0d3 = null)
{
goto Cfe2e;
B784a:
$Ed7a1 = ["error" => "false", "datalayer" => $c36f9, "currency" => $c513c["currency"], "items" => $Db528["ga4_items"]];
goto A7233;
Ee6d6:
E4f23:
goto Fc094;
E4bb7:
$f2de0 = [];
goto D1339;
Fc094:
if (!$c513c["tiktok_status"]) {
goto dbd3c;
}
goto ded1e;
f3eef:
if (isset($Db528["ga4_items"])) {
goto fb3b5;
}
goto df74a;
Bccb9:
$b175e = [];
goto d3c29;
Ff1b4:
$C7054 = ["content_category" => "Confirm", "content_type" => "product", "content_ids" => $Db528["ecom_prodid"], "contents" => $Db528["fb_contents"], "currency" => $A9f49, "value" => number_format((float) $c2fce, 2, , ''), "num_items" => $Db528["fb_items"]];
goto f423d;
D9a6a:
$Db528 = $this->model_extension_module_dmt->getCartProducts();
goto f3639;
df74a:
$Ceefe = ["error" => "true"];
goto Cfb40;
C728c:
C1137:
goto ba877;
f8948:
$c1aca = [];
goto A4a2c;
Debd8:
$A8ce3 = [];
goto C3263;
C3263:
$a786b = [];
goto Bccb9;
F4e36:
$c2fce = $Db528["ecom_totalvalue"];
goto f3a6f;
f3a6f:
$A9f49 = $c513c["currency"];
goto Cafb4;
d5412:
$Ea0d3 = ["page" => "checkout", "step" => isset($this->session->data["steps"]) ? $this->session->data["steps"] + 1 : 2, "mode" => "onecheckout"];
goto F096e;
E0b27:
$b175e = ["contents" => $Db528["tiktok_items"], "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $Db528["tiktok_value"], 2, , ''), "description" => "Payment Confirm"];
goto a85f3;
bb49c:
if (isset($Ea0d3)) {
goto Def29;
}
goto d5412;
eb679:
$f5425 = number_format((float) $Db528["ecom_totalvalue"], 2, , '');
goto Debd8;
A4a2c:
$E8e9c = [];
goto C09ee;
Cfe2e:
$this->resetCustomerData();
goto Fbb5e;
affe1:
$A9f49 = $c513c["alt_currency"];
goto Ee6d6;
ee3f0:
if ($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"]) {
goto e6661;
}
goto F4e36;
d87d1:
$Ddb25 = $c513c["tax"];
goto eb679;
Ec071:
aa5bb:
goto E0b27;
f3639:
$e7e18 = "7s-" . $this->eventid();
goto B6758;
Db474:
$A8ce3 = ["currency" => $c513c["currency"], "value" => $f5425, "items" => $Db528["ga4_items"]];
goto c69bb;
B64cb:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto aa5bb;
}
goto F932b;
eee8d:
return $Ed7a1;
goto De5f3;
f423d:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto C1137;
}
goto aee02;
F932b:
$A881c = $c513c["tiktok_alt_currency"];
goto Ec071;
F096e:
Def29:
goto ee3f0;
Cafb4:
goto E4f23;
goto e3a46;
ded1e:
$A881c = $c513c["currency"];
goto B64cb;
ed3a8:
$c2fce = $Db528["ftotal"];
goto affe1;
Fbb5e:
$this->load->model("extension/module/dmt");
goto D9a6a;
ba877:
f14b7:
goto eee8d;
d3c29:
$D27f1 = 1;
goto bb49c;
D1339:
$B86f9 = [];
goto f8948;
B6758:
$Ceefe = [];
goto f3eef;
a85f3:
dbd3c:
goto Db474;
Cfb40:
return $Ceefe;
goto Bc4b1;
A1610:
$c513c = $this->config();
goto E4bb7;
A7233:
if (!$c513c["pixel"]) {
goto f14b7;
}
goto Ff1b4;
aee02:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto C728c;
c69bb:
$c36f9 = ["event" => "confirmCheckout", "eventAction" => "confirmCheckout", "eventLabel" => "Order Confirm", "content_name" => "Checkout", "ga" => $A8ce3, "content_category" => "Confirm", "content_ids" => $Db528["ecom_prodid"], "contents" => $Db528["fb_contents"], "number_items" => $Db528["fb_items"], "content_type" => "product", "pixel_value" => number_format((float) $c2fce, 2, , ''), "fb_currency" => $A9f49, "remarketing_ids" => $Db528["remarketing_ids"], "currency" => $c513c["currency"], "value" => $f5425, "tiktok" => $b175e, "event_id" => $e7e18];
goto B784a;
C09ee:
$d4bfa = $c513c["override_tax"];
goto d87d1;
e3a46:
e6661:
goto ed3a8;
Bc4b1:
fb3b5:
goto A1610;
De5f3:
}
public function preparePurchase($c58b0)
{
goto C586d;
be858:
if (!$c513c["cj_status"]) {
goto c0bf1;
}
goto a28d9;
ac3e8:
B9acc:
goto A6ac2;
Dfba3:
d6633:
goto B0730;
a69d3:
Cda3c:
goto be858;
D4adf:
c7424:
goto Cbc96;
dca6a:
if (!(isset($A8e72) && !empty($A8e72))) {
goto F0a49;
}
goto F54c9;
C987d:
d2503:
goto C71ab;
Faae3:
if ($Db528) {
goto E76ff;
}
goto be278;
A9dad:
if (!$c513c["pinterest_status"]) {
goto fb383;
}
goto cbd58;
Aaebe:
ed3e8:
goto Aac04;
E96a3:
$C3fdb = isset($Db528["ec_orderDetails"]["shipping_code"]) ? $Db528["ec_orderDetails"]["shipping_code"] : '';
goto d3c17;
Dd273:
if (!(isset($c513c["debug_order"]) && $c513c["debug_order"])) {
goto F2a49;
}
goto A4164;
D61d9:
$b748b = [];
goto C6436;
B56bf:
C0f03:
goto cd80a;
D627a:
$be3f4 = [];
goto C238a;
Bd1f1:
b79a3:
goto A7b0b;
Dabcf:
F0a49:
goto ab120;
C0189:
$Ed7a1 = ["error" => "false", "event_id" => $e7e18, "order_id" => $c58b0, "currency" => $Aa33a, "revenue" => $Db528["ec_orderValue"], "value" => $dccfe, "tax" => $cfb0a, "shipping" => $Bdba7, "discount" => '', "coupon" => isset($Db528["ec_orderCoupon"]) ? $Db528["ec_orderCoupon"] : '', "shipping_method" => $A407d, "payment_method" => $a81e4, "items" => $f2de0["products"], "product_value" => number_format((float) $F234c, 2, , ''), "customer" => $be3f4, "cost" => number_format((float) $f2de0["cost"], 2, , ''), "datalayer" => $c36f9, "fb_data" => $C7054, "google_review" => $d32c4, "tiktok" => $b175e, "snapchat" => $b748b, "snapchat_api" => $E1d8b, "twitter_event" => $c1649, "twitter_data" => $cb6e9, "bing_data" => $d5ede, "bing_items" => $f2de0["bing_items"], "adword_items" => $f2de0["aw_items"], "remarketing_ids" => $f2de0["remarketing_ids"], "sendinblue" => $Af6d1, "matomo" => $B5b4e, "affiliate_gateway" => $f2de0["affiliate_gateway"], "linkwise" => $f9459, "skroutz" => $A0690, "admitad_items" => $f2de0["admitad"], "sendinblue" => $Af6d1, "pinterest_data" => $Edc97, "performant_value" => $ed3cb, "cj_value" => $e5431, "cj_items" => $f2de0["cj_items"], "dmt" => $c513c, "hit" => $Db528["hit"]];
goto Dd273;
cd80a:
if (!$c513c["skroutz_status"]) {
goto be873;
}
goto d1a11;
b3c5b:
$A881c = $c513c["currency"];
goto Aa27d;
fed85:
$Af6d1["eventdata"]["data"]["Billing_Details"] = ["billing_FIRST_NAME" => $Db528["ec_orderDetails"]["payment_firstname"], "billing_LAST_NAME" => $Db528["ec_orderDetails"]["payment_lastname"], "billing_COMPANY " => $Db528["ec_orderDetails"]["payment_company"], "billing_ADDRESS_1" => $Db528["ec_orderDetails"]["payment_address_1"], "billing_ADDRESS_2" => $Db528["ec_orderDetails"]["payment_address_2"], "billing_CITY" => $Db528["ec_orderDetails"]["payment_city"], "billing_STATE" => $Db528["ec_orderDetails"]["payment_zone"], "billing_POSTCODE" => $Db528["ec_orderDetails"]["payment_postcode"], "billing_COUNTRY" => $Db528["ec_orderDetails"]["payment_country"], "billing_PHONE" => $Db528["ec_orderDetails"]["telephone"], "billing_EMAIL" => $Db528["ec_orderDetails"]["email"]];
goto A20c4;
Cbc96:
de658:
goto eb682;
Fb81d:
$this->saveCustomerData($be3f4);
goto c998b;
b3470:
$f2f93 = ["sha6_email_address" => $be3f4["em"], "sha256_phone_number" => $be3f4["ph_e164"], "address" => ["sha256_first_name" => $be3f4["fn"], "sha6_last_name" => $be3f4["ln"], "street" => $c782a, "city" => $B05d4, "postal_code" => $b5384, "region" => $c5f4c, "country" => $D41c7]];
goto afadf;
f2f2f:
b46bf:
goto b1a30;
C98ad:
return $Ed7a1;
goto Cd4ce;
ab120:
$cedc0 = ["order_total" => $Db528["ec_orderValue"], "shipping" => $Db528["ec_orderShipping"], "tax" => $Db528["ec_orderTax"], "adjustment_plus" => $Db528["adjustment"]["plus"], "adjustment_minus" => $Db528["adjustment"]["minus"], "sub_total" => $Db528["adjustment"]["sub_total"], "order_totals" => $Db528["adjustment"]["order_totals"], "order_products" => $f2de0["products"]];
goto ef6ab;
cf513:
$e12bb = ["order_id" => $c58b0, "revenue" => number_format((float) $aeb79, 2, , ''), "shipping" => $Bdba7, "tax" => $cfb0a];
goto A6807;
b1a30:
$C7054 = ["content_category" => "Confirm", "content_ids" => $f2de0["ecom_prodid"], "contents" => $f2de0["fb_contents"], "currency" => $B2567, "num_items" => $f2de0["number_of_items"], "value" => number_format((float) $c140b, 2, , ''), "order_id" => $c58b0, "content_name" => "Purchase", "content_type" => "product"];
goto bc406;
F37e8:
$c513c["ph_e164"] = $be3f4["ph_e164"];
goto a921a;
c56f7:
fb383:
goto Ec77d;
d2656:
$A3019 = number_format((float) $B6ff9, 2, , '');
goto Db428;
d044b:
a6bd1:
goto F1dbe;
ba770:
$cfb0a = number_format((float) $Db528["ec_orderTax"], 2, , '');
goto dcfaf;
Aac04:
if (!(isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"])) {
goto B6b03;
}
goto f77dc;
cbd58:
$Edc97 = ["event_id" => $e7e18, "order_id" => $c58b0, "value" => $A3019, "order_quantity" => $f2de0["number_of_items"], "currency" => $c513c["currency"], "line_items" => $f2de0["pinterest_items"]];
goto c56f7;
a95d5:
$c1649 = 0;
goto aec92;
afadf:
c926c:
goto cd4b8;
C71ab:
$e5431 = number_format((float) $e5431, 2, , '');
goto ff780;
f88ef:
B6b03:
goto A9b73;
Fe641:
$Eca20 = $Db528["ec_orderDetails"]["lastname"];
goto aca07;
fd0ba:
f7468:
goto Dfba3;
bb76f:
$c513c["ct"] = $be3f4["ct"];
goto da04c;
F6260:
$A8ce3 = [];
goto D61d9;
a6ffb:
$B5b4e = ["items" => $f2de0["matomo_items"], "order_id" => $c58b0, "revenue" => $dccfe, "tax" => $cfb0a, "shipping" => $Bdba7, "discount" => 0];
goto a69d3;
fce40:
$f9e0d = $Db528["ec_orderDetails"]["firstname"];
goto Fe641;
Daa85:
Cf919:
goto daf63;
A6ac2:
$Aee65 = $cedc0["order_total"] - $cedc0["shipping"] - $cedc0["tax"];
goto E27ab;
C04f3:
$C7054["product_catalog_id"] = $c513c["fb_catalog_id"];
goto fd0ba;
ef6ab:
$A8ce3 = ["transaction_id" => (string) $c58b0, "value" => $dccfe, "currency" => $Aa33a, "tax" => $cfb0a, "shipping" => $Bdba7, "coupon" => isset($Db528["ec_orderCoupon"]) ? $Db528["ec_orderCoupon"] : '', "items" => $f2de0["ga4_items"]];
goto be62d;
acd6c:
$d32c4 = [];
goto b91a1;
fddd3:
if (!$c513c["linkwise_status"]) {
goto fe92f;
}
goto E949c;
C238a:
$e5431 = 0;
goto F5a55;
dcfaf:
$Bdba7 = number_format((float) $Db528["ec_orderShipping"], 2, , '');
goto ac8e5;
bdb21:
$c140b = $cedc0["order_total"];
goto d8cc4;
A6807:
$f9459 = ["items" => $f2de0["linkwise_items"], "order" => $e12bb];
goto ed5cd;
B0730:
if (!$c513c["adword"]) {
goto C6e0a;
}
goto c299a;
d37d1:
$b748b["search_string"] = $A2d05;
goto D4adf;
C657f:
$a81e4 = isset($Db528["ec_orderDetails"]["payment_method"]) ? $Db528["ec_orderDetails"]["payment_method"] : "payment";
goto E96a3;
E0ab2:
$c1649 = 0;
goto c058d;
Ce29a:
Aa8c5:
goto d972a;
be278:
if (!$this->dmt_debug) {
goto F4fa1;
}
goto eccca;
E949c:
$aeb79 = $cedc0["order_total"];
goto c480c;
c998b:
$a7845 = $this->getCustomerHistory($Db528["ec_orderDetails"]["email"], $c58b0);
goto F0ac2;
Cc7eb:
if (!isset($cedc0["adjustment_plus"])) {
goto ac71f;
}
goto e161d;
dddbb:
$b175e = ["contents" => $f2de0["tiktok_items"], "content_type" => "product", "currency" => $A881c, "value" => number_format((float) $ce100, 2, , ''), "description" => "Purchase", "transaction_id" => $c58b0];
goto Bd1f1;
c480c:
if (!isset($cedc0["adjustment_plus"])) {
goto af9f3;
}
goto Fa1b5;
Fb7df:
E76ff:
goto A7b26;
D6e1e:
be873:
goto fddd3;
F1dbe:
return $Db528["error"] = "Empty Order";
goto Ce29a;
A79e4:
$d1607 = [];
goto D627a;
Ae84e:
$E1d8b["search_string"] = $A2d05;
goto d37d1;
D4a35:
if (isset($c513c["twitter_purchase"]) && !empty($c513c["twitter_purchase"])) {
goto a5beb;
}
goto a95d5;
d3c17:
$c58b0 = $Db528["ec_orderDetails"]["order_id"];
goto Cdfe6;
A0d0d:
$ba42e = str_replace(" ", '', $Db528["ec_orderDetails"]["email"]);
goto Df1bd;
d8cc4:
if (!(isset($c513c["fb_shipping_exclude"]) && $c513c["fb_shipping_exclude"])) {
goto ed3e8;
}
goto c232e;
D4b42:
$c513c["cc"] = $be3f4["cc"];
goto Fb81d;
ac8e5:
$A407d = isset($Db528["ec_orderDetails"]["shipping_method"]) ? $Db528["ec_orderDetails"]["shipping_method"] : "shipping";
goto C657f;
fe3e8:
$Af6d1 = ["email" => $Db528["ec_orderDetails"]["email"], "event" => "order_completed", "cuid" => $this->getCuid(), "properties" => ["FIRSTNAME" => $Db528["ec_orderDetails"]["firstname"], "LASTNAME" => $Db528["ec_orderDetails"]["lastname"], "LOCATION" => $Db528["ec_orderDetails"]["payment_city"], "COUNTRY" => $Db528["ec_orderDetails"]["payment_country"], "TELEPHONE" => $Db528["ec_orderDetails"]["telephone"]], "eventdata" => ["id" => $this->GUID(), "cuid" => $this->getCuid(), "data" => []]];
goto fed85;
C8e31:
if (!(isset($A2d05) && !empty($A2d05))) {
goto c7424;
}
goto Ae84e;
ed5cd:
fe92f:
goto b0f01;
A9b73:
if ($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"]) {
goto b5085;
}
goto Fe688;
Faf99:
$d5ede = ["transaction_id" => $c58b0, "ecomm_prodid" => $f2de0["ecom_prodid"], "ecomm_pagetype" => "purchase", "ecomm_totalvalue" => $A3019, "currency" => $c513c["currency"], "items" => $f2de0["bing_items"]];
goto b93df;
B25c6:
$d5ede = false;
goto b62ff;
d5ae2:
$this->Log($aa044);
goto A7d7c;
cd6c7:
$e5431 = $cedc0["order_total"] - $cedc0["shipping"] - $cedc0["tax"];
goto Aa400;
b91a1:
$B5b4e = [];
goto f4058;
cd4b8:
$c513c["em"] = $be3f4["em"];
goto eb917;
E68cb:
Cb5b8:
goto dddbb;
fe3af:
$B05d4 = $Db528["ec_orderDetails"]["payment_city"];
goto Ce0c3;
Fa1b5:
$aeb79 = $aeb79 - $cedc0["adjustment_plus"];
goto f45fc;
Aa27d:
$ce100 = $B6ff9;
goto C158d;
C3857:
if (!$c513c["tiktok_status"]) {
goto b79a3;
}
goto b3c5b;
ff780:
c0bf1:
goto f4d9f;
be62d:
if (!$c513c["pixel"]) {
goto d6633;
}
goto bdb21;
da04c:
$c513c["st"] = $be3f4["st"];
goto c685b;
Cdfe6:
$A8e72 = $this->DeliveryEstimate("15:00:00", 5, $C3fdb);
goto Eea6f;
Ec77d:
$c3845 = $this->customer->getId();
goto A0d0d;
a6aa9:
$ed3cb = $Db528["ec_orderValue"] - $Db528["ec_orderShipping"] - $Db528["ec_orderTax"] + $Db528["adjustment"]["minus"] - $Db528["adjustment"]["plus"];
goto Df466;
Df1bd:
$Dcd05 = $this->formatPhone($Db528["ec_orderDetails"]["telephone"], $Db528["ec_orderDetails"]["payment_iso_code_2"]);
goto afcaf;
E757d:
if (!$c513c["bing_status"]) {
goto d67bc;
}
goto Faf99;
D48b8:
$b1da1 = $cedc0["order_total"] - $cedc0["tax"];
goto Daa85;
Cbda6:
B351e:
goto e2d92;
aec92:
goto B9acc;
goto d0de9;
d431b:
if (!empty($c58b0)) {
goto Aa8c5;
}
goto D6be1;
bc406:
if (!(isset($c513c["fb_catalog_id"]) && !empty($c513c["fb_catalog_id"]))) {
goto f7468;
}
goto C04f3;
d62e2:
$Af6d1 = [];
goto E0ab2;
fdc6b:
$Af6d1["eventdata"]["data"]["Miscalleneous"] = ["cart_DISCOUNT" => "0", "cart_DISCOUNT_TAX" => "0", "customer_USER " => $Db528["ec_orderDetails"]["customer_id"], "payment_METHOD" => $Db528["ec_orderDetails"]["payment_code"], "payment_METHOD_TITLE" => $Db528["ec_orderDetails"]["payment_method"], "customer_IP_ADDRESS" => $Db528["ec_orderDetails"]["ip"], "customer_USER_AGENT" => $Db528["ec_orderDetails"]["user_agent"]];
goto dede6;
Ce0c3:
$b5384 = isset($Db528["ec_orderDetails"]["payment_postcode"]) ? $this->formatPostcode($Db528["ec_orderDetails"]["payment_postcode"]) : '';
goto afae1;
A14b5:
$dccfe = number_format((float) $Db528["ec_orderValue"], 2, , '');
goto ba770;
Eb9b9:
F6560:
goto fb040;
E31d5:
return false;
goto Fb7df;
Cf24b:
if (!($c513c["alt_currency_status"] && $c513c["alt_currency"] != $c513c["currency"])) {
goto ae2d9;
}
goto f3e0a;
Bf3c1:
$B2567 = $c513c["alt_currency"];
goto f2f2f;
A7d7c:
F2a49:
goto C98ad;
e73d2:
$c513c["ph"] = $be3f4["ph"];
goto F37e8;
c299a:
if (!(isset($c513c["aw_tax_exclude"]) && $c513c["aw_tax_exclude"])) {
goto Cf919;
}
goto D48b8;
d1a11:
$Aab5b = $cedc0["order_total"];
goto Cc7eb;
b3c81:
$B6ff9 = $f2de0["ecom_totalvalue"];
goto d2656;
fb040:
if (!$c513c["matomo_status"]) {
goto Cda3c;
}
goto a6ffb;
e2d92:
if (!(isset($c513c["sendinblue_status"]) && $c513c["sendinblue_status"])) {
goto eaab2;
}
goto fe3e8;
eccca:
$this->Log("DMT: Order Id Not Found in preparePurchase()");
goto de965;
f77dc:
$c140b = $c140b - $Db528["ec_orderTax"];
goto f88ef;
b93df:
d67bc:
goto A9dad;
a80af:
ae2d9:
goto Cbda6;
cdb2b:
$D41c7 = $Db528["ec_orderDetails"]["payment_iso_code_2"];
goto fce40;
A7b0b:
if (!$c513c["snap_pixel_status"]) {
goto de658;
}
goto f1eaf;
F5a55:
$ed3cb = 0;
goto B25c6;
B0e9f:
$e92d3 = isset($c513c["cj_currency"]) ? $c513c["cj_currency"] : $c513c["currency"];
goto cd6c7;
b62ff:
$Edc97 = false;
goto d431b;
A7129:
b5085:
goto ece82;
cc52f:
$c1649 = $c513c["twitter_purchase"];
goto ac3e8;
E2b21:
if (!(isset($c513c["adword_ec"]) && $c513c["adword_ec"])) {
goto c926c;
}
goto b3470;
b4a78:
goto b46bf;
goto A7129;
F0ac2:
$c36f9 = ["event" => "new_order", "eventAction" => "new_order", "eventLabel" => "Order Completed", "event_id" => $e7e18, "order_id" => $c58b0, "currency" => $Aa33a, "value" => $dccfe, "order_email" => $Db528["ec_orderDetails"]["email"], "email_hash" => $be3f4["em"], "tax" => $cfb0a, "shipping" => $Bdba7, "ga" => $A8ce3, "remarketing_ids" => $f2de0["remarketing_ids"], "adword_items" => $f2de0["aw_items"], "user_data" => $f2f93, "aw_merchant_id" => $c513c["aw_optional"] ? $c513c["aw_merchant_id"] : '', "aw_feed_country" => $c513c["aw_optional"] ? $c513c["aw_feed_country"] : '', "aw_feed_language" => $c513c["aw_optional"] ? $c513c["aw_feed_language"] : '', "content_ids" => $f2de0["ecom_prodid"], "number_items" => $f2de0["number_of_items"], "gtins" => isset($d1607) ? $d1607 : null, "conversion_value" => number_format((float) $b1da1, 2, , ''), "estimated_delivery" => $A8e72, "country_code" => $Db528["ec_orderDetails"]["shipping_iso_code_2"], "affiliation" => isset($Db528["ec_affiliate_code"]) ? $Db528["ec_affiliate_code"] : '', "cj_value" => $e5431, "cj_items" => $f2de0["cj_items"], "lifetime_value" => isset($a7845["total"]) ? $a7845["total"] : 0, "new_customer" => isset($a7845["new_customer"]) ? $a7845["new_customer"] : true];
goto C0189;
C586d:
$c513c = $this->config();
goto F6260;
Fe688:
$B2567 = $Aa33a;
goto b4a78;
C158d:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto Cb5b8;
}
goto cb334;
Adb56:
$c513c["ln"] = $be3f4["ln"];
goto e73d2;
E7195:
$A0690 = [];
goto b4c38;
f4058:
$C7054 = false;
goto E7195;
e161d:
$Aab5b = $Aab5b - $cedc0["adjustment_plus"];
goto d5a0d;
d0de9:
a5beb:
goto cc52f;
A7b26:
$e7e18 = isset($Db528["event_id"]) ? $Db528["event_id"] : "8-" . $this->eventid();
goto dab76;
A20c4:
$Af6d1["eventdata"]["data"]["Shipping_Details"] = ["shipping_FIRST_NAME" => $Db528["ec_orderDetails"]["shipping_firstname"], "shipping_LAST_NAME" => $Db528["ec_orderDetails"]["shipping_lastname"], "shipping_COMPANY " => $Db528["ec_orderDetails"]["shipping_company"], "shipping_ADDRESS_1" => $Db528["ec_orderDetails"]["shipping_address_1"], "shipping_ADDRESS_2" => $Db528["ec_orderDetails"]["shipping_address_2"], "shipping_CITY" => $Db528["ec_orderDetails"]["shipping_city"], "shipping_STATE" => $Db528["ec_orderDetails"]["shipping_zone"], "shipping_POSTCODE" => $Db528["ec_orderDetails"]["shipping_postcode"], "shipping_COUNTRY" => $Db528["ec_orderDetails"]["shipping_country"], "shipping_METHOD_TITLE" => $Db528["ec_orderDetails"]["shipping_method"]];
goto f0309;
eb917:
$c513c["fn"] = $be3f4["fn"];
goto Adb56;
cf3a1:
$d32c4 = ["order_id" => $c58b0, "email" => $Db528["ec_orderDetails"]["email"], "country" => $Db528["ec_orderDetails"]["shipping_iso_code_2"], "estimate" => $A8e72];
goto Eb9b9;
f3e0a:
$ed3cb = number_format($this->currency->format($ed3cb, $c513c["alt_currency"], '', false), 2, , '');
goto a80af;
C6436:
$E1d8b = [];
goto d62e2;
ece82:
$c140b = number_format($this->currency->format($c140b, $c513c["alt_currency"], '', false), 2, , '');
goto Bf3c1;
b0f01:
if (!$c513c["greview"]) {
goto F6560;
}
goto cf3a1;
c058d:
$cb6e9 = [];
goto B8a4b;
a28d9:
$D1baf = isset($c513c["cj_currency_value"]) && (int) $c513c["cj_currency_value"] > 0 ? (float) $c513c["cj_currency_value"] : 1;
goto B0e9f;
Db428:
$F234c = (int) $B6ff9 - (int) $Db528["ec_orderTax"];
goto F214e;
dede6:
eaab2:
goto E757d;
d972a:
$Db528 = $this->getOrder($c58b0);
goto Faae3;
e48be:
$E1d8b = ["currency" => $c513c["currency"], "content_ids" => $f2de0["ecom_prodid"], "contents" => $f2de0["snapchat_items"], "value" => $A3019, "order_id" => $c58b0, "num_items" => $f2de0["number_of_items"], "delivery_method" => $A407d, "payment_method" => $a81e4];
goto C8e31;
f4d9f:
if (!$c513c["performant_status"]) {
goto B351e;
}
goto a6aa9;
dab76:
$Aa33a = $Db528["ec_currency"];
goto A14b5;
f0309:
$Af6d1["eventdata"]["data"]["Order_Details"] = ["order_ID" => $c58b0, "order_KEY" => $c58b0, "order_TAX" => $cedc0["tax"], "order_SHIPPING_TAX" => 0, "order_SHIPPING" => $cedc0["shipping"], "order_PRICE" => $dccfe, "order_DATE" => $Db528["ec_orderDetails"]["date_added"], "order_SUBTOTAL" => $cedc0["sub_total"], "order_DOWNLOAD_LINK" => ''];
goto fdc6b;
afae1:
$c5f4c = $Db528["ec_orderDetails"]["payment_zone"];
goto cdb2b;
F54c9:
$A8e72 = date("Y-m-d", $A8e72);
goto Dabcf;
eb682:
if (!$c513c["twitter_status"]) {
goto C0f03;
}
goto D4a35;
Eea6f:
$f2de0 = $Db528["ec_orderProducts"];
goto b3c81;
Aa400:
if (!($e92d3 !== $c513c["currency"])) {
goto d2503;
}
goto F3505;
Aaf2c:
$A0690 = ["order" => ["order_id" => $c58b0, "revenue" => number_format((float) $Aab5b, 2, , ''), "shipping" => $Bdba7, "tax" => $cfb0a], "items" => $f2de0["skroutz_items"]];
goto D6e1e;
c232e:
$c140b = $c140b - $Db528["ec_orderShipping"];
goto Aaebe;
B8a4b:
$b175e = [];
goto B048b;
F214e:
$b1da1 = $Db528["ec_orderValue"];
goto dca6a;
c685b:
$c513c["pc"] = $be3f4["pc"];
goto D4b42;
afcaf:
$c782a = $Db528["ec_orderDetails"]["payment_address_1"];
goto fe3af;
f45fc:
af9f3:
goto cf513;
B048b:
$f9459 = [];
goto acd6c;
a921a:
$c513c["ad"] = $be3f4["ad"];
goto bb76f;
b4c38:
$f2f93 = [];
goto A79e4;
d5a0d:
ac71f:
goto Aaf2c;
D6be1:
if (!$this->dmt_debug) {
goto a6bd1;
}
goto ef4be;
E27ab:
$cb6e9 = ["value" => number_format((float) $Aee65, 2, , ''), "conversion_id" => $c58b0, "currency" => $Aa33a, "email_address" => $Db528["ec_orderDetails"]["email"], "phone_number" => $Db528["ec_orderDetails"]["telephone"], "contents" => $f2de0["twitter_items"]];
goto B56bf;
f1eaf:
$b748b = ["price" => $A3019, "currency" => $c513c["currency"], "item_ids" => $f2de0["ecom_prodid"], "contents" => $f2de0["snapchat_items"], "transaction_id" => $c58b0, "delivery_method" => $A407d, "payment_method" => $a81e4];
goto e48be;
aca07:
$be3f4 = ["user_id" => $c3845, "external_id" => $c3845, "customer_id" => $c3845, "email" => $ba42e, "telephone" => $Dcd05, "em" => $this->getHash($ba42e), "fn" => $this->getHash($f9e0d), "ln" => $this->getHash($Eca20), "ph" => $this->getHash($Dcd05["ph"]), "ph_e164" => $this->getHash($Dcd05["e164"]), "ad" => $this->getHash($c782a), "ct" => $this->getHash($B05d4), "pc" => $this->getHash($b5384), "st" => $this->getHash($c5f4c), "cc" => $this->getHash($D41c7)];
goto E2b21;
F3505:
$e5431 = $e5431 / $D1baf;
goto C987d;
A4164:
$aa044 = ["order_id" => $c58b0, "DATALAYER" => $c36f9, "revenue" => $Db528["ec_orderValue"], "tax" => $cfb0a, "shipping" => $Bdba7, "discount" => ''];
goto d5ae2;
Df466:
$ed3cb = number_format((float) $ed3cb, 2, , '');
goto Cf24b;
F0ddd:
$ce100 = $this->currency->format($B6ff9, $c513c["tiktok_alt_currency"], 0, false);
goto E68cb;
cb334:
$A881c = $c513c["tiktok_alt_currency"];
goto F0ddd;
ef4be:
$this->Log("DMT: Procedure Call preparePurchase(). Result: Order Id Empty");
goto d044b;
daf63:
C6e0a:
goto C3857;
de965:
F4fa1:
goto E31d5;
Cd4ce:
}
private function getOrder($c58b0)
{
goto F3ce6;
acf3c:
$Ddb25 = $c513c["tax"];
goto f96ed;
dba7d:
$this->load->model("checkout/marketing");
goto C3479;
Eae78:
$a54f2 = $dccfe / $Ddb25;
goto a24d5;
Bc8a7:
$this->Log("DMT: Order Id Not Found in gerOrder");
goto C9b85;
Bb34c:
A5945:
goto F213a;
D11bb:
$Db528["ec_affiliate_code"] = $D633a["name"];
goto E75d0;
e823f:
$Db528["adjustment"] = $this->getOrderTotalAdjustment($c58b0, $Db528["ec_orderDetails"]["currency_value"]);
goto B0b84;
A5e08:
$Db528["ec_orderCoupon"] = $this->getOrderCoupon($c58b0);
goto E4f78;
e64d9:
return $Db528;
goto B494f;
ef1e1:
$Db528["event_id"] = false;
goto C2b2c;
F213a:
$Db528["ec_language"] = $this->config->get("config_language");
goto A5e08;
d32e1:
return false;
goto Bb34c;
a24d5:
$cfb0a = $dccfe - $a54f2;
goto Ea2cb;
e1a81:
$Db528["hit"] = 0;
goto ef1e1;
E75d0:
B534b:
goto D0d1f;
Cbeb5:
return false;
goto a0aa2;
B0b4e:
if (!$d4bfa) {
goto B3a52;
}
goto Eae78;
Ed351:
$Db528["hit"] = $c63c0->row["hit"];
goto C435f;
Ce5d0:
$this->load->model("account/customer");
goto f6d97;
C3479:
$D633a = $this->model_checkout_marketing->getMarketingByCode($Db528["ec_orderDetails"]["tracking"]);
goto E7379;
F3ce6:
$this->load->model("checkout/order");
goto Ce5d0;
f96ed:
if (!(!isset($c58b0) || empty($c58b0))) {
goto a863e;
}
goto Cbeb5;
E4f78:
$Db528["ec_currency"] = $Db528["ec_orderDetails"]["currency_code"];
goto A632c;
C60ed:
$d4bfa = $c513c["override_tax"];
goto acf3c;
c2e41:
if ($c63c0->num_rows) {
goto C3ae4;
}
goto e1a81;
Ef24d:
C3ae4:
goto Ed351;
B0b84:
$Db528["ec_affiliate_code"] = '';
goto D8533;
Ea2cb:
$Bdba7 = $Bdba7 / $Ddb25;
goto debb5;
ceb57:
$cfb0a = $this->getOrderTax($c58b0) * $Db528["ec_orderDetails"]["currency_value"];
goto B0b4e;
Bec27:
$Db528["ec_orderValue"] = $dccfe;
goto e823f;
F21d8:
$Db528["ec_orderShipping"] = $Bdba7;
goto D3973;
f6d97:
$c513c = $this->config();
goto C60ed;
debb5:
B3a52:
goto F21d8;
C9b85:
ccb06:
goto d32e1;
bdc00:
$dccfe = $Db528["ec_orderDetails"]["total"] * $Db528["ec_orderDetails"]["currency_value"];
goto ceb57;
c46c3:
dd297:
goto e64d9;
C2b2c:
goto dd297;
goto Ef24d;
c8e7c:
$Db528["ec_orderDetails"]["coupon"] = $this->getOrderCoupon($c58b0);
goto b905e;
A132f:
$Db528["hit"] = 0;
goto c2e41;
a0aa2:
a863e:
goto ee487;
D0d1f:
fdba2:
goto eac9c;
C435f:
$Db528["event_id"] = $c63c0->row["event_id"];
goto c46c3;
D3973:
$Db528["ec_orderTax"] = $cfb0a;
goto Bec27;
E8b49:
if (!$this->dmt_debug) {
goto ccb06;
}
goto Bc8a7;
A632c:
$Bdba7 = $this->getOrderShipping($c58b0) * $Db528["ec_orderDetails"]["currency_value"];
goto bdc00;
D8533:
if (!(isset($Db528["ec_orderDetails"]["tracking"]) && !empty($Db528["ec_orderDetails"]["tracking"]))) {
goto fdba2;
}
goto dba7d;
ee487:
$Db528["ec_orderDetails"] = $this->model_checkout_order->getOrder($c58b0);
goto c1f91;
c1f91:
if ($Db528["ec_orderDetails"]) {
goto A5945;
}
goto E8b49;
eac9c:
$Db528["ec_orderProducts"] = $this->getOrderProducts($c58b0, $Db528["ec_orderDetails"], $Db528["ec_orderCoupon"], $Db528["ec_affiliate_code"]);
goto c8e7c;
E7379:
if (!$D633a) {
goto B534b;
}
goto D11bb;
b905e:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "analytics_tracking WHERE order_id = '" . (int) $c58b0 . "'");
goto A132f;
B494f:
}
private function getOrderProducts($c58b0, $cedc0, $e962b, $Cd42d)
{
goto E4294;
eb616:
$Db528["order_desc"] = '';
goto A65b0;
A936a:
dc5b5:
goto e5a60;
D7f05:
$Db528["sendinblue_products"] = [];
goto f04cc;
d0746:
$Db528 = [];
goto E1e59;
A65b0:
$Db528["bing_items"] = [];
goto A128e;
Eb8f3:
Bdbf0:
goto c6af1;
f04cc:
$Db528["ecom_prodid"] = [];
goto b392f;
Aae19:
$d4bfa = $c513c["override_tax"];
goto d842b;
c41b3:
foreach ($c8e6e->rows as $E4ccf) {
goto Cae55;
abdd6:
$Db528["matomo_items"][] = ["sku" => $ecc30, "name" => $fda0d, "category" => $C7834, "price" => $C9402, "quantity" => $Ea153];
goto B27c3;
A6162:
if ($D27f1 == 1) {
goto c23b7;
}
goto d075e;
D5e84:
$c484b = $E4ccf["price"] / $Ddb25;
goto A3a4b;
B5aae:
$Db528["ex_ecom_totalvalue"] += $c484b * $E4ccf["quantity"];
goto e3f2f;
C3836:
$Db528["orderProducts"][] = ["id" => $ecc30, "name" => $fda0d, "category" => $C7834, "brand" => $F2554, "variant" => $D0fd4, "quantity" => $Ea153, "price" => $C9402, "currency" => $cedc0["currency_code"]];
goto Aa986;
Dd5b7:
$Db528["tiktok_items"][] = ["content_category" => $Ea555, "content_name" => $fda0d, "price" => $E06bd, "content_id" => $ecc30, "quantity" => $Ea153, "brand" => $F2554, "content_type" => "product", "description" => $fda0d, "currency" => $A881c, "value" => $ce100];
goto B415f;
f5e16:
edfcd:
goto c7612;
F145a:
$d1607 = $B4f19["ean"];
goto C7dd0;
B27c3:
a976c:
goto d6621;
Ca736:
$Db528["fb_contents"][] = ["id" => $ecc30, "quantity" => $Ea153, "item_price" => number_format($Ff865, 2, , '')];
goto Eb3c6;
C2905:
$a458d = $c484b;
goto Ad0ca;
D572d:
b3206:
goto F8aeb;
F27d4:
a0dee:
goto Cc97d;
Eb3c6:
B4efc:
goto e2e66;
f572e:
if (isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"]) {
goto A81e0;
}
goto E7522;
Ad5cf:
$Db528["ecom_prodid"][] = $ecc30;
goto c6dc2;
F95ec:
ca7af:
goto f572e;
De9d8:
if (!$d4bfa) {
goto B3712;
}
goto D5e84;
d9e60:
$Db528["products"][] = ["name" => $E4ccf["name"], "title" => $fda0d, "model" => $C6158, "pid" => $ecc30, "gtin" => $d1607, "sku" => $B49ec, "product_id" => $e9d1b, "category" => $Ea555, "category_id" => $b249b, "brand" => $F2554, "option" => $Fc6a5, "quantity" => $Ea153, "price" => $C9402, "fprice" => number_format((float) $Ff056, 2, , ''), "ex_price" => $c484b, "fex_price" => $Ff865, "ftotal" => number_format((float) $c2fce, 2, , ''), "total" => number_format((float) $Adddc, 2, , ''), "discount" => 0, "cost" => isset($A9489) ? $A9489 : 0];
goto E598b;
Aa986:
if (!$c513c["matomo_status"]) {
goto a976c;
}
goto abdd6;
B137b:
if (!$c513c["pinterest_status"]) {
goto A2ca0;
}
goto Dadee;
Dad21:
$A881c = $c513c["tiktok_alt_currency"];
goto d8c84;
d57f9:
$Db528["affiliate_gateway"][] = ["id" => $ecc30, "name" => $fda0d, "category" => $C7834, "brand" => $F2554, "cat" => $this->getProductCatID($e9d1b), "quantity" => $Ea153, "price" => $C9402, "currency" => $cedc0["currency_code"]];
goto fe989;
Faaa2:
$Db528["order_desc"] .= $fda0d;
goto ce03e;
B3227:
Ef1fd:
goto A6162;
f2993:
foreach ($De099 as $a17f7) {
goto af80d;
B4212:
$D0fd4 .= $a17f7["name"] . ": " . (mb_strlen($f5425) > 50 ? mb_substr($f5425, 0, 50) . ".." : $f5425) . " ";
goto c3979;
cc2bd:
e804a:
goto A484b;
af80d:
if (isset($a17f7["type"]) && $a17f7["type"] != "file") {
goto e804a;
}
goto F7977;
ec4a6:
goto abd8e;
goto cc2bd;
C81e3:
abd8e:
goto B4212;
A484b:
$f5425 = isset($a17f7["value"]) ? $a17f7["value"] : '';
goto C81e3;
c3979:
d8c87:
goto bad19;
F7977:
$f5425 = '';
goto ec4a6;
bad19:
}
goto b0174;
a7e50:
$D0fd4 = '';
goto f2993;
db3d9:
A8e8c:
goto C071c;
Dadee:
$Db528["pinterest_items"][] = ["product_id" => $ecc30, "product_name" => $fda0d, "product_category" => $C7834, "product_variant" => $D0fd4, "product_brand" => $F2554, "product_quantity" => $Ea153, "product_price" => $C9402];
goto D9669;
F5721:
c9846:
goto Cac0d;
E9532:
Ec4ed:
goto Fd153;
Dc298:
$Db528["skroutz_items"][] = ["order_id" => $c58b0, "product_id" => $ecc30, "name" => $fda0d, "price" => $C9402, "quantity" => $Ea153];
goto d2939;
ade46:
F6c71:
goto a7e50;
b6bab:
E7a05:
goto d1e7a;
eee0b:
B3712:
goto de4c2;
B2385:
if (!$c513c["bing_status"]) {
goto A16a7;
}
goto E9a9a;
D9669:
A2ca0:
goto F7694;
Fa72a:
$ce100 = $this->currency->format($ce100, $c513c["tiktok_alt_currency"], 0, false);
goto Fd159;
Cc97d:
if (!$c513c["tiktok_status"]) {
goto ad338;
}
goto D0164;
f893d:
$Db528["sendinblue_products"][] = ["id" => $ecc30, "name" => $fda0d, "quantity" => $Ea153, "price" => $C9402, "url" => str_replace("&", "&", $this->url->link("product/product", "product_id=" . $e9d1b))];
goto b6bab;
a08e3:
c23b7:
goto Faaa2;
e6c54:
$Ff865 = $this->currency->format($E4ccf["price"], $c513c["alt_currency"], 0, false);
goto De9d8;
cf383:
$b249b = isset($E88d3["item_list_id"]) ? $E88d3["item_list_id"] : '';
goto c449f;
d2939:
B75ce:
goto D4c62;
bd1b1:
$F2554 = '';
goto ccbf2;
Afd9f:
$A9489 += isset($E4ccf["cost"]) ? $E4ccf["cost"] * (int) $Ea153 : 0;
goto Bccf3;
f10c8:
$Db528["number_of_items"] = $Db528["number_of_items"] + $Ea153;
goto Ac838;
E7522:
$Db528["fb_contents"][] = ["id" => $ecc30, "quantity" => $Ea153, "item_price" => number_format((float) $Ff056, 2, , '')];
goto F8968;
Db8fa:
$d1607 = '';
goto Cf0e4;
F7694:
if (!$c513c["admitad_status"]) {
goto A8e8c;
}
goto Fed50;
ccbf2:
$A9489 = 0;
goto e9dbc;
Fd159:
$E06bd = $this->currency->format($E06bd, $c513c["tiktok_alt_currency"], 0, false);
goto Dad21;
a8277:
$Db528["aw_items"][] = ["id" => $ecc30, "quantity" => $Ea153, "price" => $C9402];
goto A2dba;
Ac838:
$D27f1++;
goto f5e16;
e9729:
$Db528["cj_items"][] = ["item_id" => $ecc30, "price" => $a458d, "quantity" => $Ea153, "discount" => 0];
goto D572d;
ca5ee:
$fda0d = '';
goto Db8fa;
Cf0e4:
$ecc30 = '';
goto bd1b1;
c1885:
if (isset($E4ccf["product_id"])) {
goto eb30e;
}
goto b9208;
Bb925:
foreach ($De099 as $a17f7) {
$Fc6a5[] = ["name" => $a17f7["name"] . " " . (mb_strlen($a17f7["value"]) > 100 ? mb_substr($a17f7["value"], 0, 100) . ".." : $a17f7["value"])];
c67ea:
}
goto ade46;
cff6b:
$ecc30 = $this->tagmangerPmap($C6158, $B49ec, $e9d1b);
goto A7e35;
d585c:
Ac50d:
goto cff6b;
d8c84:
aae5c:
goto Dd5b7;
c449f:
$be627 = isset($E88d3["item_list_name"]) ? $E88d3["item_list_name"] : '';
goto A4c88;
E7633:
$Be641 = number_format($c484b, 2, , '');
goto a0b0a;
Bfddb:
$Db528["linkwise_items"][] = ["product_id" => $ecc30, "name" => $fda0d, "price" => $Be641, "quantity" => $Ea153];
goto F27d4;
Bafd5:
b12a1:
goto Cf5b2;
f1009:
$Db528["twitter_items"][] = ["content_id" => $ecc30, "content_type" => "product", "content_name" => $fda0d, "num_items" => $Ea153, "content_price" => $C9402, "content_group_id" => ''];
goto A2b43;
d96b3:
$C9402 = number_format((float) $bdea5, 2, , '');
goto E7633;
c0501:
A81e0:
goto Ca736;
E7095:
if (!$dfa99) {
goto C50d0;
}
goto f4aab;
d6621:
if (isset($c513c["aw_tax_exclude"]) && $c513c["aw_tax_exclude"]) {
goto Ec4ed;
}
goto a8277;
de4c2:
$Efa9c = $bdea5 * $E4ccf["quantity"];
goto d96b3;
C8974:
if (!$c513c["snap_pixel_status"]) {
goto ca7af;
}
goto f8f49;
F1d89:
$C6158 = $B4f19["model"] ? $B4f19["model"] : $e9d1b;
goto d585c;
f1dea:
$c484b = $this->currency->format($E4ccf["price"], $cedc0["currency_code"], $cedc0["currency_value"], false);
goto e6c54;
e9e67:
if (!(isset($B4f19) && $this->check_array($B4f19))) {
goto Ac50d;
}
goto a39e8;
F8aeb:
if (!$c513c["performant_status"]) {
goto B22ee;
}
goto d57f9;
C071c:
if (!$c513c["skroutz_status"]) {
goto B75ce;
}
goto Dc298;
Fd153:
$Db528["aw_items"][] = ["id" => $ecc30, "quantity" => $Ea153, "price" => $Be641];
goto B3227;
A7e35:
$fda0d = $this->tagmangerPtitle($E4ccf["name"], $F2554, $C6158, $e9d1b);
goto e6db4;
ce03e:
c6c6d:
goto B2385;
c498d:
$D0fd4 = mb_substr($D0fd4, 0, 499);
goto e9e67;
a39e8:
$F2554 = $this->cleanStr($B4f19["manufacturer"]);
goto F145a;
a0b0a:
$Ea153 = $E4ccf["quantity"];
goto Ad5cf;
F8968:
goto B4efc;
goto c0501;
fe989:
B22ee:
goto B137b;
F9494:
eb30e:
goto Be413;
E598b:
$Db528["ga4_items"][] = ["item_id" => $ecc30, "item_name" => $fda0d, "item_brand" => $F2554, "item_category" => $C7834, "item_category2" => $C0d0c, "item_category3" => $fe36c, "item_category4" => $bf395, "item_category5" => $cda6c, "item_list_id" => $b249b, "item_list_name" => $be627, "item_variant" => $D0fd4, "affiliation" => isset($Cd42d) ? $Cd42d : '', "discount" => 0, "coupon" => isset($e962b) ? $e962b : '', "price" => $C9402, "currency" => $cedc0["currency_code"], "quantity" => $Ea153, "index" => $D27f1];
goto C3836;
d1e7a:
if (!$dfa99) {
goto Ecc87;
}
goto Afd9f;
f8f49:
$Db528["snapchat_items"][] = ["id" => $ecc30, "quantity" => $Ea153, "item_price" => number_format($Ff865, 2, , '')];
goto F95ec;
f7957:
$C0d0c = isset($E88d3["item_category2"]) ? $E88d3["item_category2"] : '';
goto eb7ff;
Cac0d:
$a458d = $c484b / $D1baf;
goto b462c;
c6dc2:
$Db528["ecom_totalvalue"] += $Efa9c;
goto B5aae;
e9dbc:
$Fc6a5 = [];
goto c1885;
A2b43:
e1eee:
goto C8974;
e3f2f:
$Db528["remarketing_ids"][] = ["id" => (string) $ecc30, "google_business_vertical" => "retail"];
goto d9e60;
D4c62:
if (!$c513c["linkwise_status"]) {
goto a0dee;
}
goto Bfddb;
A3a4b:
$Ff865 = $this->currency->format($c484b, $c513c["alt_currency"], 0, false);
goto Dcf93;
e2e66:
if (!$c513c["sendinblue_status"]) {
goto E7a05;
}
goto f893d;
Cae55:
$E88d3 = array();
goto f184f;
A4c88:
$C7834 = isset($E88d3["item_category"]) ? $E88d3["item_category"] : '';
goto f7957;
Bccf3:
Ecc87:
goto f10c8;
Fed50:
$Db528["admitad"][] = ["product_id" => $ecc30, "category" => isset($c513c["admitad_category"]) ? $c513c["admitad_category"] : "1", "price" => $C9402, "currency" => $cedc0["currency_code"], "quantity" => $Ea153, "type" => isset($c513c["admitad_additional_type"]) ? $c513c["admitad_additional_type"] : "sale"];
goto db3d9;
Cf5b2:
$De099 = $this->getOrderOptions($c58b0, $E4ccf["order_product_id"]);
goto Bb925;
c6e85:
A16a7:
goto e8b27;
e043c:
$bdea5 = $this->currency->format($E4ccf["price"] + ($this->config->get("config_tax") ? $E4ccf["tax"] : 0), $cedc0["currency_code"], $cedc0["currency_value"], false);
goto F1142;
Ad0ca:
goto d8249;
goto F5721;
f4aab:
$A9489 = $this->model_extension_module_dmt->getProductCost($e9d1b);
goto B4d8c;
Dcf93:
$c484b = $this->currency->format($c484b, $cedc0["currency_code"], $cedc0["currency_value"], false);
goto eee0b;
bd823:
$a458d = number_format((float) $a458d, 2, , '');
goto e9729;
d9d79:
if (!$c513c["twitter_status"]) {
goto e1eee;
}
goto f1009;
c1cc0:
goto c6c6d;
goto a08e3;
Cddaf:
$cda6c = isset($E88d3["item_category5"]) ? $E88d3["item_category5"] : '';
goto e043c;
B78b4:
$c2fce = $this->currency->format($E4ccf["total"] + ($this->config->get("config_tax") ? $E4ccf["tax"] * $E4ccf["quantity"] : 0), $c513c["alt_currency"], 0, false);
goto f1dea;
f184f:
$B49ec = '';
goto B7386;
d075e:
$Db528["order_desc"] .= "+" . $fda0d;
goto c1cc0;
e8b27:
if (!$F0b6e) {
goto b3206;
}
goto B9ced;
Fba29:
$E06bd = $bdea5;
goto E14d1;
eb7ff:
$fe36c = isset($E88d3["item_category3"]) ? $E88d3["item_category3"] : '';
goto C0f2f;
F1142:
$Ff056 = $this->currency->format($E4ccf["price"] + ($this->config->get("config_tax") ? $E4ccf["tax"] : 0), $c513c["alt_currency"], 0, false);
goto B81f1;
B4d8c:
C50d0:
goto Bafd5;
Be413:
$e9d1b = $E4ccf["product_id"];
goto b9d34;
b0174:
E64c1:
goto c498d;
B415f:
ad338:
goto d9d79;
e6db4:
$Ea555 = isset($E88d3["category"]) ? $E88d3["category"] : '';
goto cf383;
B9ced:
$a458d = 0;
goto b456e;
B81f1:
$Adddc = $this->currency->format($E4ccf["total"] + ($this->config->get("config_tax") ? $E4ccf["tax"] * $E4ccf["quantity"] : 0), $cedc0["currency_code"], $cedc0["currency_value"], false);
goto B78b4;
aa6a2:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto aae5c;
}
goto Fa72a;
E14d1:
$ce100 = $Efa9c;
goto aa6a2;
A2dba:
goto Ef1fd;
goto E9532;
d245d:
$E88d3 = $this->getProductCatName($e9d1b);
goto E7095;
C0f2f:
$bf395 = isset($E88d3["item_category4"]) ? $E88d3["item_category4"] : '';
goto Cddaf;
b456e:
if ($e92d3 != $c513c["currency"]) {
goto c9846;
}
goto C2905;
D0164:
$A881c = $cedc0["currency_code"];
goto Fba29;
b9d34:
$B4f19 = $this->model_extension_module_dmt->getProductInfo($e9d1b);
goto d245d;
b9208:
goto edfcd;
goto cce3b;
b462c:
d8249:
goto bd823;
B7386:
$C6158 = '';
goto ca5ee;
cce3b:
goto b12a1;
goto F9494;
C7dd0:
$B49ec = $B4f19["sku"];
goto F1d89;
E9a9a:
$Db528["bing_items"][] = ["id" => $ecc30, "price" => $C9402, "quantity" => $Ea153];
goto c6e85;
c7612:
}
goto Eb8f3;
D7737:
$Db528["matomo_items"] = [];
goto dfc10;
f7686:
Cbc27:
goto F5c34;
e4de8:
$Db528["number_of_items"] = 0;
goto c863c;
accf9:
foreach ($b5a78->rows as $c80f6) {
goto Aff04;
Ebfd1:
$a458d = $c484b / $D1baf;
goto ddb9a;
E1412:
A87ce:
goto Bd65d;
ae204:
goto de290;
goto c8ef3;
da353:
if ($e92d3 != $c513c["currency"]) {
goto fb9e2;
}
goto f4ddb;
ddb9a:
de290:
goto e7fc0;
B85ad:
$A881c = $c513c["tiktok_alt_currency"];
goto d2e79;
e6d2f:
$Db528["affiliate_gateway"][] = ["id" => $ecc30, "name" => $fda0d, "category" => "voucher", "brand" => '', "cat" => '', "quantity" => $Ea153, "price" => $C9402, "currency" => $cedc0["currency_code"]];
goto E1412;
Ec355:
A6681:
goto f737d;
a37a3:
$Db528["admitad"][] = ["product_id" => $ecc30, "category" => isset($c513c["admitad_category"]) ? $c513c["admitad_category"] : "1", "price" => $C9402, "currency" => $cedc0["currency_code"], "quantity" => $Ea153, "type" => isset($c513c["admitad_additional_type"]) ? $c513c["admitad_additional_type"] : "sale"];
goto f91ef;
Ac805:
goto A6681;
goto Cf84b;
d1087:
if (isset($c513c["fb_tax_exclude"]) && $c513c["fb_tax_exclude"]) {
goto E5136;
}
goto Cd5ad;
B477d:
$ce100 = $this->currency->format($ce100, $c513c["tiktok_alt_currency"], 0, false);
goto C9df1;
d0d18:
if (!$c513c["pinterest_status"]) {
goto cdeab;
}
goto d3e9e;
c5458:
F1046:
goto c47d3;
e7fc0:
$a458d = number_format((float) $a458d, 2, , '');
goto E3c09;
B15ea:
$fb30f = $c80f6["amount"];
goto fde77;
Aa0d3:
$c2fce = $this->currency->format($fb30f, $c513c["alt_currency"], 0, false);
goto b08ff;
Cd5ad:
$Db528["fb_contents"][] = ["id" => $ecc30, "quantity" => $Ea153, "item_price" => number_format((float) $Ff056, 2, , '')];
goto F6350;
f9b53:
$Db528["skroutz_items"][] = ["order_id" => $c58b0, "product_id" => $ecc30, "name" => $fda0d, "price" => $C9402, "quantity" => $Ea153];
goto c5458;
C3a35:
$Db528["tiktok_items"][] = ["content_category" => "Voucher", "content_name" => $fda0d, "price" => $E06bd, "content_id" => $ecc30, "quantity" => $Ea153, "brand" => '', "content_type" => "product", "description" => $fda0d, "currency" => $A881c, "value" => $ce100];
goto D8978;
abb43:
if (!$c513c["twitter_status"]) {
goto F1586;
}
goto da1f4;
D8978:
Fd943:
goto abb43;
A8666:
e63fb:
goto D80cb;
b4d88:
$Ff865 = $this->currency->format($fb30f, $c513c["alt_currency"], 0, false);
goto Ac805;
f4ddb:
$a458d = $c484b;
goto ae204;
C677b:
$Ff056 = $this->currency->format($fb30f, $c513c["alt_currency"], 0, false);
goto dcbf6;
C396e:
if (!$c513c["tiktok_status"]) {
goto Fd943;
}
goto e814e;
D80cb:
if (!$dfa99) {
goto Ea13d;
}
goto f6deb;
da1f4:
$Db528["twitter_items"][] = ["content_id" => $ecc30, "content_type" => "product", "content_name" => $fda0d, "num_items" => $Ea153, "content_price" => $C9402, "content_group_id" => ''];
goto E2dea;
Cb8de:
F175b:
goto d0d18;
E8550:
$ecc30 = $fda0d;
goto B15ea;
b08ff:
if ($d4bfa) {
goto A4f2f;
}
goto A82b7;
c6e0b:
if (!(!empty($fda0d) || !empty($bdea5))) {
goto A7c7a;
}
goto C6d6e;
B14f2:
if (!$c513c["bing_status"]) {
goto A1460;
}
goto C169a;
d3e9e:
$Db528["pinterest_items"][] = ["product_id" => $ecc30, "product_name" => $fda0d, "product_category" => "voucher", "product_variant" => '', "product_brand" => '', "product_quantity" => $Ea153, "product_price" => $C9402];
goto C4e4b;
Ae040:
if (!$c513c["matomo_status"]) {
goto Aa95a;
}
goto e9f36;
C4e4b:
cdeab:
goto B14f2;
a46cf:
A1460:
goto Bd99f;
fde77:
$bdea5 = $this->currency->format($fb30f, $cedc0["currency_code"], $cedc0["currency_value"], false);
goto C677b;
Ee649:
$D27f1++;
goto a3da5;
C9df1:
$E06bd = $this->currency->format($E06bd, $c513c["tiktok_alt_currency"], 0, false);
goto B85ad;
f737d:
$C9402 = number_format((float) $bdea5, 2, , '');
goto cc76b;
f5504:
$ce100 = $bdea5;
goto b5b37;
D21e3:
if (!$c513c["skroutz_status"]) {
goto F1046;
}
goto f9b53;
B3630:
a9230:
goto e8fa7;
f91ef:
bed49:
goto D21e3;
cd320:
A74bc:
goto C396e;
e9f36:
$Db528["matomo_items"][] = ["sku" => $fda0d, "name" => $fda0d, "category" => '', "price" => $C9402, "quantity" => $Ea153];
goto F7cba;
dcbf6:
$Adddc = $this->currency->format($fb30f, $cedc0["currency_code"], $cedc0["currency_value"], false);
goto Aa0d3;
cc76b:
$Be641 = number_format($c484b, 2, , '');
goto Eb0f9;
c0a81:
ef521:
goto d1087;
Eb0f9:
$Ea153 = 1;
goto c6e0b;
C6d6e:
$Db528["products"][] = ["name" => $fda0d, "title" => $fda0d, "model" => $fda0d, "pid" => $fda0d, "gtin" => '', "sku" => '', "product_id" => $fda0d, "category" => "Gift Voucher", "category_id" => "Gift Voucher", "brand" => '', "option" => array(), "quantity" => 1, "price" => $C9402, "fprice" => number_format((float) $Ff056, 2, , ''), "ex_price" => $c484b, "fex_price" => $Ff865, "ftotal" => number_format((float) $c2fce, 2, , ''), "total" => number_format((float) $Adddc, 2, , ''), "discount" => 0, "cost" => isset($A9489) ? $A9489 : 0];
goto c5a33;
D8985:
Ea13d:
goto F1b53;
E3c09:
$Db528["cj_items"][] = ["item_id" => $ecc30, "price" => $a458d, "quantity" => $Ea153, "discount" => 0];
goto Cb8de;
a3da5:
A7c7a:
goto B529f;
c8ef3:
fb9e2:
goto Ebfd1;
F1b53:
$Db528["fb_items"] = $Db528["fb_items"] + $Ea153;
goto cc1f8;
c5a33:
$Db528["ga4_items"][] = ["item_id" => $fda0d, "item_name" => $fda0d, "item_brand" => '', "item_category" => "Gift Voucher", "item_category2" => '', "item_category3" => '', "item_category4" => '', "item_category5" => '', "item_list_id" => '', "item_list_name" => '', "item_variant" => '', "affiliation" => '', "discount" => 0, "coupon" => '', "price" => $C9402, "currency" => $c513c["currency"], "quantity" => 1, "index" => $D27f1];
goto Ae040;
C5658:
$c484b = $this->currency->format($c484b, $cedc0["currency_code"], $cedc0["currency_value"], false);
goto Ec355;
d2e79:
d916d:
goto C3a35;
C169a:
$Db528["bing_items"][] = ["id" => $ecc30, "price" => $C9402, "quantity" => $Ea153];
goto a46cf;
b6e70:
if (!$F0b6e) {
goto F175b;
}
goto d60a9;
F6350:
goto e63fb;
goto f6315;
B7118:
$Ff865 = $this->currency->format($c484b, $c513c["alt_currency"], 0, false);
goto C5658;
f6315:
E5136:
goto C9a78;
d60a9:
$a458d = 0;
goto da353;
Cf84b:
A4f2f:
goto Ea858;
F1a77:
Fce0b:
goto b6e70;
Bc2d4:
if (isset($c513c["aw_tax_exclude"]) && $c513c["aw_tax_exclude"]) {
goto a9230;
}
goto f6934;
e7293:
$E06bd = $bdea5;
goto f5504;
b504e:
goto Fce0b;
goto B3630;
Ea858:
$c484b = $fb30f;
goto B7118;
A82b7:
$c484b = $this->currency->format($fb30f, $cedc0["currency_code"], $cedc0["currency_value"], false);
goto b4d88;
e814e:
$A881c = $cedc0["currency_code"];
goto e7293;
e8fa7:
$Db528["aw_items"][] = ["id" => $ecc30, "quantity" => $Ea153, "price" => $Be641];
goto F1a77;
cc1f8:
$D27f1++;
goto Ee649;
f6deb:
$A9489 += isset($E4ccf["cost"]) ? $E4ccf["cost"] * (int) $Ea153 : 0;
goto D8985;
E2dea:
F1586:
goto D5f0c;
B529f:
E5b78:
goto Aade8;
Bd65d:
if (!$c513c["admitad_status"]) {
goto bed49;
}
goto a37a3;
D5f0c:
if (!$c513c["snap_pixel_status"]) {
goto ef521;
}
goto dbdb7;
Aff04:
$fda0d = $this->cleanStr($c80f6["description"]);
goto E8550;
C9a78:
$Db528["fb_contents"][] = ["id" => $ecc30, "quantity" => $Ea153, "item_price" => number_format($Ff865, 2, , '')];
goto A8666;
F7cba:
Aa95a:
goto Bc2d4;
Bd99f:
if (!$c513c["performant_status"]) {
goto A87ce;
}
goto e6d2f;
c47d3:
if (!$c513c["linkwise_status"]) {
goto A74bc;
}
goto acab0;
b5b37:
if (!($c513c["tiktok_alt_currency_status"] && $c513c["tiktok_alt_currency"] != $c513c["currency"])) {
goto d916d;
}
goto B477d;
f6934:
$Db528["aw_items"][] = ["id" => $ecc30, "quantity" => $Ea153, "price" => $C9402];
goto b504e;
dbdb7:
$Db528["snapchat_items"][] = ["id" => $ecc30, "quantity" => $Ea153, "item_price" => number_format($Ff865, 2, , '')];
goto c0a81;
acab0:
$Db528["linkwise_items"][] = ["product_id" => $ecc30, "name" => $fda0d, "price" => $Be641, "quantity" => $Ea153];
goto cd320;
Aade8:
}
goto A4f4b;
d842b:
$Ddb25 = $c513c["tax"];
goto A48ee;
e3354:
goto Cbc27;
goto ad271;
dc3a4:
$e92d3 = isset($c513c["cj_currency"]) ? $c513c["cj_currency"] : $c513c["currency"];
goto A936a;
c6af1:
$b5a78 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_voucher WHERE order_id = '" . (int) $c58b0 . "'");
goto Cd114;
ad271:
dab69:
goto B04a4;
C6d21:
$F0b6e = true;
goto c0c2c;
A4f4b:
A798f:
goto a1a07;
b0d13:
$Db528["affiliate_gateway"] = [];
goto fa5f4;
fa5f4:
$Db528["admitad"] = [];
goto adeff;
C1af1:
goto dc5b5;
goto f5e37;
C9e33:
$Db528["tiktok_items"] = [];
goto Ca7f9;
adeff:
$Db528["skroutz_items"] = [];
goto d0fff;
E4294:
$this->load->model("extension/module/dmt");
goto e9226;
Cd114:
if (!$b5a78->num_rows) {
goto ffd81;
}
goto F81b2;
f2705:
$c8e6e = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_product WHERE order_id = '" . (int) $c58b0 . "'");
goto d0746;
c131c:
return $Db528;
goto A34f5;
e5a60:
$D27f1 = 1;
goto c41b3;
B97dc:
$Db528["ga4_items"] = [];
goto df8a1;
d0fff:
$Db528["linkwise_items"] = [];
goto C9e33;
c0c2c:
$D1baf = isset($c513c["cj_currency_value"]) && (int) $c513c["cj_currency_value"] > 0 ? (float) $c513c["cj_currency_value"] : 1;
goto dc3a4;
F81b2:
$D27f1 = 1;
goto accf9;
E1e59:
$Db528["products"] = [];
goto B97dc;
e83ad:
$Db528["fb_contents"] = [];
goto D7737;
F5c34:
if (isset($c513c["cj_status"]) && $c513c["cj_status"]) {
goto F3257;
}
goto De672;
a133e:
$Db528["cj_items"] = [];
goto D7f05;
a1a07:
ffd81:
goto c131c;
Fc3db:
$Db528["ex_ecom_totalvalue"] = 0;
goto e4de8;
A48ee:
if (isset($c513c["custom_cost_event"]) && $c513c["custom_cost_event"]) {
goto dab69;
}
goto Ef1c7;
dfc10:
$Db528["aw_items"] = [];
goto a133e;
c863c:
$Db528["cost"] = 0;
goto eb616;
B04a4:
$dfa99 = true;
goto f7686;
b392f:
$Db528["ecom_totalvalue"] = 0;
goto Fc3db;
ac135:
$Db528["snapchat_items"] = [];
goto e83ad;
A128e:
$Db528["pinterest_items"] = [];
goto Aae19;
Ca7f9:
$Db528["twitter_items"] = [];
goto ac135;
Ef1c7:
$dfa99 = false;
goto e3354;
df8a1:
$Db528["remarketing_ids"] = [];
goto b0d13;
e9226:
$c513c = $this->settings;
goto f2705;
f5e37:
F3257:
goto C6d21;
De672:
$F0b6e = false;
goto C1af1;
A34f5:
}
private function getOrderOptions($c58b0, $d704e)
{
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_option WHERE order_id = '" . (int) $c58b0 . "' AND order_product_id = '" . (int) $d704e . "'");
return $c63c0->rows;
}
private function getOrderTax($c58b0)
{
goto D7177;
D7177:
$c539c = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE order_id = '" . (int) $c58b0 . "' AND code = 'tax'");
goto db0db;
Aaf0a:
$cfb0a = $c539c->row["value"];
goto ad1a7;
ad1a7:
Db6a9:
goto cc388;
cc388:
return $cfb0a;
goto f8ce7;
ae22c:
if (!$c539c->num_rows) {
goto Db6a9;
}
goto Aaf0a;
db0db:
$cfb0a = "0.";
goto ae22c;
f8ce7:
}
private function getOrderShipping($c58b0)
{
goto cada0;
d07ba:
B53a4:
goto e85cd;
cada0:
$Bad31 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE order_id = '" . (int) $c58b0 . "' AND code = 'shipping'");
goto Abadb;
a5e50:
$Bdba7 = $Bad31->row["value"];
goto d07ba;
Be328:
if (!$Bad31->num_rows) {
goto B53a4;
}
goto a5e50;
Abadb:
$Bdba7 = "0.";
goto Be328;
e85cd:
return $Bdba7;
goto e42fc;
e42fc:
}
private function getOrderCoupon($c58b0)
{
goto B669f;
C623e:
$fb7f0 = $ac2bb->row["title"];
goto aadf9;
e42b1:
if (!$ac2bb->num_rows) {
goto a636f;
}
goto C623e;
C256f:
$fb7f0 = '';
goto e42b1;
B669f:
$ac2bb = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE order_id = '" . (int) $c58b0 . "' AND code = 'coupon'");
goto C256f;
c3af8:
return $fb7f0;
goto F9e1f;
aadf9:
a636f:
goto c3af8;
F9e1f:
}
private function getOrderTotalAdjustment($c58b0, $f5425)
{
goto Bcc69;
Daa3a:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE \xd\xa \x9 \x9order_id = '" . (int) $c58b0 . "' AND \xd\xa \x9 code = 'sub_total'");
goto af8a0;
ab514:
$a13d2 = $c63c0->row["value"];
goto c41fe;
c41fe:
E6599:
goto Eed3a;
df189:
if (!isset($c513c["total_plus"]) || !isset($c513c["total_minus"])) {
goto d55c2;
}
goto Bf5e0;
a6079:
$b199f = 0;
goto a214c;
A0191:
$Ddb25 = $c513c["tax"];
goto df189;
Efbf7:
$d4bfa = $c513c["override_tax"];
goto A0191;
E2c08:
return $Db528;
goto f3bab;
Bcc69:
$c513c = $this->config();
goto d9613;
fad8f:
$Db528 = ["plus" => $d5895 * $f5425, "minus" => $b199f * $f5425, "sub_total" => $a13d2 * $f5425, "order_totals" => $f3d77];
goto E2c08;
af8a0:
if (!$c63c0->num_rows) {
goto E6599;
}
goto ab514;
Bdf36:
$f3d77 = [];
goto Efbf7;
fa619:
$Dfc7f = ["cod_fee", "codfee_payment", "handling", "klarna_fee", "low_order_fee", "advancedcodfee", "xfeepro"];
goto e9256;
a214c:
$a13d2 = 0;
goto Bdf36;
acab5:
if (!$c63c0->num_rows) {
goto d623f;
}
goto c51c1;
Eb573:
if (!$d4bfa) {
goto B7b35;
}
goto b1d6c;
bf479:
d55c2:
goto fa619;
C2360:
$b199f = $b199f / $Ddb25;
goto E675a;
abfd3:
foreach ($Dfc7f as $f48ff) {
goto E2dc5;
Bdc4f:
ed9ce:
goto ca1a4;
ca1a4:
cd527:
goto Dddc2;
d60b7:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE
\xa\x9\x9 \x9order_id = '" . (int) $c58b0 . "' AND
\xa \x9\x9ode = '" . $this->db->escape($f48ff) . "'");
goto de1de;
c3bc9:
Fcbbf:
goto efb2b;
Dddc2:
E05b8:
goto c3bc9;
de1de:
if (!$c63c0->num_rows) {
goto cd527;
}
goto d65d0;
d65d0:
if (!($c63c0->row["code"] == "xfeepro" && $c63c0->row["value"] > 0)) {
goto ed9ce;
}
goto a39a8;
a39a8:
$d5895 = $d5895 + $c63c0->row["value"];
goto Bdc4f;
E2dc5:
if (empty($f48ff)) {
goto E05b8;
}
goto d60b7;
efb2b:
}
goto D4882;
Eed3a:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE \xd
\x9\x9 \x9order_id = '" . (int) $c58b0 . "'");
goto acab5;
d9613:
$d5895 = 0;
goto a6079;
Cd460:
foreach ($ac441 as $f48ff) {
goto D212d;
Ad57f:
A8e26:
goto fcb90;
c5422:
if (!($c63c0->row["code"] == "xfeepro" && $c63c0->row["value"] < 0)) {
goto Fb044;
}
goto fddfe;
D212d:
if (empty($f48ff)) {
goto A8e26;
}
goto Bc35e;
Bc35e:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_total WHERE
\x9\x9 order_id = '" . (int) $c58b0 . "' AND \xd\xa\x9\x9\x9 code = '" . $this->db->escape($f48ff) . "'");
goto E8183;
b4d53:
d6275:
goto Ad57f;
fddfe:
$b199f = $b199f + $c63c0->row["value"];
goto E0c12;
E8183:
if (!$c63c0->num_rows) {
goto d6275;
}
goto c5422;
fcb90:
Ea17a:
goto b20eb;
E0c12:
Fb044:
goto b4d53;
b20eb:
}
goto Ee239;
b1d6c:
$d5895 = $d5895 / $Ddb25;
goto C2360;
E675a:
B7b35:
goto fad8f;
f27eb:
d623f:
goto Eb573;
C02af:
da88c:
goto abfd3;
Ee239:
Dae31:
goto Daa3a;
D4882:
E4226:
goto Cd460;
Bf5e0:
$Dfc7f = $c513c["total_plus"];
goto c493b;
e9256:
$ac441 = ["credit", "reward", "voucher", "payment_discount", "xfeepro"];
goto C02af;
e2b31:
goto da88c;
goto bf479;
c493b:
$ac441 = $c513c["total_minus"];
goto e2b31;
c51c1:
$f3d77 = $c63c0;
goto f27eb;
f3bab:
}
private function getOptionPrice($e9d1b, $De099, $bdea5, $Ea153)
{
goto a90d7;
b0b5a:
$c97c7 = 0;
goto E12c0;
Bffdc:
b9b35:
goto b0b5a;
D044c:
foreach ($De099 as $A520f => $f5425) {
goto fe93f;
Cd972:
$aeaf3 = $this->db->query("SELECT pov.option_value_id, ovd.name, pov.quantity, pov.subtract, pov.price, pov.price_prefix, pov.points, pov.points_prefix, pov.weight, pov.weight_prefix FROM " . DB_PREFIX . "product_option_value pov LEFT JOIN " . DB_PREFIX . "option_value ov ON (pov.option_value_id = ov.option_value_id) LEFT JOIN " . DB_PREFIX . "option_value_description ovd ON (ov.option_value_id = ovd.option_value_id) WHERE pov.product_option_value_id = '" . (int) $f5425 . "' AND pov.product_option_id = '" . (int) $A520f . "' AND ovd.language_id = '" . (int) $this->config->get("config_language_id") . "'");
goto e5687;
c5269:
$c97c7 += $aeaf3->row["price"];
goto bea09;
Aba7c:
B7af2:
goto bf71d;
e18cf:
fe203:
goto Bca03;
F0a0d:
if ($aeaf3->row["price_prefix"] == "-") {
goto B7af2;
}
goto eb171;
B1238:
F441a:
goto ba3e0;
b7943:
goto b9db0;
goto E693d;
fe93f:
$d5dbc = $this->db->query("SELECT po.product_option_id, po.option_id, od.name, o.type FROM " . DB_PREFIX . "product_option po LEFT JOIN `" . DB_PREFIX . "option` o ON (po.option_id = o.option_id) LEFT JOIN " . DB_PREFIX . "option_description od ON (o.option_id = od.option_id) WHERE po.product_option_id = '" . (int) $A520f . "' AND po.product_id = '" . (int) $e9d1b . "' AND od.language_id = '" . (int) $this->config->get("config_language_id") . "'");
goto B638e;
D0ecb:
acca6:
goto c5269;
Ab332:
foreach ($f5425 as $f14be) {
goto E1e0b;
Bce3e:
if ($aeaf3->row["price_prefix"] == "+") {
goto df41c;
}
goto f80ed;
e494a:
df41c:
goto fb69b;
f80ed:
if ($aeaf3->row["price_prefix"] == "-") {
goto Eb0c1;
}
goto Bf062;
dd343:
fe2a8:
goto A9aca;
b238d:
$c97c7 -= $aeaf3->row["price"];
goto b1716;
Bf062:
goto E0734;
goto e494a;
D46c5:
Eb0c1:
goto b238d;
Bedb5:
goto E0734;
goto D46c5;
b1716:
E0734:
goto d6c61;
e2ee1:
if (!$aeaf3->num_rows) {
goto Bf832;
}
goto Bce3e;
fb69b:
$c97c7 += $aeaf3->row["price"];
goto Bedb5;
d6c61:
Bf832:
goto dd343;
E1e0b:
$aeaf3 = $this->db->query("SELECT pov.option_value_id, pov.quantity, pov.subtract, pov.price, pov.price_prefix, pov.points, pov.points_prefix, pov.weight, pov.weight_prefix, ovd.name FROM " . DB_PREFIX . "product_option_value pov LEFT JOIN " . DB_PREFIX . "option_value_description ovd ON (pov.option_value_id = ovd.option_value_id) WHERE pov.product_option_value_id = '" . (int) $f14be . "' AND pov.product_option_id = '" . (int) $A520f . "' AND ovd.language_id = '" . (int) $this->config->get("config_language_id") . "'");
goto e2ee1;
A9aca:
}
goto e18cf;
E693d:
f1f24:
goto Ab332;
e4f74:
goto b9db0;
goto A76a8;
eb171:
goto D4659;
goto D0ecb;
d24e2:
b9db0:
goto E3591;
bf71d:
$c97c7 -= $aeaf3->row["price"];
goto D3a33;
A76a8:
Def4b:
goto Cd972;
D3a33:
D4659:
goto f0d81;
f0d81:
a41c0:
goto b7943;
Cfd75:
if ($d5dbc->row["type"] == "checkbox" && is_array($f5425)) {
goto f1f24;
}
goto D693d;
D693d:
if ($d5dbc->row["type"] == "text" || $d5dbc->row["type"] == "textarea" || $d5dbc->row["type"] == "file" || $d5dbc->row["type"] == "date" || $d5dbc->row["type"] == "datetime" || $d5dbc->row["type"] == "time") {
goto a0399;
}
goto e4f74;
E7dac:
if ($aeaf3->row["price_prefix"] == "+") {
goto acca6;
}
goto F0a0d;
Bca03:
goto b9db0;
goto Ee763;
B638e:
if (!$d5dbc->num_rows) {
goto bb58a;
}
goto b3d03;
bea09:
goto D4659;
goto Aba7c;
Ee763:
a0399:
goto d24e2;
e5687:
if (!$aeaf3->num_rows) {
goto a41c0;
}
goto E7dac;
E3591:
bb58a:
goto B1238;
b3d03:
if ($d5dbc->row["type"] == "select" || $d5dbc->row["type"] == "radio") {
goto Def4b;
}
goto Cfd75;
ba3e0:
}
goto B4870;
a90d7:
if (!(!isset($e9d1b) || !isset($De099))) {
goto b9b35;
}
goto Fd25e;
Fd25e:
return false;
goto Bffdc;
E12c0:
$Fc6a5 = [];
goto D044c;
f8ba8:
return $c97c7;
goto F8b28;
B4870:
F834e:
goto f8ba8;
F8b28:
}
public function getCustomerHistory($ba42e, $c58b0 = false)
{
goto fc5c0;
fc5c0:
$Adddc = 0;
goto ae8b6;
B4936:
A0c31:
goto Eeeb5;
Bc3d8:
c29a7:
goto cc2c4;
Eeeb5:
$Db528 = ["new_customer" => $F2ffe, "total" => number_format((float) $Adddc, 2, , '')];
goto F2d06;
Cfb57:
if (!$c63c0->num_rows) {
goto fae0a;
}
goto a8a2e;
cc2c4:
fae0a:
goto B4936;
a8a2e:
foreach ($c63c0->rows as $f2de0) {
goto d1245;
F6a70:
$Adddc += $B6c45->row["value"];
goto b16c6;
b16c6:
$cec2f++;
goto D4940;
d1245:
$c58b0 = $f2de0["order_id"];
goto dbb95;
Ae0af:
if (!$B6c45->num_rows) {
goto E0478;
}
goto c0c9f;
d11c2:
efff2:
goto d5c69;
c0c9f:
$F2ffe = false;
goto F6a70;
dbb95:
$B6c45 = $this->db->query("SELECT * FROM `" . DB_PREFIX . "order_total` WHERE order_id = '" . (int) $c58b0 . "' AND code = 'total'");
goto Ae0af;
D4940:
E0478:
goto d11c2;
d5c69:
}
goto Bc3d8;
ae8b6:
$cec2f = 0;
goto C4085;
D007f:
$c63c0 = $this->db->query("SELECT order_id FROM `" . DB_PREFIX . "order` WHERE email = '" . $this->db->escape($ba42e) . "' AND order_id != " . (int) $c58b0);
goto Cfb57;
Dfc9b:
if (!(isset($ba42e) && !empty($ba42e) && $c58b0)) {
goto A0c31;
}
goto D007f;
F2d06:
return $Db528;
goto Bcd5d;
C4085:
$F2ffe = true;
goto Dfc9b;
Bcd5d:
}
public function GAorderAdd($c58b0, $Db528)
{
goto Ba533;
f3ac5:
$ff2c6 = isset($c513c["ttp"]) ? $c513c["ttp"] : '';
goto A08c7;
A08c7:
$bc793 = isset($c513c["ttclid"]) ? $c513c["ttclid"] : '';
goto Dfc38;
a3701:
$this->saveOrderID($c58b0);
goto Bbf02;
Ac309:
d8735:
goto e821c;
e18f9:
if (!(empty($c3845) && isset($c513c["$external_id"]))) {
goto cd21a;
}
goto Ba1c2;
C13b3:
if (isset($c58b0) && isset($Db528) && isset($Db528["currency_code"])) {
goto F5d1b;
}
goto af722;
c8ffa:
fd0f4:
goto D6a49;
af722:
if (!$this->dmt_debug) {
goto fd0f4;
}
goto F291e;
a28a9:
$c513c = $this->config();
goto e7181;
af52d:
F5d1b:
goto a3701;
d61db:
$Ad464 = isset($c513c["fbc"]) ? $c513c["fbc"] : '';
goto f3ac5;
e821c:
D37a6:
goto c24f3;
Dfc38:
$Ba26b = isset($c513c["sc_click_id"]) ? $c513c["sc_click_id"] : '';
goto A6b02;
D0cd2:
$C491d = isset($c513c["fbp"]) ? $c513c["fbp"] : '';
goto d61db;
Ba533:
$E2248 = '';
goto a28a9;
aa1f3:
cd21a:
goto C13b3;
f8bf3:
if ($c63c0->num_rows) {
goto d8735;
}
goto e72e6;
Bbf02:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "analytics_tracking WHERE order_id = '" . (int) $c58b0 . "'");
goto f8bf3;
Dfafc:
$e7e18 = $this->eventid();
goto D0cd2;
Ac2f2:
$ffe3b = isset($c513c["gclid"]) ? $c513c["gclid"] : '';
goto e18f9;
e7181:
$c3845 = isset($c513c["user_id"]) ? $c513c["user_id"] : '';
goto Dfafc;
e72e6:
$this->db->query("INSERT INTO `" . DB_PREFIX . "analytics_tracking` SET \xd\xa order_id = '" . (int) $c58b0 . "',
\xa cid = '" . $this->db->escape($c513c["cid"]) . "',\xd
\x9 \x9 currency_code = '" . $this->db->escape($Db528["currency_code"]) . "',\xd\xa \x9 \x9 currency_id = '" . $this->db->escape($Db528["currency_id"]) . "',
\x9\x9 uid = '" . $this->db->escape($c3845) . "',\xd\xa\x9\x9 \x9 gclid = '" . $this->db->escape($ffe3b) . "',
\x9 \x9 ul = '" . $this->db->escape($c513c["language"]) . "',\xd\xa \x9 ip = '" . $this->db->escape($Db528["ip"]) . "',\xd
\x9 \x9 user_agent = '" . $this->db->escape($Db528["user_agent"]) . "',
\x9 tid = '" . (isset($c513c["ga4_mid"]) ? $this->db->escape($c513c["ga4_mid"]) : '') . "',
\xa \x9 \x9 event_id = '" . $this->db->escape($e7e18) . "',
\x9 \x9 fbp = '" . $this->db->escape($C491d) . "',\xd
\x9\x9\x9\x9 fbc = '" . $this->db->escape($Ad464) . "',
\x9\x9 \x9 ttp = '" . $this->db->escape($ff2c6) . "',\xd\xa\x9\x9\x9\x9 ttclid = '" . $this->db->escape($bc793) . "',
\x9 \x9 sc_click_id = '" . $this->db->escape($Ba26b) . "',
\xa\x9 \x9 sc_cookie1 = '" . $this->db->escape($f825c) . "'");
goto Ac309;
D6a49:
goto D37a6;
goto af52d;
Ba1c2:
$c3845 = $c513c["external_id"];
goto aa1f3;
F291e:
$this->Log("DMT Debug log: Error GAorderAdd empty data OrderID: " . $c58b0);
goto c8ffa;
A6b02:
$f825c = isset($c513c["sc_cookie1"]) ? $c513c["sc_cookie1"] : '';
goto Ac2f2;
c24f3:
}
public function GAgetOrder($c58b0)
{
goto E0ac7;
F14af:
$c63c0 = $this->db->query("SELECT * from `" . DB_PREFIX . "analytics_tracking` WHERE order_id = '" . (int) $c58b0 . "'");
goto da396;
E0ac7:
if (!(isset($c58b0) && !empty($c58b0))) {
goto Fa5b8;
}
goto F14af;
D4888:
Fa5b8:
goto A13a2;
A13a2:
return false;
goto C5a5d;
da396:
if (!$c63c0->num_rows) {
goto cbc04;
}
goto Dc889;
C6f02:
cbc04:
goto D4888;
Dc889:
return $c63c0->row;
goto C6f02;
C5a5d:
}
public function GAgetOrderEvent($c58b0)
{
goto Fb932;
Ecf06:
$Db528 = false;
goto Ac5e4;
Ac5e4:
if (!$c63c0->num_rows) {
goto Bf545;
}
goto e97ae;
Df3af:
Bf545:
goto C455c;
Fb932:
if (!(isset($c58b0) && !empty($c58b0))) {
goto B7987;
}
goto Fe150;
Fe150:
$c63c0 = $this->db->query("SELECT event_id from `" . DB_PREFIX . "analytics_tracking` WHERE order_id = '" . (int) $c58b0 . "'");
goto Ecf06;
D0508:
return $Db528;
goto a89d9;
C455c:
B7987:
goto D0508;
e97ae:
$Db528 = $c63c0->row["event_id"];
goto Df3af;
a89d9:
}
public function GAupdateorder($c58b0)
{
goto fa659;
dad3d:
return true;
goto dc64d;
fc4e7:
return false;
goto B87ae;
fa659:
if (!(isset($c58b0) && !empty($c58b0))) {
goto Ddd12;
}
goto Ff2c7;
dc64d:
Ddd12:
goto fc4e7;
Ff2c7:
$this->db->query("UPDATE `" . DB_PREFIX . "analytics_tracking` SET hit = '1' WHERE order_id = '" . (int) $c58b0 . "'");
goto dad3d;
B87ae:
}
public function OrderStatusCheck($c58b0)
{
goto Ee80c;
dfde5:
if (!$c63c0->num_rows) {
goto F5d74;
}
goto d7cf5;
Aaf45:
A9d56:
goto D8b56;
Ee80c:
$acea5 = false;
goto e700d;
be08a:
F5d74:
goto Aaf45;
D2801:
$c63c0 = $this->db->query("SELECT order_id, order_status_id from `" . DB_PREFIX . "order` WHERE order_id = '" . (int) $c58b0 . "'");
goto Cda70;
Cda70:
$acea5 = 0;
goto dfde5;
d7cf5:
$acea5 = $c63c0->row["order_status_id"];
goto be08a;
e700d:
if (!(isset($c58b0) && (int) $c58b0 > 0)) {
goto A9d56;
}
goto D2801;
D8b56:
return $acea5;
goto Bf84f;
Bf84f:
}
private function DeliveryEstimate($Be0ef, $Fd3fc = 7, $C3fdb = null)
{
goto ffaa5;
E8f7e:
Ef574:
goto a73d0;
c8dec:
$Abf1f = false;
goto dfa23;
a506b:
F3156:
goto d50a5;
f0341:
goto f044a;
goto aee3a;
C87bf:
if ($C3fdb == "customshipping.customshipping0") {
goto Cc8c1;
}
goto a583a;
dfa23:
$C568c = 3;
goto d4007;
D57ce:
bcfbb:
goto f0341;
d2f25:
goto A3d93;
goto D4117;
fe3a3:
Bd900:
goto Bfe53;
fd33b:
Ea950:
goto Ea789;
Ef827:
$a02cb = "3-5 days";
goto e62f5;
C0a46:
f57fa:
goto Ac046;
b3b84:
$C568c = 1;
goto bcb3a;
e2ec2:
cb327:
goto bed30;
f96fc:
F5da5:
goto C87bf;
b1666:
$C568c = 0;
goto Ec1d8;
B4f10:
if (time() <= strtotime($Be0ef)) {
goto C897d;
}
goto c8dec;
aa48d:
$ba944 = $D9908 + 7 * 24 * 60 * 60;
goto a7c28;
af7a9:
$ba944 = $D9908 + 2 * 24 * 60 * 60;
goto F4d76;
a0b4c:
if (!($A7d53 == 7)) {
goto b342e;
}
goto bbb8a;
A6ded:
add4c:
goto B4f10;
e01ed:
$Abf1f = true;
goto b1666;
A1fc9:
$a02cb = "5 days";
goto aa48d;
B487e:
if ($A7d53 < 5) {
goto c3bf1;
}
goto fea14;
B1cdb:
$A7d53 = date("N", time());
goto B487e;
bcb3a:
b342e:
goto f0de9;
A2d9e:
$a02cb = "1 day";
goto ddc65;
F1a2a:
Cc8c1:
goto Ef827;
F3666:
f044a:
goto dc2d6;
Ac046:
$Abf1f = false;
goto F0863;
E3926:
$ba944 = $D9908 + 3 * 24 * 60 * 60;
goto E8f7e;
a7c28:
goto Fc0dd;
goto a506b;
E179d:
if (isset($C3fdb) && $C3fdb) {
goto F5da5;
}
goto E43a3;
d50a5:
$a02cb = "1 days";
goto af7a9;
Bfe53:
goto Ef574;
goto dc41f;
dc2d6:
$D9908 = time() + $C568c * 24 * 60 * 60;
goto E179d;
aa7ae:
goto a7f42;
goto a018c;
Ea789:
return $ba944;
goto D4d79;
D4117:
df209:
goto B9597;
de864:
F3a23:
goto A2d9e;
bed30:
goto bcfbb;
goto A6ded;
a426c:
$a02cb = "2 days";
goto E3926;
F4d76:
Fc0dd:
goto d2f25;
ffaa5:
date_default_timezone_set("Europe/London");
goto B1cdb;
Ae582:
if ($C3fdb == "customshipping.customshipping2") {
goto F3a23;
}
goto E50f1;
F0863:
$C568c = 2;
goto e2ec2;
a583a:
if ($C3fdb == "customshipping.customshipping1") {
goto a6fe6;
}
goto Ae582;
bda52:
B0df0:
goto fd33b;
E50f1:
if ($C3fdb == "customshipping.customshipping3") {
goto df209;
}
goto fcb44;
A0950:
A1178:
goto D57ce;
E43a3:
$ba944 = $D9908 + $Fd3fc * 24 * 60 * 60;
goto f9542;
Eee88:
goto Bd900;
goto de864;
aee3a:
c3bf1:
goto Cc324;
d4007:
goto A1178;
goto c1922;
f9542:
goto Ea950;
goto f96fc;
Cad13:
$ba944 = $D9908 + 2 * 24 * 60 * 60;
goto D24d9;
f0b37:
$C568c = 0;
goto A0950;
Ec1d8:
a7f42:
goto F3666;
a73d0:
goto B0df0;
goto F1a2a;
dc41f:
a6fe6:
goto a426c;
D24d9:
A3d93:
goto Eee88;
B9597:
$a02cb = "1 days";
goto Cad13;
bbb8a:
$Abf1f = false;
goto b3b84;
e62f5:
$ba944 = $D9908 + 7 * 24 * 60 * 60;
goto bda52;
Cc324:
if (time() <= strtotime($Be0ef)) {
goto E9af1;
}
goto Fa347;
fea14:
if ($A7d53 == 5) {
goto add4c;
}
goto Ed84f;
f0de9:
goto cb327;
goto C0a46;
a018c:
E9af1:
goto e01ed;
Fa347:
$Abf1f = false;
goto cc2de;
c1922:
C897d:
goto F1a50;
cc2de:
$C568c = 1;
goto aa7ae;
fcb44:
if ($C3fdb == "customshipping.customshipping4") {
goto F3156;
}
goto A1fc9;
Ed84f:
if ($A7d53 == 6) {
goto f57fa;
}
goto a0b4c;
ddc65:
$ba944 = $D9908 + 2 * 24 * 60 * 60;
goto fe3a3;
F1a50:
$Abf1f = true;
goto f0b37;
D4d79:
}
private function getSizeAndColorOptionMap($e9d1b, $E2e5e)
{
goto c0c63;
fb08a:
$D41fd = $this->googleshopping->getProductOptionValueNames($e9d1b, $this->config->get("config_language_id"), $ea47f);
goto D37e4;
ed0b5:
$f7824 = $this->googleshopping->getProductOptionValueNames($e9d1b, $this->config->get("config_language_id"), $A9314);
goto fb08a;
D37e4:
$Ef8ea = ["groups" => $Cd274, "colors" => count($f7824) > 1 ? $f7824 : null, "sizes" => count($D41fd) > 1 ? $D41fd : null];
goto edf97;
c0c63:
$A9314 = $this->getOptionId($e9d1b, $E2e5e, "color");
goto e88d7;
e88d7:
$ea47f = $this->getOptionId($e9d1b, $E2e5e, "size");
goto a58d1;
a58d1:
$Cd274 = $this->googleshopping->getGroups($e9d1b, $this->config->get("config_language_id"), $A9314, $ea47f);
goto ed0b5;
edf97:
return $Ef8ea;
goto Aaf81;
Aaf81:
}
private function getCountry($e86c0)
{
goto D2d6a;
E87fd:
dfd3f:
goto e129b;
bc236:
if (!(isset($c513c["cache"]) && $c513c["cache"] == "1")) {
goto Dd2da;
}
goto A9017;
aa023:
Dd2da:
goto Dbf04;
fe5d9:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "country WHERE country_id = '" . (int) $e86c0 . "'");
goto d55f9;
d55f9:
$Db528 = $c63c0->row;
goto bc236;
Db055:
$Db528 = $this->cache->get("dmt.country." . $e86c0);
goto c8dd7;
Dbf04:
return $Db528;
goto f5ccf;
A9017:
$this->cache->set("dmt.country." . $e86c0, $Db528);
goto aa023;
e129b:
$Db528 = [];
goto fe5d9;
c8dd7:
F8bfd:
goto E97d1;
E97d1:
if (!$Db528) {
goto dfd3f;
}
goto df487;
F5d51:
if (!(isset($c513c["cache"]) && $c513c["cache"])) {
goto F8bfd;
}
goto Db055;
D2d6a:
$c513c = $this->settings;
goto fc093;
fc093:
$Db528 = false;
goto F5d51;
df487:
return $Db528;
goto E87fd;
f5ccf:
}
private function getSettings($f48ff, $F54aa = "date_modified", $f5425 = false, $D8f0d = false)
{
goto a58bf;
Dc23d:
$this->db->query("INSERT INTO " . DB_PREFIX . "setting SET store_id = '0', `group` = '" . $this->db->escape($f48ff) . "', `key` = '" . $this->db->escape($F54aa) . "', `value` = '" . $this->db->escape($f5425) . "'");
goto aea2b;
fd6e4:
goto d0dec;
goto bf21a;
a58bf:
if ($D8f0d) {
goto f1762;
}
goto f5b5a;
aea2b:
d0dec:
goto ea024;
D0b1d:
$this->db->query("DELETE FROM `" . DB_PREFIX . "setting` WHERE `group` = '" . $this->db->escape($f48ff) . "'");
goto Dc23d;
f90e2:
$this->db->query("INSERT INTO " . DB_PREFIX . "setting SET store_id = 8', `code` = '" . $this->db->escape($f48ff) . "', `key` = '" . $this->db->escape($F54aa) . "', `value` = '" . $this->db->escape($f5425) . "'");
goto fd6e4;
f5b5a:
if (substr(VERSION, 0, 1) == "1") {
goto F3ebb;
}
goto D0e9a;
c1a3f:
$this->db->query("DELETE FROM `" . DB_PREFIX . "setting` WHERE `key` = '" . $this->db->escape($f48ff) . "'");
goto c4ee4;
D0e9a:
$this->db->query("DELETE FROM `" . DB_PREFIX . "setting` WHERE `code` = '" . $this->db->escape($f48ff) . "'");
goto f90e2;
ea024:
goto Adc3e;
goto edf1c;
c4ee4:
Adc3e:
goto Af310;
edf1c:
f1762:
goto c1a3f;
bf21a:
F3ebb:
goto D0b1d;
Af310:
}
private function getSettingValue($F54aa, $E2e5e = 0)
{
goto Ec861;
Da559:
$c63c0 = $this->db->query("SELECT value FROM " . DB_PREFIX . "setting WHERE store_id = '" . (int) $E2e5e . "' AND `key` = '" . $this->db->escape($F54aa) . "'");
goto e7fa1;
Ec861:
$Db528 = false;
goto bca71;
f1feb:
$Db528 = $c63c0->row["value"];
goto c104d;
C4219:
ae0d1:
goto D63bb;
Ee6f1:
if ($Db528) {
goto ae0d1;
}
goto Da559;
D63bb:
return $Db528;
goto f9f44;
e7fa1:
if (!$c63c0->num_rows) {
goto A9254;
}
goto f1feb;
c104d:
$this->cache->set("dmt.settings." . $F54aa . . $E2e5e, $Db528);
goto Ea895;
Ea895:
A9254:
goto C4219;
bca71:
$Db528 = $this->cache->get("dmt.settings." . $F54aa . . $E2e5e);
goto Ee6f1;
f9f44:
}
public function formatUserdata($c513c = false)
{
goto Bd7a0;
Ce069:
if (!(!empty($Ad464) && $Ad464)) {
goto B0804;
}
goto E5ecc;
Ed9ce:
A1e0e:
goto db6ae;
Dac26:
$Db528["user_data"] = [];
goto f098a;
b20f4:
E650c:
goto Ab723;
c2e60:
f0397:
goto D41de;
E80e9:
B17d8:
goto e1ab1;
e94d5:
c3a1e:
goto Bfe0a;
d3528:
cef6c:
goto Dbe21;
Ba3f8:
$Db528["user_data"]["address"]["sha2_first_name"] = $aaedc["fn"];
goto a808b;
b7925:
if ($aaedc["fbp"]) {
goto A6118;
}
goto D4059;
B99ff:
$C85f9 = ["user_agent" => $aaedc["user_agent"], "client_ip_address" => $aaedc["ip_address"]];
goto Fb0e2;
e9057:
$C85f9["sc_cookie1"] = $f825c;
goto A8fee;
f8bbd:
$C85f9["external_id"] = $aaedc["external_id_hash"];
goto b20f4;
aa811:
$Db528["pixel_user_data"]["fbp"] = $C491d;
goto f6536;
E97a9:
return false;
goto f9c4a;
Ba351:
if (empty($f825c)) {
goto E5c67;
}
goto e9057;
c838c:
$Db528["tiktok_user_data"] = ["email" => $aaedc["em"], "phone" => $aaedc["ph_e164"], "external_id" => $aaedc["external_id_hash"], "ttp" => $ff2c6, "ttclid" => $bc793, "ip" => $aaedc["ip_address"], "user_agent" => $aaedc["user_agent"], "first_name" => $aaedc["fn"], "last_name" => $aaedc["ln"], "city" => $aaedc["ct"], "state" => $aaedc["st"], "zip_code" => $aaedc["pc"], "country" => $aaedc["cc"]];
goto d3528;
Ccca3:
Ebd3b:
goto Fa13e;
Fa13e:
if (!$c513c["tiktok_status"]) {
goto cef6c;
}
goto Cf914;
cefe1:
if (isset($c513c["ttclid"]) && !empty($c513c["ttclid"])) {
goto f0397;
}
goto Bcdbc;
A8fee:
E5c67:
goto a3e88;
Bfe0a:
if (!$c513c["snap_pixel_status"]) {
goto Ebd3b;
}
goto a06e6;
B7855:
$C85f9["ph"] = $aaedc["ph"];
goto b39c0;
f9c4a:
Ca28b:
goto C1121;
e861d:
if (empty($aaedc["country"])) {
goto c78ab;
}
goto F6119;
Cfce9:
$Db528["user_data"]["address"] = [];
goto Ba3f8;
e1ab1:
if (empty($aaedc["ct"])) {
goto B8a68;
}
goto Cd39b;
bbfc6:
goto F0664;
goto c2e60;
d3d2a:
if ($aaedc["fbc"]) {
goto A9958;
}
goto A649d;
c6c2a:
$C85f9["zp"] = $aaedc["pc"];
goto E2223;
b6a23:
if (isset($c513c["sccid"]) && !empty($c513c["sccid"])) {
goto B97f9;
}
goto f299c;
a06e6:
$f3f62 = $c513c["snap_pixel_id"];
goto A7a34;
a8239:
if (!(!empty($C491d) && $C491d)) {
goto d970b;
}
goto aa811;
Cd39b:
$C85f9["ct"] = $aaedc["ct"];
goto a90ef;
D4059:
$C491d = $this->gtm->getFbp();
goto acdec;
C1121:
$Db528 = [];
goto Ccb19;
Bd871:
Cac5f:
goto c838c;
D41de:
$bc793 = $c513c["ttclid"];
goto Dc6f2;
B99dd:
$Db528["pixel_user_data"] = ["em" => $aaedc["em"], "fn" => $aaedc["fn"], "ln" => $aaedc["ln"], "ph" => $aaedc["ph"], "ct" => $aaedc["ct"], "zp" => $aaedc["pc"], "st" => $aaedc["st"], "country" => $aaedc["cc"], "external_id" => $aaedc["external_id_hash"], "client_ip_address" => $aaedc["ip_address"], "client_user_agent" => $aaedc["user_agent"]];
goto Ce069;
Ad83a:
$Db528["user_data"]["sha2_phone_number"] = $aaedc["ph_e4"];
goto Cfce9;
A4a9c:
$ff2c6 = $this->gtm->getTtp();
goto ca6ed;
aa504:
$Ad464 = $aaedc["fbc"];
goto cf783;
f2577:
if (empty($aaedc["ln"])) {
goto B17d8;
}
goto bf701;
ff9a0:
c78ab:
goto b29ca;
d5358:
if (empty($aaedc["st"])) {
goto e6e7b;
}
goto d6b92;
A2ebd:
adaf2:
goto e3cb8;
Ba75f:
$C85f9["em"] = $aaedc["em"];
goto b5367;
d6b92:
$C85f9["st"] = $aaedc["st"];
goto f1c8e;
e3cb8:
$aaedc["external_id_hash"] = !empty($aaedc["external_id"]) ? $this->gtm->getHash($aaedc["external_id"]) : '';
goto Dac26;
Fb0e2:
if (empty($aaedc["em"])) {
goto d6b91;
}
goto Ba75f;
Ab723:
if (empty($e0279)) {
goto E3283;
}
goto B518d;
F6119:
$C85f9["country"] = $aaedc["country"];
goto ff9a0;
ed895:
if (empty($aaedc["ph"])) {
goto af318;
}
goto B7855;
b2fc9:
$e0279 = $c513c["sccid"];
goto B1950;
B518d:
$C85f9["sc_click_id"] = $e0279;
goto A98bf;
A7a34:
if (isset($c513c["sc_cookie1"]) && !empty($c513c["sc_cookie1"])) {
goto A1e0e;
}
goto f2cb0;
a90ef:
B8a68:
goto d5358;
E2b50:
goto b18ac;
goto Ed9ce;
a3e88:
$Db528["snapchat_user_data"] = $C85f9;
goto Ccca3;
Bd7a0:
if ($c513c) {
goto Ca28b;
}
goto E97a9;
F0aff:
if (!empty($aaedc["external_id"])) {
goto adaf2;
}
goto Dbc28;
acdec:
goto a32e3;
goto E2fdd;
Dbe21:
return $Db528;
goto c7e97;
b5367:
d6b91:
goto ed895;
Bcdbc:
$bc793 = $this->gtm->getTtclid();
goto bbfc6;
f2cb0:
$f825c = $this->gtm->getSc_cookie1();
goto E2b50;
B7a12:
$Db528["user_data"]["last_name"] = $aaedc["ln"];
goto fb5db;
db6ae:
$f825c = $c513c["sc_cookie1"];
goto B0a07;
f299c:
$e0279 = $this->gtm->getScCid();
goto E07d8;
fb5db:
$Db528["user_data"]["email"] = $aaedc["em"];
goto bebde;
bebde:
$Db528["user_data"]["sha256_email_address"] = $aaedc["em"];
goto Ad83a;
E2223:
C285c:
goto e861d;
D74da:
e4d64:
goto f2577;
cf783:
f0e15:
goto b7925;
Dc6f2:
F0664:
goto A7ee3;
Cf914:
$De1c3 = $c513c["tiktok_code"];
goto cefe1;
E74b7:
$C491d = $aaedc["fbp"];
goto ee9db;
f1c8e:
e6e7b:
goto d039b;
b39c0:
af318:
goto D59c3;
C3d5c:
B97f9:
goto b2fc9;
B0a07:
b18ac:
goto b6a23;
a808b:
$Db528["user_data"]["address"]["sha256_last_name"] = $aaedc["ln"];
goto Feca5;
b1de3:
B0804:
goto a8239;
b773a:
goto f0e15;
goto Eb1c2;
E5ecc:
$Db528["pixel_user_data"]["fbc"] = $Ad464;
goto b1de3;
c70fc:
$C85f9["fn"] = $aaedc["fn"];
goto D74da;
b29ca:
if (empty($aaedc["external_id"])) {
goto E650c;
}
goto f8bbd;
A98bf:
E3283:
goto Ba351;
d4264:
A175d:
goto fd915;
A649d:
$Ad464 = $this->gtm->getFbc();
goto b773a;
Eb1c2:
A9958:
goto aa504;
D59c3:
if (empty($aaedc["fn"])) {
goto e4d64;
}
goto c70fc;
A7ee3:
if (isset($c513c["ttp"]) && !empty($c513c["ttp"])) {
goto A175d;
}
goto A4a9c;
d039b:
if (empty($aaedc["pc"])) {
goto C285c;
}
goto c6c2a;
f6536:
d970b:
goto e94d5;
ee9db:
a32e3:
goto B99dd;
Dbc28:
$aaedc["external_id"] = $this->session->getId();
goto A2ebd;
f098a:
$Db528["user_data"]["first_name"] = $aaedc["fn"];
goto B7a12;
B1950:
bbadc:
goto B99ff;
bf701:
$C85f9["ln"] = $aaedc["ln"];
goto E80e9;
fd915:
$ff2c6 = $c513c["ttp"];
goto Bd871;
Ccb19:
$aaedc = ["em" => isset($c513c["em"]) ? $c513c["em"] : '', "fn" => isset($c513c["fn"]) ? $c513c["fn"] : '', "ln" => isset($c513c["ln"]) ? $c513c["ln"] : '', "ph" => isset($c513c["ph"]) ? $c513c["ph"] : '', "ph_e4" => isset($c513c["ph_e164"]) ? $c513c["ph_e4"] : '', "ad" => isset($c513c["ad"]) ? $c513c["ad"] : '', "ct" => isset($c513c["ct"]) ? $c513c["ct"] : '', "pc" => isset($c513c["pc"]) ? $c513c["pc"] : '', "st" => isset($c513c["st"]) ? $c513c["st"] : '', "cc" => isset($c513c["cc"]) ? $c513c["cc"] : '', "external_id" => isset($c513c["external_id"]) ? $c513c["external_id"] : false, "user_agent" => isset($c513c["user_agent"]) ? $c513c["user_agent"] : false, "locale" => isset($c513c["locale"]) ? $c513c["locale"] : false, "ip_address" => isset($c513c["ip_address"]) ? $c513c["ip_address"] : false, "fbc" => isset($c513c["fbc"]) ? $c513c["fbc"] : false, "fbp" => isset($c513c["fbp"]) ? $c513c["fbp"] : false, "ttclid" => isset($c513c["ttclid"]) ? $c513c["ttclid"] : false, "ttp" => isset($c513c["ttp"]) ? $c513c["ttp"] : false, "sc_cookie1" => isset($c513c["sc_cookie1"]) ? $c513c["sc_cookie1"] : false, "sccid" => isset($c513c["sccid"]) ? $c513c["sccid"] : false];
goto F0aff;
ca6ed:
goto Cac5f;
goto d4264;
Feca5:
if (!$c513c["pixel"]) {
goto c3a1e;
}
goto d3d2a;
E07d8:
goto bbadc;
goto C3d5c;
E2fdd:
A6118:
goto E74b7;
c7e97:
}
public function apiOrderSend($c58b0)
{
goto C78c3;
c16d2:
$fd1d7["message"] = "Complete or Partial Failer see details in log.";
goto Ee9bf;
d3e74:
$fd1d7["error"] = true;
goto c9f6a;
b7e30:
$fd1d7["error"] = true;
goto E4a17;
Fac22:
$c6d1a["ga4"] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $fd1d7["ga4"]];
goto De203;
E34a9:
F7456:
goto Fac22;
E5254:
Ce9b0:
goto f116e;
D200c:
if (!($acea5 == "0")) {
goto F5f35;
}
goto c75f1;
c7fc7:
$c6d1a["tiktok"] = ["post_result" => "not sent", "message" => "Order was already posted, skipped"];
goto E5254;
Cd28f:
if ($fc702 && $Db528["hit_fb"] == 0) {
goto Ee8b5;
}
goto D598d;
f9295:
$c6d1a["snapchat"] = ["post_result" => "not sent", "message" => "Order was already posted, skipped"];
goto A68a5;
Bd117:
$fd1d7["message"] = "Completed successfully.";
goto e96dc;
d4a6c:
$b0730 = isset($d9a68->row["hit"]) ? $d9a68->row["hit"] : 0;
goto B4aa4;
fc37a:
$c6d1a["pixel"] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $fd1d7["pixel"]];
goto Ae0fb;
c51c4:
$d787b = '';
goto a668f;
F3b0e:
$c6d1a = [];
goto Be888;
E4a17:
$fd1d7["tiktok"] = "TikTok API [ Order: " . $c58b0 . " ] Result: error order data posted";
goto D5836;
e2f2c:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto B779e;
}
goto Ff863;
C0939:
$aaedc["user_agent"] = $Db528["user_agent"];
goto e4fac;
d0375:
$dd4e4 = json_encode($dd4e4);
goto c62a2;
Fa1b3:
$f2de0 = $this->gtm->snapchatAPI($c513c, "PURCHASE", $c0409, $aaedc["snapchat_user_data"], $e7e18);
goto ab492;
f6f9f:
$aaedc["snap_pixel_status"] = $c513c["snap_pixel_status"];
goto Ad816;
Df560:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto ecfeb;
}
goto Eb91a;
A5754:
$fd1d7["error"] = false;
goto c081b;
fe7f9:
$aaedc["pixel"] = $c513c["pixel"];
goto f6f9f;
b310d:
$this->Log($E14c7);
goto a7741;
Be888:
if ($fad31 && $Db528["hit_tiktok"] == 0) {
goto fc06a;
}
goto B99c3;
e218a:
f4875:
goto fbd39;
ec9c9:
$c6d1a["tiktok"] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $fd1d7["tiktok"]];
goto ee248;
Cf03a:
$this->db->query("UPDATE `" . DB_PREFIX . "analytics_tracking` SET hit_tiktok = '1' WHERE order_id = '" . (int) $c58b0 . "'");
goto e1987;
ebe57:
D1fad:
goto e799a;
Ad816:
$aaedc["snap_pixel_id"] = $c513c["snap_pixel_id"];
goto E1a58;
Eb91a:
$fd1d7["error"] = true;
goto af589;
a3297:
$F92b4[] = ["name" => "purchase", "params" => $Db528["datalayer"]["ga"]];
goto df49e;
a97bc:
if ($c63c0->num_rows) {
goto f4875;
}
goto Ea4a7;
fd939:
$Db528 = [];
goto a97bc;
Adef5:
$e7e18 = $Db528["event_id"];
goto a3297;
fed29:
$fc702 = $this->checkapiStatus("fb");
goto C843f;
E0293:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto Ad06b;
}
goto eb747;
D957b:
goto Cf567;
goto ebe57;
D598d:
if (!$fc702) {
goto Eaf4e;
}
goto Df153;
Fe1c0:
goto F7456;
goto f20d9;
C1b29:
$fd1d7["snapchat"] = "Snapchat API [ Order: " . $c58b0 . " ] Result: success order data posted";
goto efe59;
e480a:
$c6d1a["ga4"] = ["post_result" => "not sent", "message" => "Order was already posted, skipped"];
goto E2a8a;
eb747:
$fd1d7["error"] = true;
goto A9fd1;
b57c5:
$c0409 = $Db528["snapchat_api"];
goto d40b5;
A9fd1:
$fd1d7["pixel"] = "Facebook API [ Order: " . $c58b0 . " ] Result: error order data posted";
goto e954c;
B6472:
$D1c47["error"] = true;
goto b0461;
Dc248:
Ae072:
goto A30ae;
e4fac:
$aaedc["locale"] = $Db528["ul"];
goto b397c;
Dbcfc:
if ($f86a7 && $Db528["hit_ga"] == 0) {
goto D1fad;
}
goto Eff13;
B99c3:
if (!$fad31) {
goto Ce9b0;
}
goto c7fc7;
De203:
Cf567:
goto c51c4;
Daece:
$d9a68 = $this->db->query("SELECT * FROM " . DB_PREFIX . "analytics_tracking WHERE order_id = '" . (int) $c58b0 . "'");
goto F853e;
Cfc0d:
$f2de0 = $this->gtm->tiktokAPI($c513c, "CompletePayment", $a3bc1, $aaedc["tiktok_user_data"], $e7e18);
goto da3c8;
E1a58:
$aaedc["tiktok_status"] = $c513c["tiktok_status"];
goto Dccb2;
b397c:
$aaedc = array_merge($aaedc, $Db528);
goto F1fc4;
ab492:
$fd1d7["snapchat"] = '';
goto e2f2c;
cdff7:
$fd1d7["snapchat"] = "Snapchat API [ Order: " . $c58b0 . " ] Result: error order data posted";
goto Cac99;
a194e:
$this->db->query("UPDATE `" . DB_PREFIX . "analytics_tracking` SET hit_ga = '1' WHERE order_id = '" . (int) $c58b0 . "'");
goto E34a9;
ba7bb:
$fd1d7["error"] = false;
goto C1b29;
f6e22:
$this->Log("Order # " . $c58b0 . " (dmt/apiOrderSend) API Post Results" . $d787b);
goto b0c81;
a2df4:
f794f:
goto fc37a;
a7741:
$fd1d7["message"] = $E14c7;
goto cf6ec;
Ff863:
$fd1d7["error"] = true;
goto cdff7;
Cc82a:
$Ba90c["error"] = true;
goto B6472;
d40d2:
fc06a:
goto Cfc0d;
A06ab:
$c58b0 = (int) $c58b0;
goto d3e74;
e954c:
goto f794f;
goto cdcc5;
A4f29:
Ee8b5:
goto a89c4;
e96dc:
goto fb153;
goto a0a9e;
d40b5:
$a3bc1 = $Db528["tiktok"];
goto Adef5;
da3c8:
$fd1d7["tiktok"] = '';
goto B2828;
B4aa4:
if (!($b0730 == 1)) {
goto dce42;
}
goto Db830;
db775:
$this->db->query("UPDATE `" . DB_PREFIX . "analytics_tracking` SET hit_fb = '1' WHERE order_id = '" . (int) $c58b0 . "'");
goto a2df4;
a7aa6:
if ($A0b38 && $Db528["hit_snapchat"] == 0) {
goto ccaae;
}
goto Ec57c;
c1dc7:
$aaedc = $f2de0["customer"];
goto fe7f9;
B0a33:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "analytics_tracking WHERE order_id = '" . (int) $c58b0 . "'");
goto fd939;
eb289:
F5f35:
goto Ad264;
D09f7:
$fd1d7["error"] = false;
goto d9e6a;
Ae0fb:
cc152:
goto a7aa6;
d102f:
return $fd1d7;
goto B6809;
d9456:
goto c38db;
goto e218a;
a89c4:
$f2de0 = $this->gtm->facebookAPI($c513c, "Purchase", $C7054, $aaedc["pixel_user_data"], $e7e18);
goto F77dc;
ddc80:
$fd1d7["error"] = false;
goto C079a;
a68c2:
$acea5 = $this->OrderStatusCheck($c58b0);
goto D200c;
b0461:
if (!($c58b0 == 0)) {
goto d31f8;
}
goto dacd9;
af589:
$fd1d7["ga4"] = "Google API [ Order: " . $c58b0 . " ] Result: failed";
goto Fe1c0;
Df153:
$c6d1a["pixel"] = ["post_result" => "not sent", "message" => "Order was already posted, skipped"];
goto D01e4;
F853e:
if (!$d9a68->num_rows) {
goto B9ce0;
}
goto d4a6c;
C78c3:
$c513c = $this->config();
goto A06ab;
b5c6e:
$this->load->model("checkout/order");
goto B0a33;
Dda0e:
$fd1d7["message"] = "Incomplete or Missing Order";
goto c69f2;
D5836:
goto E75a1;
goto f04d6;
f1fd5:
$Db528 = array_merge($Db528, $f2de0);
goto af668;
c081b:
$fd1d7["tiktok"] = "TikTok API [ Order: " . $c58b0 . " ] Result: success order data posted";
goto Cf03a;
Cac99:
goto Ae072;
goto Aae51;
f2359:
c38db:
goto a68c2;
A30ae:
$c6d1a["snapchat"] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $fd1d7["snapchat"]];
goto E4122;
D01e4:
Eaf4e:
goto D3d08;
Ee9bf:
fb153:
goto d102f;
a0a9e:
C7f05:
goto c16d2;
c9f6a:
$fd1d7["message"] = "error in apiOrderSend()";
goto C05fa;
f116e:
goto a2f2e;
goto d40d2;
Eff13:
if (!$f86a7) {
goto b538d;
}
goto e480a;
af668:
$C7054 = $Db528["fb_data"];
goto b57c5;
b87a9:
dce42:
goto e8d74;
f186a:
$fd1d7["ga4"] = '';
goto Df560;
Fdb75:
A2723:
goto f6e22;
b0c81:
if ($fd1d7["error"]) {
goto C7f05;
}
goto Bd117;
F1fc4:
$aaedc = $this->formatUserdata($aaedc);
goto f1fd5;
f04d6:
A9a32:
goto A5754;
a9178:
goto b3746;
goto a5270;
Ea4a7:
$E14c7 = "dmt Debug Log: Measurement Protocol call [ Order: " . $c58b0 . " ] Result: Order not found";
goto Daece;
cdcc5:
Ad06b:
goto ddc80;
f20d9:
ecfeb:
goto D09f7;
e1987:
E75a1:
goto ec9c9;
E4122:
b3746:
goto Dbcfc;
dacd9:
return "Invalid Order Id";
goto f7e08;
df49e:
$dd4e4 = ["client_id" => $Db528["cid"], "user_id" => $Db528["uid"], "events" => $F92b4];
goto d0375;
a5270:
ccaae:
goto Fa1b3;
E2a8a:
b538d:
goto D957b;
F77dc:
$fd1d7["pixel"] = '';
goto E0293;
f7e08:
d31f8:
goto b5c6e;
A68a5:
e760d:
goto a9178;
d9e6a:
$fd1d7["ga4"] = "Google API [ Order: " . $c58b0 . " ] Result: success order data posted";
goto a194e;
C843f:
$A0b38 = $this->checkapiStatus("snapchat");
goto dd8f8;
C079a:
$fd1d7["pixel"] = "Facebook API [ Order: " . $c58b0 . " ] Result: success order data posted";
goto db775;
a668f:
foreach ($c6d1a as $F54aa => $f5425) {
$d787b .= "
" . strtoupper($F54aa) . " ----> " . $f5425["post_result"] . "\xa" . $f5425["message"] . "\xa";
dd8df:
}
goto Fdb75;
Ec57c:
if (!$A0b38) {
goto e760d;
}
goto f9295;
Dccb2:
$aaedc["tiktok_code"] = $c513c["tiktok_code"];
goto A3bf6;
e799a:
$f2de0 = $this->googleAPI($dd4e4, $Db528["dmt"], false);
goto f186a;
e8d74:
B9ce0:
goto b310d;
C05fa:
$Bbc22["error"] = true;
goto Cc82a;
ee248:
a2f2e:
goto Cd28f;
A3bf6:
$aaedc["ip_address"] = $Db528["ip"];
goto C0939;
dd8f8:
$fad31 = $this->checkapiStatus("tiktok");
goto F3b0e;
D3d08:
goto cc152;
goto A4f29;
c75f1:
$this->Log("DMT Debug Log: Measurement Protocol call [ Order: " . $c58b0 . " ] Result: Order Status Id is 0 / Missing");
goto Dda0e;
Db830:
$E14c7 = "dmt Debug Log: Measurement Protocol call [ Order: " . $c58b0 . " ] Result: Order already hit";
goto b87a9;
Ad264:
$f2de0 = $this->preparePurchase($c58b0);
goto c1dc7;
Aae51:
B779e:
goto ba7bb;
efe59:
$this->db->query("UPDATE `" . DB_PREFIX . "analytics_tracking` SET hit_snapchat = 9' WHERE order_id = '" . (int) $c58b0 . "'");
goto Dc248;
cf6ec:
return $fd1d7;
goto d9456;
c69f2:
return $fd1d7;
goto eb289;
c62a2:
$f86a7 = $this->checkapiStatus("ga4");
goto fed29;
B2828:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto A9a32;
}
goto b7e30;
fbd39:
$Db528 = $c63c0->row;
goto f2359;
B6809:
}
public function apiOrderRefund($c58b0)
{
goto F04fb;
D6d08:
$fd1d7["error"] = true;
goto Dcb01;
Ab2ab:
$fd1d7["error"] = false;
goto e19a6;
cb80d:
$acea5 = $this->OrderStatusCheck($c58b0);
goto Bdfa3;
f068e:
$Db528 = array_merge($Db528, $f2de0);
goto fe955;
c0c1d:
if (isset($f2de0["error"]) && !$f2de0["error"]) {
goto b918a;
}
goto D6d08;
F64be:
$Ba90c = $this->googleAPI($dd4e4, false);
goto faae7;
Ec0d4:
$Db528["uid"] = $c63c0->row["uid"];
goto Ebd10;
C2010:
$dd4e4 = ["user_id" => $Db528["uid"], "client_id" => $Db528["cid"], "events" => $F92b4];
goto C4ac8;
faae7:
F0b76:
goto C788c;
Cc8e3:
$c63c0 = $this->db->query("SELECT * FROM " . DB_PREFIX . "analytics_tracking WHERE order_id = '" . (int) $c58b0 . "' AND hit = '1'");
goto Cac41;
A02f6:
$f86a7 = $this->checkapiStatus("ga4");
goto C4f58;
d637f:
$f2de0 = $this->getOrder($c58b0);
goto f068e;
Cd5c9:
goto d3fee;
goto f146d;
f146d:
F9f38:
goto Da276;
f6302:
$this->Log("DMT Debug Log: Measurement Protocol Refund Order id: " . $c58b0 . " Result: error order not found or not hit");
goto ec37f;
c4bc0:
$fd1d7["error"] = true;
goto D079a;
a8451:
$dd4e4 = json_encode($dd4e4);
goto F64be;
Df170:
b918a:
goto Ab2ab;
C4f58:
if ($c63c0->num_rows) {
goto F9f38;
}
goto f6302;
ac9da:
$this->db->query("UPDATE `" . DB_PREFIX . "analytics_tracking` SET hit_ga = '2', hit = '2' WHERE order_id = '" . (int) $c58b0 . "'");
goto b7143;
e2cdc:
$this->Log("DMT Debug Log: Measurement Protocol Refund Order id: " . $c58b0 . " Result: Incomplete or Missing Order");
goto ed0e2;
A4363:
$c513c = $this->config();
goto A02f6;
f798a:
$Db528["currency_code"] = $c63c0->row["currency_code"];
goto bcd9c;
C4ac8:
if (!(isset($f86a7) && $f86a7)) {
goto F0b76;
}
goto a8451;
C788c:
if (!$f86a7) {
goto bfe63;
}
goto A8ebb;
Cac41:
$Db528 = [];
goto c4bc0;
bcd9c:
$Db528["ip"] = $c63c0->row["ip"];
goto C0a93;
C4afc:
return $fd1d7;
goto Cd5c9;
fe955:
$Af1a7 = isset($Db528["ec_orderProducts"]["ga4_items"]) ? $Db528["ec_orderProducts"]["ga4_items"] : array();
goto e64c9;
F04fb:
$this->load->model("checkout/order");
goto Cc8e3;
A8ebb:
$f2de0 = $this->googleAPI($dd4e4, $c513c, false);
goto f18ef;
A4fc9:
bfe63:
goto f6c3c;
f6c3c:
return $fd1d7;
goto da5e4;
f18ef:
$fd1d7 = [];
goto c0c1d;
Ebd10:
d3fee:
goto cb80d;
Da276:
$Db528["cid"] = $c63c0->row["cid"];
goto f798a;
C0a93:
$Db528["user_agent"] = $c63c0->row["user_agent"];
goto Ec0d4;
b7143:
b38e7:
goto eb45d;
Dcb01:
$fd1d7["ga4"] = "Google API [ Refund Order: " . $c58b0 . " ] Result: failed";
goto Ffab8;
e64c9:
$d7046 = ["transaction_id" => $c58b0, "shipping" => number_format((float) $Db528["ec_orderShipping"], 2, , ''), "value" => number_format((float) $Db528["ec_orderValue"], 2, , ''), "tax" => number_format((float) $Db528["ec_orderTax"], 2, , ''), "coupon" => $Db528["ec_orderCoupon"], "currency" => $Db528["currency_code"], "items" => $Af1a7];
goto bcb48;
D079a:
$fd1d7["message"] = "error in apiOrderRefund";
goto A4363;
Bdfa3:
if (!($acea5 == "0")) {
goto D0346;
}
goto e2cdc;
bcb48:
$F92b4[] = ["name" => "refund", "params" => $d7046];
goto C2010;
ed0e2:
$fd1d7["message"] = "Error: The order do not have valid status code ";
goto d29cf;
e19a6:
$fd1d7["ga4"] = "Google API [ Refund Order: " . $c58b0 . " ] Result: refund data posted";
goto ac9da;
eb45d:
$c6d1a["ga4"] = ["post_result" => isset($f2de0["message"]) ? $f2de0["message"] : '', "message" => $fd1d7["ga4"]];
goto A4fc9;
Ffab8:
goto b38e7;
goto Df170;
ec37f:
$fd1d7["message"] = "Refund: error order not found or alrady refunded";
goto C4afc;
cbdcc:
D0346:
goto d637f;
d29cf:
return $fd1d7;
goto cbdcc;
da5e4:
}
public function apiOrderChecker($B12df, $Ff39e)
{
goto bc8b1;
A7a78:
curl_setopt($e16d7, CURLOPT_TIMEOUT, 30);
goto a7f95;
dc000:
curl_setopt($e16d7, CURLOPT_URL, $B12df);
goto Cbb4c;
B6b6d:
curl_close($e16d7);
goto fc3b3;
A3c92:
curl_setopt($e16d7, CURLOPT_POSTFIELDS, http_build_query($Ff39e));
goto f1039;
e2010:
return $D4222;
goto aa00c;
a7f95:
curl_setopt($e16d7, CURLOPT_POST, true);
goto A3c92;
bc8b1:
$e16d7 = curl_init();
goto dc000;
Cbb4c:
curl_setopt($e16d7, CURLOPT_RETURNTRANSFER, true);
goto f3d82;
fc3b3:
$D4222 = isset($D4222) ? json_decode($D4222, true) : false;
goto e2010;
f3d82:
curl_setopt($e16d7, CURLOPT_CONNECTTIMEOUT, 30);
goto A7a78;
f1039:
$D4222 = curl_exec($e16d7);
goto B6b6d;
aa00c:
}
public function GAContact()
{
return false;
}
public function googleAPI($Db528, $c513c = false, $cd974 = false)
{
goto e94f3;
cef14:
b6f86:
goto Bdc9a;
Bdc9a:
if ($cd974) {
goto a1751;
}
goto C6125;
d527d:
curl_setopt($e16d7, CURLOPT_POST, true);
goto d79b1;
f1cb6:
$E14c7 = "GA4 API Response Code: " . $b2710 . "
" . $E14c7 . "\xa" . $Db528;
goto A155b;
d2fa6:
$Bed35 = true;
goto a94c9;
fd8f3:
curl_setopt($e16d7, CURLOPT_TIMEOUT, 30);
goto A4316;
A4316:
curl_setopt($e16d7, CURLOPT_SSL_VERIFYPEER, false);
goto F3482;
D4c7d:
curl_close($e16d7);
goto b7309;
ece1c:
aed53:
goto D3704;
fb6de:
return $f2de0;
goto b44a0;
d94a5:
$this->Log("Google Measurement API Validation failed, make sure api is enabled and have valid access token");
goto Ae8e4;
aed70:
goto Dd07a;
goto Febe0;
c91c3:
goto a4a2d;
goto E9212;
Efd86:
$cd974 = false;
goto c91c3;
C6125:
$E14c7 = "GA4 API Response Code: " . $b2710;
goto aed70;
b7309:
$aa395 = json_decode($Bae81, true);
goto ded0b;
Febe0:
a1751:
goto f1cb6;
c65b3:
$e16d7 = curl_init("https://www.google-analytics.com/mp/collect?measurement_id=" . $c513c["ga4_mid"] . "&api_secret=" . $c513c["ga4_api"]);
goto d527d;
E97bb:
a4a2d:
goto e8d80;
Ae8e4:
return $f2de0;
goto dfb72;
f166c:
if ($f30d8) {
goto f12c4;
}
goto d94a5;
B32dd:
curl_setopt($e16d7, CURLOPT_RETURNTRANSFER, true);
goto eecea;
e94f3:
$f2de0["error"] = true;
goto d7f54;
d7f54:
$f2de0["success"] = false;
goto acfdc;
C9d1a:
$A523c = true;
goto Aac65;
a0895:
$f2de0["success"] = $A523c;
goto C4843;
d79b1:
curl_setopt($e16d7, CURLOPT_POSTFIELDS, $Db528);
goto B32dd;
b7ae5:
return $f2de0;
goto Bf9f8;
Ca9e2:
return $f2de0;
goto ece1c;
E9212:
Cf719:
goto ae4ac;
dfb72:
f12c4:
goto bdfa1;
e2959:
if (!($b2710 == "4")) {
goto b6f86;
}
goto C29c5;
bdfa1:
$Bf3e8 = "https://www.google-analytics.com/debug/mp/collect?measurement_id=";
goto c65b3;
acfdc:
$f2de0["message"] = '';
goto f9ac8;
ded0b:
$fd1d7["code"] = $b2710;
goto d2fa6;
ae4ac:
$cd974 = true;
goto E97bb;
Aac65:
ae493:
goto e2959;
A95f4:
if (!($b2710 == "0")) {
goto ae493;
}
goto C9d1a;
D3704:
if ($c513c) {
goto e0266;
}
goto fb6de;
f9ac8:
if (isset($Db528)) {
goto aed53;
}
goto Ca9e2;
F3482:
$Bae81 = curl_exec($e16d7);
goto aa21d;
e8d80:
$f30d8 = $this->checkapiStatus("ga4");
goto f166c;
C4843:
$f2de0["message"] = $E14c7;
goto b7ae5;
eecea:
curl_setopt($e16d7, CURLOPT_HEADER, false);
goto fd8f3;
b44a0:
e0266:
goto E5481;
C29c5:
$A523c = true;
goto cef14;
E5481:
if (isset($c513c["debug_api"]) && $c513c["debug_api"]) {
goto Cf719;
}
goto Efd86;
a94c9:
$E14c7 = $Bae81;
goto A95f4;
A155b:
Dd07a:
goto D68f5;
D68f5:
$f2de0["error"] = false;
goto a0895;
aa21d:
$b2710 = curl_getinfo($e16d7, CURLINFO_HTTP_CODE);
goto D4c7d;
Bf9f8:
}
public function facebookAPI($c513c, $a4c0b, $Db528, $aaedc, $e7e18 = false)
{
goto d1583;
e0d07:
curl_setopt($e16d7, CURLOPT_HEADER, true);
goto Ac7ba;
Bca6f:
$ec49b = json_encode($C7054);
goto d9d26;
d9854:
$Bae81 = curl_exec($e16d7);
goto de237;
C9443:
$e7e18 = isset($c513c["event_id"]) ? $c513c["event_id"] : false;
goto E5c33;
A6984:
$C7054[] = ["event_name" => $a4c0b, "event_id" => $e7e18, "event_time" => $a2fa4, "action_source" => $B349f, "event_source_url" => $F8265, "user_data" => $aaedc];
goto b14c8;
Bad36:
$E14c7 = $aa395;
goto aee32;
ea425:
Abd50:
goto eb33d;
d9d26:
$cbfe2 = [];
goto D8a20;
Ee871:
if ($e7e18) {
goto c08e1;
}
goto C9443;
E3c6d:
$this->Log("Facebook API: Missing dmt Config in API Call");
goto ba38d;
d0aac:
D4cad:
goto d9183;
eb33d:
$A523c = false;
goto F0b79;
Cea0a:
Cb988:
goto Aafb3;
dc2ed:
if ($f30d8) {
goto Fe63e;
}
goto Fd197;
Ac7ba:
curl_setopt($e16d7, CURLOPT_TIMEOUT, 30);
goto Fb125;
Dd43d:
curl_close($e16d7);
goto F54c4;
Af6ec:
C630f:
goto E0ae0;
C0159:
$this->Log("Missing Tagmanger Config in API Call");
goto Cf0e7;
a58b5:
$e16d7 = curl_init("https://graph.facebook.com/" . $d9cff . "/" . $F54b3 . "/events");
goto C87a2;
ac1ee:
aee2d:
goto dcb86;
dcb86:
$a2fa4 = time();
goto B9423;
f7a7f:
return $f2de0;
goto F81ba;
de237:
$b2710 = curl_getinfo($e16d7, CURLINFO_HTTP_CODE);
goto Dd43d;
Fd197:
$this->Log("Facebook API Validation failed, make sure api is enabled and have valid access token");
goto e7ee7;
cb97d:
$this->Log("Facebook API Post Data Invalid: missing event_id");
goto efe27;
C445a:
$cbfe2["data"] = $ec49b;
goto a89ed;
B9bf0:
curl_setopt($e16d7, CURLOPT_RETURNTRANSFER, true);
goto e0d07;
ba38d:
return $f2de0;
goto Af6ec;
B0fe5:
$f2de0["error"] = false;
goto D398e;
aff81:
$f2de0["success"] = false;
goto E2922;
dd2db:
if (!empty($e7e18)) {
goto aee2d;
}
goto cb97d;
dc8cf:
d7df5:
goto Ee871;
E5c33:
c08e1:
goto dd2db;
b735c:
goto E35de;
goto D142b;
C87a2:
curl_setopt($e16d7, CURLOPT_POST, true);
goto e84ac;
E2ae4:
if ($c513c) {
goto C630f;
}
goto E3c6d;
b14c8:
goto F135c;
goto Cea0a;
Edd07:
f676c:
goto d0aac;
C7d2e:
E35de:
goto E42c8;
c320f:
$cd974 = false;
goto b735c;
A36be:
if (!$c513c["bot"]) {
goto d7df5;
}
goto b25b6;
D398e:
$f2de0["success"] = $A523c;
goto f5b12;
d1583:
$f2de0["error"] = true;
goto aff81;
B562a:
$E14c7 = $aa395 . "
" . $ec49b;
goto D1ebe;
e6448:
$F8265 = $c513c["url"];
goto e0dc2;
D8a20:
$cbfe2["access_token"] = $f750d;
goto C445a;
e0dc2:
$F54b3 = $c513c["pixelcode"];
goto Eeb60;
e22c4:
$B349f = "website";
goto e6448;
a9f2b:
Fe63e:
goto A36be;
Ab3ef:
if (!(isset($c513c["pixel_test_code"]) && !empty($c513c["pixel_test_code"]))) {
goto f676c;
}
goto Df296;
a89ed:
if (!(isset($c513c["fb_api_debug"]) && $c513c["fb_api_debug"])) {
goto D4cad;
}
goto Ab3ef;
e84ac:
curl_setopt($e16d7, CURLOPT_POSTFIELDS, $cbfe2);
goto B9bf0;
efe27:
return $f2de0;
goto ac1ee;
Aafb3:
$C7054[] = ["event_name" => $a4c0b, "event_id" => $e7e18, "event_time" => $a2fa4, "action_source" => $B349f, "event_source_url" => $F8265, "user_data" => $aaedc, "custom_data" => $Db528];
goto a2b26;
b25b6:
return $f2de0;
goto dc8cf;
Df296:
$cbfe2["test_event_code"] = $c513c["pixel_test_code"];
goto Edd07;
C8732:
$f750d = $c513c["fb_token"];
goto e22c4;
B9423:
$C2cda = $c513c["fb_api"];
goto C8732;
Cf0e7:
return $f2de0;
goto a80cb;
D1ebe:
e8289:
goto Bd4ea;
Fb125:
curl_setopt($e16d7, CURLOPT_SSL_VERIFYPEER, false);
goto d9854;
aee32:
if (!$cd974) {
goto e8289;
}
goto B562a;
F54c4:
$aa395 = json_decode($Bae81, true);
goto Bad36;
Eeb60:
if ($Db528) {
goto Cb988;
}
goto A6984;
ae256:
$d9cff = "v22.0";
goto a58b5;
E2922:
$f2de0["message"] = '';
goto E2ae4;
cd4ae:
goto D67ab;
goto ea425;
E42c8:
$f30d8 = $this->checkapiStatus("fb");
goto dc2ed;
f5b12:
$f2de0["message"] = $E14c7;
goto f7a7f;
b51b7:
$cd974 = true;
goto C7d2e;
a2b26:
F135c:
goto Bca6f;
a40da:
$A523c = true;
goto cd4ae;
c3c84:
$E14c7 = "Response Code: " . $b2710 . " Result: " . $E14c7;
goto B0fe5;
d9183:
if ($c513c) {
goto fe9e5;
}
goto C0159;
F0b79:
D67ab:
goto c3c84;
Bd4ea:
if ($b2710 != "2") {
goto Abd50;
}
goto a40da;
e7ee7:
return $f2de0;
goto a9f2b;
a80cb:
fe9e5:
goto ae256;
E0ae0:
if (isset($c513c["debug_api"]) && $c513c["debug_api"]) {
goto D36a2;
}
goto c320f;
D142b:
D36a2:
goto b51b7;
F81ba:
}
public function snapchatAPI($c513c, $a4c0b, $Db528, $aaedc, $e7e18 = false)
{
goto B6240;
a85e5:
return $f2de0;
goto Ab8ca;
d52f1:
D8dea:
goto Fb57f;
E3692:
$e16d7 = curl_init();
goto f315a;
Baf56:
return $f2de0;
goto d52f1;
fee19:
if ($Db528) {
goto e4195;
}
goto Bda91;
b79ad:
if ($f30d8) {
goto daafa;
}
goto e2661;
aef9f:
if ($e7e18) {
goto C89f3;
}
goto ff9b2;
ad82d:
$f2de0["message"] = '';
goto Fff8d;
a6446:
return $f2de0;
goto bce5e;
Fb57f:
if (!$Db528) {
goto c964a;
}
goto d2da1;
a248a:
$E14c7 = $Bae81;
goto C095b;
f290b:
$f2de0["error"] = false;
goto Ddd1b;
B2071:
$b2710 = curl_getinfo($e16d7, CURLINFO_HTTP_CODE);
goto bdd70;
Bda91:
$c0409[] = ["event_name" => $a4c0b, "event_time" => time(), "event_source_url" => $c513c["url"], "event_id" => $e7e18, "action_source" => "WEB", "user_data" => $aaedc];
goto d0439;
fb7b3:
$f2de0["success"] = false;
goto ad82d;
d4221:
if ($b2710 != "200") {
goto c5f9e;
}
goto a1782;
fab87:
return $f2de0;
goto dce96;
a2f5b:
$F54b3 = $c513c["snap_pixel_id"];
goto A6a13;
A6a13:
$d9cff = "v3";
goto B87f3;
ff9b2:
$e7e18 = isset($c513c["event_id"]) ? $c513c["event_id"] : false;
goto a6d08;
fd64c:
$this->Log("Missing dmt Config in API Call");
goto F6552;
C095b:
if (!$cd974) {
goto c3cc8;
}
goto F372e;
F6c4b:
goto F65a1;
goto E5d26;
bdd70:
curl_close($e16d7);
goto Ade9b;
F2d0a:
$E14c7 = "Response Code: " . $b2710 . " Result: " . $E14c7;
goto f290b;
Ef904:
Ccaa7:
goto Bb275;
a4583:
c3cc8:
goto d4221;
B87f3:
$B12df = "https://tr.snapchat.com/" . $d9cff . "/" . $F54b3 . "/events?access_token=" . $f750d;
goto c45d8;
df35e:
$ec49b = json_encode($ec49b);
goto E3692;
F8187:
goto B6140;
goto a70b2;
Ab8ca:
daafa:
goto D73cc;
A08b4:
$f2de0["message"] = $E14c7;
goto fab87;
c45d8:
if (!(isset($c513c["snap_pixel_api_debug"]) && $c513c["snap_pixel_api_debug"])) {
goto A0304;
}
goto dfca0;
E5d26:
c5f9e:
goto Ce9ba;
a1782:
$A523c = true;
goto F6c4b;
A242e:
$this->Log("Snapchat API Post Data Invalid: missing event_id");
goto Baf56;
dfca0:
$B12df = "https://tr.snapchat.com/" . $d9cff . "/" . $F54b3 . "/events/validate?access_token=" . $f750d;
goto Fcdfb;
Ce9ba:
$A523c = false;
goto d9021;
Fff8d:
if ($c513c) {
goto Ccaa7;
}
goto fd64c;
d0439:
e4195:
goto c78d8;
Bb275:
if (isset($c513c["debug_api"]) && $c513c["debug_api"]) {
goto Ffe3a;
}
goto d4ad9;
d4ad9:
$cd974 = false;
goto F8187;
e2661:
$this->Log("Snapchat API Validation failed, make sure api is enabled and have valid access token");
goto a85e5;
c78d8:
$ec49b = ["data" => $c0409];
goto Abf7e;
F6552:
return $f2de0;
goto Ef904;
Abf7e:
$f750d = $c513c["snap_pixel_token"];
goto a2f5b;
B6240:
$f2de0["error"] = true;
goto fb7b3;
Cd995:
$Bae81 = curl_exec($e16d7);
goto B2071;
A42c2:
$cd974 = true;
goto C6282;
b9bbd:
if (!empty($e7e18)) {
goto D8dea;
}
goto A242e;
bce5e:
c09eb:
goto aef9f;
Ddd1b:
$f2de0["success"] = $A523c;
goto A08b4;
Fcdfb:
A0304:
goto df35e;
Ade9b:
$aa395 = json_decode($Bae81, true);
goto a248a;
d2da1:
$c0409[] = ["event_name" => $a4c0b, "event_time" => time(), "event_source_url" => $c513c["url"], "event_id" => $e7e18, "action_source" => "WEB", "user_data" => $aaedc, "custom_data" => $Db528];
goto b2f20;
f315a:
curl_setopt_array($e16d7, [CURLOPT_URL => $B12df, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $ec49b, CURLOPT_HTTPHEADER => ["Content-Type: application/json"]]);
goto Cd995;
a659c:
$f30d8 = $this->checkapiStatus("snapchat");
goto b79ad;
D73cc:
if (!$c513c["bot"]) {
goto c09eb;
}
goto a6446;
a6d08:
C89f3:
goto b9bbd;
F372e:
$E14c7 = $Bae81 . "
" . $ec49b;
goto a4583;
a70b2:
Ffe3a:
goto A42c2;
C6282:
B6140:
goto a659c;
b2f20:
c964a:
goto fee19;
d9021:
F65a1:
goto F2d0a;
dce96:
}
public function tiktokAPI($c513c, $a4c0b, $Db528, $aaedc, $e7e18 = false)
{
goto Ae180;
D6d4e:
$ec49b["test_event_code"] = $a2f12;
goto D8ad8;
A8cd2:
$e16d7 = curl_init();
goto e0a9d;
Aa61f:
$f30d8 = $this->checkapiStatus("tiktok");
goto A5457;
D27b2:
D6e2c:
goto bb253;
b3afd:
$f2de0["success"] = $A523c;
goto eaa4d;
E36d9:
if (isset($c513c["debug_api"]) && $c513c["debug_api"]) {
goto B4792;
}
goto effdc;
A5457:
if ($f30d8) {
goto Ff18e;
}
goto F8cd3;
db7e9:
Ad182:
goto Aa61f;
da63e:
c95f5:
goto E36d9;
bf9d8:
return $f2de0;
goto f04dc;
A540b:
$d9cff = "v1.3";
goto F7756;
e2776:
goto Ad182;
goto e5967;
D3c47:
if (!$Db528) {
goto Da952;
}
goto fc1b5;
dddcb:
curl_close($e16d7);
goto Db12b;
B133f:
Da952:
goto c5b21;
E58cd:
$f2de0["error"] = true;
goto Fa93f;
E647b:
C76d9:
goto f6347;
b1a3a:
goto dd0bf;
goto C82e9;
D7693:
$f2de0["message"] = '';
goto D0766;
C82e9:
af560:
goto bb34f;
c634a:
return $f2de0;
goto d7f0e;
eaa4d:
$f2de0["message"] = $E14c7;
goto c634a;
fc1b5:
$Eba94[] = ["event" => $a4c0b, "event_time" => time(), "event_id" => $e7e18, "user" => $aaedc, "properties" => $Db528, "page" => ["url" => $c513c["url"], "referrer" => $c513c["referrer"]]];
goto B133f;
e5967:
B4792:
goto cc6da;
e0a9d:
curl_setopt_array($e16d7, [CURLOPT_URL => $B12df, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $ec49b, CURLOPT_HTTPHEADER => ["Access-Token: " . $c513c["tiktok_token"], "Content-Type: application/json"]]);
goto e5546;
Fd2fb:
return $f2de0;
goto E647b;
eda9a:
$b2710 = curl_getinfo($e16d7, CURLINFO_HTTP_CODE);
goto dddcb;
Faa89:
$A523c = true;
goto b1a3a;
d549e:
Bc2d9:
goto F5f44;
f8315:
$this->Log("Tiktok API Post Data Invalid: missing event_id");
goto bf9d8;
B28bc:
$ec49b = ["event_source" => "web", "event_source_id" => $c513c["tiktok_code"], "data" => $Eba94];
goto D7d5a;
da6cd:
return $f2de0;
goto c5fea;
e6e95:
$this->Log("Missing dmt Config in API Call");
goto ccee6;
effdc:
$cd974 = false;
goto e2776;
F5f44:
dddec:
goto af757;
a761d:
$E14c7 = $Bae81 . "\xa" . $ec49b;
goto cb51f;
f04dc:
e643e:
goto D3c47;
c5b21:
if ($Db528) {
goto ea925;
}
goto ad515;
f3dc2:
ea925:
goto B28bc;
ad515:
$Eba94[] = ["event" => $a4c0b, "event_time" => time(), "event_id" => $e7e18, "user" => $aaedc, "page" => ["url" => $c513c["url"], "referrer" => $c513c["referrer"]]];
goto f3dc2;
Ae180:
$a2f12 = false;
goto E58cd;
Ac263:
$e7e18 = isset($c513c["event_id"]) ? $c513c["event_id"] : false;
goto D27b2;
F7756:
$ec49b = json_encode($ec49b);
goto C7124;
A0f72:
$E14c7 = "Response Code: " . $b2710 . " Result: " . $E14c7;
goto dfe29;
C6ccb:
$E14c7 = $Bae81;
goto E691d;
C7124:
$B12df = "https://business-api.tiktok.com/open_api/" . $d9cff . "/event/track/";
goto A8cd2;
Fd70a:
if (!(isset($c513c["tiktok_api_testcode"]) && !empty($c513c["tiktok_api_testcode"]))) {
goto Bc2d9;
}
goto Fa0f0;
e5546:
$Bae81 = curl_exec($e16d7);
goto eda9a;
cc6da:
$cd974 = true;
goto db7e9;
Db12b:
$aa395 = json_decode($Bae81, true);
goto C6ccb;
e4fbd:
dd0bf:
goto A0f72;
Fa0f0:
$a2f12 = $c513c["tiktok_api_testcode"];
goto d549e;
c5fea:
Ff18e:
goto b9812;
dfe29:
$f2de0["error"] = false;
goto b3afd;
Fa93f:
$f2de0["success"] = false;
goto D7693;
f6347:
if (!(isset($c513c["tiktok_api_debug"]) && $c513c["tiktok_api_debug"])) {
goto dddec;
}
goto Fd70a;
D0766:
if ($c513c) {
goto c95f5;
}
goto e6e95;
b9812:
if (!$c513c["bot"]) {
goto C76d9;
}
goto Fd2fb;
af757:
if ($e7e18) {
goto D6e2c;
}
goto Ac263;
F8cd3:
$this->Log("Tiktok API Validation failed, make sure api is enabled and have valid access token");
goto da6cd;
bb34f:
$A523c = false;
goto e4fbd;
E691d:
if (!$cd974) {
goto Fd77f;
}
goto a761d;
bb253:
if (!empty($e7e18)) {
goto e643e;
}
goto f8315;
fa73a:
if ($b2710 != "2") {
goto af560;
}
goto Faa89;
cb51f:
Fd77f:
goto fa73a;
D7d5a:
if (!$a2f12) {
goto D05f0;
}
goto D6d4e;
ccee6:
return $f2de0;
goto da63e;
D8ad8:
D05f0:
goto A540b;
d7f0e:
}
public function sendinbluePost($Db528, $b4efd = "identify")
{
goto a7aff;
ee8f6:
C2843:
goto A13cf;
E4c2e:
if (!$cd974) {
goto b1659;
}
goto F312f;
Df452:
$e16d7 = curl_init();
goto Cb7de;
cb494:
goto e77d6;
goto F1280;
b5039:
$Bae81 = curl_exec($e16d7);
goto b4ed0;
F312f:
$this->Log("Sendinblue error Code: Empty body api call cancelled");
goto c2c06;
a839c:
$B12df = "https://in-automate.sendinblue.com/api/v2/{$b4efd}";
goto B812f;
e0648:
if (isset($Db528)) {
goto e0d71;
}
goto E4c2e;
ebb57:
e0d71:
goto a839c;
Aac19:
if (!$cd974) {
goto c4796;
}
goto c1da2;
b4ed0:
$Ad5c9 = curl_error($e16d7);
goto F6df1;
fa45e:
e77d6:
goto e0648;
a7aff:
$c513c = $this->config();
goto D6d79;
D6d79:
if (isset($c513c["debug_api"]) && $c513c["debug_api"]) {
goto b817d;
}
goto Eedda;
fe3fb:
c4796:
goto ee8f6;
fe47c:
$this->Log("Sendinblue CURL response: " . $Bae81);
goto fe3fb;
b5c37:
return false;
goto ebb57;
c2c06:
b1659:
goto b5c37;
Eedda:
$cd974 = false;
goto cb494;
c1da2:
$this->Log("Sendinblue CURL error: " . $Ad5c9);
goto fe47c;
d24e4:
$cd974 = true;
goto fa45e;
B812f:
$e7e99 = ["Content-Type: application/json", "ma-key: " . $c513c["sendinblue_code"]];
goto Df452;
F1280:
b817d:
goto d24e4;
c349f:
if (!$Ad5c9) {
goto C2843;
}
goto Aac19;
F6df1:
curl_close($e16d7);
goto c349f;
Cb7de:
curl_setopt_array($e16d7, array(CURLOPT_HTTPHEADER => $e7e99, CURLOPT_URL => $B12df, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => json_encode($Db528)));
goto b5039;
A13cf:
}
public function Log($B2fc2)
{
goto B838d;
F84cb:
if (!file_exists($C6971)) {
goto c56ac;
}
goto A1914;
bffaf:
f3820:
goto e30de;
Ce3c1:
$E908f = date("d/m/Y");
goto d0df6;
A2b8b:
$f48ff = "tmcron";
goto Ce3c1;
B7888:
cb22f:
goto e4f72;
df1f6:
if (!$this->dmt_debug) {
goto f3820;
}
goto dda82;
e4f72:
$c513c = $this->settings;
goto df1f6;
A1914:
$ff4d3 = filesize($C6971);
goto B8cb9;
A8ee1:
$C6971 = DIR_LOGS . "dmt.log";
goto B0f96;
B8cb9:
$this->getSettings($f48ff, $F54aa, $f5425, false);
goto a337a;
F1d43:
unlink($C6971);
goto c9fba;
E834a:
c56ac:
goto B7888;
c9fba:
Aed9e:
goto E834a;
B838d:
$F54aa = "tmcrom_date";
goto A2b8b;
d0df6:
$f5425 = date("d/m/Y", strtotime("+1 days"));
goto C3bcb;
B0f96:
if (!(!isset($B8aa3) || empty($B8aa3) || $E908f >= $B8aa3)) {
goto cb22f;
}
goto F84cb;
dda82:
$this->write($B2fc2);
goto bffaf;
a337a:
if (!($ff4d3 > 2400000)) {
goto Aed9e;
}
goto F1d43;
C3bcb:
$B8aa3 = $this->config->get($F54aa);
goto A8ee1;
e30de:
}
public function tmerror($B2fc2)
{
goto Aaa37;
c0628:
if (!(!isset($B8aa3) || empty($B8aa3) || $E908f >= $B8aa3)) {
goto cbcc5;
}
goto E8ab7;
a41fb:
$C6971 = DIR_LOGS . "dmt.log";
goto c0628;
dd3ff:
$ff4d3 = filesize($C6971);
goto B6e16;
b31a9:
$B8aa3 = $this->config->get($F54aa);
goto a41fb;
bebb7:
$f48ff = "tmcron";
goto c8e4e;
B8026:
if (!($ff4d3 > 2400000)) {
goto dcfcd;
}
goto f64b0;
f64b0:
unlink($C6971);
goto B70a5;
A6991:
F5d88:
goto f7466;
E8ab7:
if (!file_exists($C6971)) {
goto F5d88;
}
goto dd3ff;
Aaa37:
$F54aa = "tmcrom_date";
goto bebb7;
B6e16:
$this->getSettings($f48ff, $F54aa, $f5425, false);
goto B8026;
c8e4e:
$E908f = date("d/m/Y");
goto A1435;
f7466:
cbcc5:
goto f2d1f;
f2d1f:
$c513c = $this->settings;
goto E2aff;
A1435:
$f5425 = date("d/m/Y", strtotime("Y days"));
goto b31a9;
ba0a1:
d9d84:
goto F94f1;
Ce86a:
$this->write($B2fc2);
goto ba0a1;
B70a5:
dcfcd:
goto A6991;
E2aff:
if (!$this->dmt_debug) {
goto d9d84;
}
goto Ce86a;
F94f1:
}
public function write($E14c7)
{
$fe19b = DIR_LOGS . "dmt.log";
file_put_contents($fe19b, date("Y-m-d H:i:s") . " - " . print_r($E14c7, true) . "\xaURL: " . (isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : '') . "
REFFER: " . (isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : '') . "\xa================================= \*\*\*\*\*\*\*\*|***/*/ =================================\xa", FILE_APPEND);
}
public function tmprint($Db528 = array(), $Bade8 = true)
{
goto fe544;
c01f4:
F1889:
goto E46fd;
F6ff8:
if (!$Bade8) {
goto F1889;
}
goto Fd05f;
Cadd7:
$Bade8 = true;
goto Be810;
Be810:
F18ad:
goto F6ff8;
F6831:
echo "</pre>";
goto e579c;
e579c:
if (!isset($this->request->get["killme"])) {
goto F18ad;
}
goto Cadd7;
fe544:
echo "<pre>";
goto C7f14;
Fd05f:
die;
goto c01f4;
C7f14:
print_r($Db528);
goto F6831;
E46fd:
}
public function Error($Db528 = array(), $Bade8 = true)
{
goto A8ffb;
c2aff:
Db4dd:
goto be6a5;
Aa5bd:
echo "</pre>";
goto A7ce9;
A7ce9:
if (!isset($this->request->get["killme"])) {
goto Dc94f;
}
goto e70f6;
e46e7:
print_r($Db528);
goto Aa5bd;
C7be3:
Dc94f:
goto d0890;
d0890:
if (!$Bade8) {
goto Db4dd;
}
goto Efc18;
A8ffb:
echo "<pre>";
goto e46e7;
e70f6:
$Bade8 = true;
goto C7be3;
Efc18:
die;
goto c2aff;
be6a5:
}
private function checkapiStatus($Ccad7)
{
goto D3c41;
D3c41:
$c513c = $this->config();
goto eb433;
cbd31:
b15d4:
goto ca7aa;
eb433:
if (isset($Ccad7)) {
goto b15d4;
}
goto eb703;
ca7aa:
switch ($Ccad7) {
case "ga4":
goto ed560;
ed560:
if (!(!isset($c513c["ga4_mid"]) && empty($c513c["ga4_api"]))) {
goto Eea9a;
}
goto C1ae6;
F7983:
A77b7:
goto f3df9;
C1ae6:
if (!$this->dmt_debug) {
goto A77b7;
}
goto C8fbe;
fc74a:
goto c94a0;
goto bcc84;
C8fbe:
$this->Log("DMT Debug Log: API Check failed for GA4, error GA4 API secret missing");
goto F7983;
c83bc:
Eea9a:
goto fc74a;
f3df9:
return false;
goto c83bc;
bcc84:
case "fb":
goto A966d;
ded58:
A291d:
goto B8ced;
A966d:
if ($c513c["fb_api"]) {
goto d9ea9;
}
goto Ea41f;
B8ced:
return false;
goto f4bd8;
Ea41f:
return false;
goto bb8ac;
b000d:
if (!$this->dmt_debug) {
goto A291d;
}
goto F7e2c;
f4bd8:
e915e:
goto f4ada;
bb8ac:
d9ea9:
goto aa609;
f4ada:
goto c94a0;
goto aca67;
aa609:
if (!empty($c513c["fb_token"])) {
goto e915e;
}
goto b000d;
F7e2c:
$this->Log("DMT Debug Log: API Check failed for Facebook, error API secret missing");
goto ded58;
aca67:
case "snapchat":
goto e01b1;
f99d7:
F25f6:
goto df006;
b6b00:
return false;
goto B1da5;
cc0cb:
if (!$this->dmt_debug) {
goto cefd2;
}
goto B97b9;
B1da5:
e79e2:
goto E9199;
A16f8:
return false;
goto f99d7;
B97b9:
$this->Log("DMT Debug Log: API Check failed for Snap Chat, error API token missing");
goto bdfc8;
df006:
if (!empty($c513c["snap_pixel_token"])) {
goto e79e2;
}
goto cc0cb;
e01b1:
if ($c513c["snap_pixel_api"]) {
goto F25f6;
}
goto A16f8;
E9199:
goto c94a0;
goto cf912;
bdfc8:
cefd2:
goto b6b00;
cf912:
case "tiktok":
goto fa584;
E339c:
Caae7:
goto a4e28;
D9414:
if (!$this->dmt_debug) {
goto A6784;
}
goto Be9e7;
a4e28:
goto c94a0;
goto d6506;
e4c9e:
A6784:
goto f719d;
Be9e7:
$this->Log("DMT Debug Log: API Check failed for TikTok, error API token missing");
goto e4c9e;
fa584:
if ($c513c["tiktok_api"]) {
goto f3e06;
}
goto b11d8;
f719d:
return false;
goto E339c;
F2be7:
if (!empty($c513c["tiktok_token"])) {
goto Caae7;
}
goto D9414;
Ef0e9:
f3e06:
goto F2be7;
b11d8:
return false;
goto Ef0e9;
d6506:
}
goto cdcf9;
c9a5e:
c94a0:
goto E9624;
cdcf9:
a29f7:
goto c9a5e;
eb703:
return false;
goto cbd31;
E9624:
return true;
goto e9c50;
e9c50:
}
public function check_array($c12c5)
{
return is_array($c12c5) || $c12c5 instanceof \Countable || $c12c5 instanceof \SimpleXMLElement || $c12c5 instanceof \ResourceBundle;
}
public function escapeJsonString($f5425)
{
goto e7a45;
F0d8f:
return $f2de0;
goto Bad9d;
e0c11:
$f2de0 = str_replace($Baff1, $c170d, $f5425);
goto F0d8f;
e7a45:
$Baff1 = ["\", "/", """, "\xa", "\xd", "\x9", "", ""];
goto Ccb6e;
Ccb6e:
$c170d = ["\\", "\/", "\"", "\n", "\r", "\t", "\f", "\b"];
goto e0c11;
Bad9d:
}
public function getAJAXtoken()
{
goto A271d;
A36df:
$Ec345 = $this->getHash($Ec345);
goto addb8;
A271d:
$Ec345 = $this->getNewURL();
goto A36df;
addb8:
return $Ec345;
goto A4273;
A4273:
}
public function getNewURL()
{
goto F6361;
C8d39:
F6f80:
goto A63a9;
fbfcb:
if ($D27f1 == 3) {
goto D4f8a;
}
goto A0f49;
ea859:
Bfaaa:
goto F5d68;
Afe52:
dc137:
goto a932e;
B43ca:
$D572b = explode(, $Aaf13);
goto dc894;
F5d68:
goto Aac8b;
goto bde39;
Cb0f2:
goto Aac8b;
goto C8d39;
F6361:
$B12df = false;
goto C0a6f;
A0f49:
if ($D27f1 == 4) {
goto b99f4;
}
goto Cb0f2;
dc894:
$Aa5f6 = $this->check_array($D572b);
goto F9854;
d3f9e:
$B12df = $D572b[1] . . $D572b[2];
goto c3372;
C9ccc:
if (strtolower($D572b[0]) != "www") {
goto cd17c;
}
goto d3f9e;
F9854:
if (!$Aa5f6) {
goto dc137;
}
goto ef01c;
a33c8:
if ($D27f1 == 2) {
goto F6f80;
}
goto fbfcb;
bde39:
b99f4:
goto ed132;
E2a88:
Aac8b:
goto Afe52;
a932e:
return $B12df;
goto cf760;
F9103:
$B12df = $D572b[0] . . $D572b[1] . . $D572b[2];
goto ea859;
C24a9:
D4f8a:
goto C9ccc;
e3d68:
goto Aac8b;
goto C24a9;
ef01c:
$D27f1 = count($D572b);
goto a33c8;
B5962:
cd17c:
goto F9103;
A63a9:
$B12df = $D572b[0] . . $D572b[1];
goto e3d68;
ed132:
$B12df = $D572b[1] . . $D572b[2] . . $D572b[3];
goto E2a88;
C0a6f:
$Aaf13 = $this->request->server["SERVER_NAME"];
goto B43ca;
c3372:
goto Bfaaa;
goto B5962;
cf760:
}
public function cleanStr($Db528)
{
goto e1b36;
E612d:
$Db528 = str_replace("&", '', $Db528);
goto a7245;
c2181:
$Db528 = str_replace("quot;", '', $Db528);
goto d3719;
e9366:
$Db528 = str_replace(" ", " ", $Db528);
goto fa7a6;
fa7a6:
return $Db528;
goto B4470;
C13c6:
fd8ec:
goto E784d;
fa1a5:
$Db528 = str_replace("	", '', $Db528);
goto c2181;
e8aed:
return $Db528;
goto C13c6;
E784d:
$Db528 = str_replace(""", '', $Db528);
goto F3c46;
F3c46:
$Db528 = str_replace("'", '', $Db528);
goto fa1a5;
E2e5b:
$Db528 = mb_substr(trim(strip_tags(html_entity_decode($Db528, ENT_QUOTES, "UTF-8"))), 0, 50);
goto a8bb9;
bd08e:
$Db528 = str_replace("&", "&", $Db528);
goto A0b7f;
a8bb9:
$Db528 = htmlspecialchars($Db528, ENT_QUOTES, "UTF-8");
goto E612d;
A0b7f:
$Db528 = str_replace("&", '', $Db528);
goto E2e5b;
a7245:
$Db528 = str_replace(">", ">", $Db528);
goto e9366;
e1b36:
if (!empty($Db528)) {
goto fd8ec;
}
goto e8aed;
d3719:
$Db528 = str_replace("&", "&", $Db528);
goto bd08e;
B4470:
}
private function sanitize_string($f6868)
{
goto bb0a4;
Fae25:
$f6868 = preg_replace("`&([a-z]{1b})(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig);`i", "\1", $f6868);
goto Dbd8a;
D5ab9:
$f6868 = preg_replace("/[\n\t\r]/", " ", $f6868);
goto Ec1f5;
Dbd8a:
$f6868 = html_entity_decode($f6868, ENT_NOQUOTES, "UTF-8");
goto da89d;
Fab86:
$f6868 = mb_convert_encoding($f6868, "UTF-8", mb_detect_encoding($f6868));
goto C0ad7;
C0ad7:
fb915:
goto Ad6bb;
b5c32:
if (!($f6868 !== mb_convert_encoding(mb_convert_encoding($f6868, "UTF-", "UTF-8"), "UTF-8", "UTFk2"))) {
goto fb915;
}
goto Fab86;
F617b:
$f6868 = trim($f6868);
goto D1cb3;
Ec1f5:
$f6868 = preg_replace("/( ){2,}/", "$1", $f6868);
goto F617b;
bb0a4:
$A9811 = array("&", "&");
goto F6be8;
D1cb3:
return $f6868;
goto Ddf5c;
F6be8:
$f6868 = str_replace($A9811, "E", $f6868);
goto b5c32;
Ad6bb:
$f6868 = htmlentities($f6868, ENT_NOQUOTES, "UTF-8");
goto Fae25;
da89d:
$f6868 = preg_replace(array("`[^a-z0-9]`i", "`[-]+`"), " ", $f6868);
goto D5ab9;
Ddf5c:
}
private function getEmailHash($Db528)
{
goto cbbf8;
a4215:
return hash("sha6", $Db528, false);
goto c5b05;
Af7c4:
return $Db528;
goto b9189;
a6cc2:
if (!$this->isHashed($Db528)) {
goto C685e;
}
goto Af7c4;
A044f:
C1a60:
goto F7276;
c19ec:
return '';
goto A044f;
b9189:
C685e:
goto a4215;
F7276:
$Db528 = trim($Db528);
goto cd784;
cbbf8:
if (!(!isset($Db528) || empty($Db528))) {
goto C1a60;
}
goto c19ec;
cd784:
$Db528 = strtolower($Db528);
goto a6cc2;
c5b05:
}
private function getPhoneHash($Db528, $a3275 = false)
{
goto c1d40;
d3938:
return '';
goto D82d9;
fb0e7:
if (!$this->isHashed($Db528)) {
goto D18e5;
}
goto Cb8d4;
b1294:
$Db528 = trim($Db528);
goto c41ca;
c41ca:
$Db528 = strtolower($Db528);
goto fb0e7;
D82d9:
bf246:
goto b1294;
Da914:
D18e5:
goto f74f4;
f74f4:
return hash("sha6", $Db528, false);
goto B0f22;
Cb8d4:
return $Db528;
goto Da914;
c1d40:
if (!(!isset($Db528) || empty($Db528))) {
goto bf246;
}
goto d3938;
B0f22:
}
public function getHash($Db528)
{
goto ada74;
f8c0a:
return '';
goto A1ff1;
E08dc:
baa62:
goto f4ead;
c6197:
$Db528 = strtolower($Db528);
goto Ce5ea;
A1ff1:
bffd3:
goto B2aca;
ada74:
if (!(!isset($Db528) || empty($Db528))) {
goto bffd3;
}
goto f8c0a;
f4ead:
return hash("sha256", $Db528, false);
goto fc59f;
Ce5ea:
if (!$this->isHashed($Db528)) {
goto baa62;
}
goto c7006;
B2aca:
$Db528 = trim($Db528);
goto c6197;
c7006:
return $Db528;
goto E08dc;
fc59f:
}
public function getEncrypt($Db528, $F54aa = false)
{
goto fedeb;
D8c5c:
return false;
goto df8bb;
df8bb:
b2d10:
goto dc1e9;
a45f4:
$D32e0 = "GTMEXTENSIONBYAITS";
goto f4bba;
fedeb:
if (isset($Db528)) {
goto b2d10;
}
goto D8c5c;
Ba844:
$D32e0 = $F54aa;
goto D213f;
bd83f:
return false;
goto C4ae4;
Ac70e:
try {
goto c0ac8;
fd4cb:
$De099 = 0;
goto Ec507;
Ec507:
$A4a55 = "34589121";
goto af70d;
Cfc6f:
$ef828 = openssl_cipher_iv_length($C32de);
goto fd4cb;
c0ac8:
$C32de = "AES-128-CTR";
goto Cfc6f;
c3c88:
return $b6a5b;
goto d1e59;
af70d:
$b6a5b = openssl_encrypt($Db528, $C32de, $D32e0, $De099, $A4a55);
goto c3c88;
d1e59:
} catch (Exception $F85b4) {
$this->Log("OpenSSL encrypt failer");
}
goto bd83f;
f4bba:
goto E2949;
goto C71c7;
dc1e9:
if ($F54aa) {
goto ef69a;
}
goto a45f4;
D213f:
E2949:
goto Ac70e;
C71c7:
ef69a:
goto Ba844;
C4ae4:
}
public function getDecrypt($Db528, $F54aa = false)
{
goto ac90e;
f834f:
$D32e0 = "GTMEXTENSIONBYAITS";
goto Ad75c;
b4b2d:
$D32e0 = $F54aa;
goto f5a5d;
ca3d1:
try {
goto b411e;
A236d:
return $b6a5b;
goto A134c;
fafcf:
$De099 = 0;
goto c414d;
D88aa:
$ef828 = openssl_cipher_iv_length($C32de);
goto fafcf;
b411e:
$C32de = "AES-8-CTR";
goto D88aa;
c414d:
$A4a55 = "1236789111";
goto D7d97;
D7d97:
$b6a5b = openssl_decrypt($Db528, $C32de, $D32e0, $De099, $A4a55);
goto A236d;
A134c:
} catch (Exception $F85b4) {
$this->Log("OpenSSL decrypt failer");
}
goto Fc053;
ac90e:
if (isset($Db528)) {
goto A4f32;
}
goto F5147;
ebdac:
A4f32:
goto f9950;
Fc053:
return false;
goto aaae5;
F5147:
return false;
goto ebdac;
f9950:
if ($F54aa) {
goto d8019;
}
goto f834f;
Ad75c:
goto B3c02;
goto e8218;
e8218:
d8019:
goto b4b2d;
f5a5d:
B3c02:
goto ca3d1;
aaae5:
}
private function isHashed($Db528)
{
return preg_match("/^[A-Fa-f0-9]{64}$/", $Db528) || preg_match("/^[a-f0-9]{32}$/", $Db528);
}
public function getIpAddress()
{
goto fd1e0;
ae8d2:
goto F4b21;
goto Da35b;
Ca303:
goto A8265;
goto Dcc06;
b67da:
goto F4b21;
goto E0c74;
e5c14:
F4b21:
goto A200d;
ff879:
$f20f1 = explode(",", $f20f1);
goto B6be2;
A442f:
if (isset($_SERVER["HTTP_FORWARDED"]) && !empty($_SERVER["HTTP_FORWARDED"])) {
goto Eba92;
}
goto fa072;
a0cac:
goto F4b21;
goto Aff64;
A200d:
return $A94fa;
goto B86f3;
fa072:
if (isset($_SERVER["REMOTE_ADDR"]) && !empty($_SERVER["REMOTE_ADDR"])) {
goto c1249;
}
goto Fff38;
ff050:
$A94fa = $_SERVER["HTTP_CLIENT_IP"];
goto D6ca1;
D6ca1:
goto F4b21;
goto C035e;
aae4e:
if (isset($_SERVER["HTTP_CLIENT_IP"]) && !empty($_SERVER["HTTP_CLIENT_IP"])) {
goto C729d;
}
goto E5475;
Aff64:
Eba92:
goto Db758;
fbb98:
if (isset($_SERVER["HTTP_X_FORWARDED"]) && !empty($_SERVER["HTTP_X_FORWARDED"])) {
goto B244f;
}
goto D38a6;
Fff38:
goto F4b21;
goto E3f45;
af953:
$f20f1 = $_SERVER["HTTP_X_FORWARDED_FOR"];
goto E955c;
Abd4f:
$A94fa = $_SERVER["HTTP_CF_CONNECTING_IP"];
goto b67da;
fd1e0:
$A94fa = "0.0pp";
goto aae4e;
D5660:
if (isset($_SERVER["HTTP_X_FORWARDED_FOR"]) && !empty($_SERVER["HTTP_X_FORWARDED_FOR"])) {
goto da015;
}
goto fbb98;
C035e:
ec0c6:
goto Abd4f;
E3f45:
C729d:
goto ff050;
Acc98:
B244f:
goto D81d4;
E0c74:
da015:
goto af953;
E5475:
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"]) && !empty($_SERVER["HTTP_CF_CONNECTING_IP"])) {
goto ec0c6;
}
goto D5660;
Db758:
$A94fa = $_SERVER["HTTP_FORWARDED"];
goto d4009;
D38a6:
if (isset($_SERVER["HTTP_FORWARDED_FOR"]) && !empty($_SERVER["HTTP_FORWARDED_FOR"])) {
goto A36c9;
}
goto A442f;
D96bd:
$A94fa = $_SERVER["REMOTE_ADDR"];
goto e5c14;
B6be2:
$A94fa = array_pop($f20f1);
goto C06e6;
C06e6:
A8265:
goto E39a1;
E39a1:
goto F4b21;
goto Acc98;
Da35b:
A36c9:
goto Dea1e;
ffb17:
$A94fa = $f20f1;
goto Ca303;
D81d4:
$A94fa = $_SERVER["HTTP_X_FORWARDED"];
goto ae8d2;
Dcc06:
fa829:
goto ff879;
Dea1e:
$A94fa = $_SERVER["HTTP_FORWARDED_FOR"];
goto a0cac;
Cc4a9:
c1249:
goto D96bd;
d4009:
goto F4b21;
goto Cc4a9;
E955c:
if ($this->strFind($f20f1, ",")) {
goto fa829;
}
goto ffb17;
B86f3:
}
public function getHttpUserAgent()
{
goto Ebe97;
D883d:
goto D0192;
goto C6cb8;
Bec9d:
$D4df1 = $this->request->server["HTTP_USER_AGENT"];
goto B73a4;
C6cb8:
Eee7c:
goto ecfb0;
Fb515:
return $D4df1;
goto A27cf;
Bc427:
if (isset($_SERVER["HTTP_USER_AGENT"]) && !empty($_SERVER["HTTP_USER_AGENT"])) {
goto Eee7c;
}
goto f51e7;
Cb9c2:
goto D0192;
goto d54dd;
d54dd:
d8186:
goto Bec9d;
B73a4:
D0192:
goto Fb515;
Ebe97:
$D4df1 = null;
goto Bc427;
f51e7:
if (isset($this->request->server["HTTP_USER_AGENT"])) {
goto d8186;
}
goto D883d;
ecfb0:
$D4df1 = $_SERVER["HTTP_USER_AGENT"];
goto Cb9c2;
A27cf:
}
public function getRequestUri()
{
goto f3e68;
E6975:
if (!(isset($_SERVER["HTTPS"]) && !empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off")) {
goto a2298;
}
goto C2cdf;
ad595:
$B12df .= $_SERVER["HTTP_HOST"];
goto ea1ed;
C253d:
return $B12df;
goto bf343;
f3e68:
$B12df = "http://";
goto E6975;
ebd9c:
a2298:
goto a83a9;
a83a9:
if (!(isset($_SERVER["HTTP_HOST"]) && !empty($_SERVER["HTTP_HOST"]))) {
goto Bc156;
}
goto ad595;
eb67d:
$B12df .= $_SERVER["REQUEST_URI"];
goto d273a;
E60fc:
if (!(isset($_SERVER["REQUEST_URI"]) && !empty($_SERVER["REQUEST_URI"]))) {
goto A8f42;
}
goto eb67d;
d273a:
A8f42:
goto C253d;
ea1ed:
Bc156:
goto E60fc;
C2cdf:
$B12df = "https://";
goto ebd9c;
bf343:
}
public function getGclid()
{
goto e7eeb;
bd92c:
$ffe3b = $B6bc8[0];
goto ecc98;
ebe0c:
return $ffe3b;
goto Ff816;
A808f:
$ffe3b = $B6bc8[2];
goto ebe0c;
Af166:
$f5425 = $_COOKIE["_gcl_aw"];
goto c791e;
af8b8:
$bd346 = $_GET["gclid"];
goto A6bbe;
f20df:
if (!isset($_GET["gclid"])) {
goto a099e;
}
goto af8b8;
c791e:
$B6bc8 = explode(, $f5425);
goto B37a9;
a2438:
return $ffe3b;
goto Dfe8d;
Ff816:
b25b3:
goto cc0b5;
cc0b5:
c551c:
goto f20df;
A6bbe:
$B6bc8 = explode("#", $bd346);
goto bd92c;
B68d6:
a099e:
goto F0a55;
ecc98:
$this->saveGTMCookie("dmt_gclid", $ffe3b);
goto b9df6;
df195:
if (!(isset($_COOKIE["_gcl_aw"]) && !empty($_COOKIE["_gcl_aw"]))) {
goto c551c;
}
goto Af166;
e7eeb:
$ffe3b = false;
goto df195;
b9df6:
return $ffe3b;
goto B68d6;
b016b:
Bc257:
goto a2438;
F0a55:
if (!(isset($_COOKIE["dmt_gclid"]) && !empty($_COOKIE["dmt_gclid"]))) {
goto Bc257;
}
goto Ba84a;
B37a9:
if (!isset($B6bc8[2])) {
goto b25b3;
}
goto A808f;
Ba84a:
$ffe3b = $_COOKIE["dmt_gclid"];
goto b016b;
Dfe8d:
}
public function getFbp()
{
goto e1429;
Fc50e:
return $C491d;
goto C982d;
a6e2e:
$C491d = $_COOKIE["_fbp"];
goto fb9b7;
a01ff:
if (!(isset($_COOKIE["_fbp"]) && !empty($_COOKIE["_fbp"]))) {
goto d95e4;
}
goto a6e2e;
e1429:
$C491d = null;
goto a01ff;
fb9b7:
d95e4:
goto Fc50e;
C982d:
}
public function getFbc()
{
goto b7a23;
f5876:
$efe7f = $_COOKIE["_fbc"];
goto df364;
a5e80:
D7c46:
goto cfa86;
Bdf62:
if (!preg_match("/^(fb\.\d+\.)(\d{10})(\..+)$/", $efe7f, $B4a44)) {
goto ffa98;
}
goto D211e;
D34f1:
$Ad464 = "fb.1." . $be893 . . $_GET["fbclid"];
goto a7949;
C7a7b:
$Ad464 = $D424a . $be893 . $F54aa;
goto eb50e;
b7a23:
$Ad464 = '';
goto D9696;
c522d:
return $Ad464;
goto B0ade;
daa81:
$f20e6 = $B4a44[2];
goto C200a;
D9696:
if (!isset($_GET["fbclid"])) {
goto D7c46;
}
goto C2f0d;
ef4d3:
F1003:
goto D4357;
a7949:
$this->saveGTMCookie("dmt_fbc", $Ad464);
goto a5e80;
C2f0d:
$be893 = floor(microtime(true) * 1000);
goto D34f1;
ae17a:
return $Ad464;
goto Ad4e7;
df364:
$Ad464 = $_COOKIE["_fbc"];
goto Bdf62;
cfa86:
if (!(isset($_COOKIE["dmt_fbc"]) && !empty($_COOKIE["dmt_fbc"]))) {
goto F1003;
}
goto Cbad8;
C200a:
$F54aa = $B4a44[3];
goto fa999;
A82e0:
return $Ad464;
goto ef4d3;
D4357:
if (!(isset($_COOKIE["_fbc"]) && !empty($_COOKIE["_fbc"]))) {
goto a2f48;
}
goto f5876;
Cbad8:
$Ad464 = $_COOKIE["dmt_fbc"];
goto A82e0;
eb50e:
ffa98:
goto B4134;
fa999:
$be893 = floor(microtime(true) * 1000);
goto C7a7b;
B4134:
$this->saveGTMCookie("dmt_fbc", $Ad464);
goto c522d;
D211e:
$D424a = $B4a44[1];
goto daa81;
B0ade:
a2f48:
goto ae17a;
Ad4e7:
}
public function getTtclid()
{
goto cb24a;
F26dd:
$bc793 = $_COOKIE["ttclid"];
goto D9911;
b93d7:
if ($bc793) {
goto ee471;
}
goto b4b6f;
c9fce:
F4599:
goto e8432;
D8c85:
$bc793 = '';
goto c9fce;
e8432:
return $bc793;
goto F4ffd;
B0a2b:
if ($bc793) {
goto F4599;
}
goto D8c85;
cb24a:
$bc793 = false;
goto F5bbc;
cfe8b:
if (!$cae68) {
goto b9803;
}
goto Af86a;
A41d4:
ee471:
goto B0a2b;
F5bbc:
if (!isset($_GET["ttclid"])) {
goto E50bb;
}
goto b22c1;
D9911:
Fb847:
goto b93d7;
ef5c6:
if (!(isset($_COOKIE["ttclid"]) && !empty($_COOKIE["ttclid"]))) {
goto Fb847;
}
goto F26dd;
e7020:
b9803:
goto A41d4;
b22c1:
$bc793 = $_GET["ttclid"];
goto De875;
De875:
$this->saveGTMCookie("gtm_ttclid", $bc793);
goto F809a;
F809a:
E50bb:
goto ef5c6;
Af86a:
$bc793 = $cae68;
goto e7020;
b4b6f:
$cae68 = $this->readGTMCookie("gtm_ttclid");
goto cfe8b;
F4ffd:
}
public function getTtp()
{
goto ea1f7;
e3cc1:
$ff2c6 = $_COOKIE["_ttp"];
goto A4882;
f2d22:
if (!(isset($_COOKIE["_ttp"]) && !empty($_COOKIE["_ttp"]))) {
goto A603b;
}
goto e3cc1;
Ae4cb:
return $ff2c6;
goto De034;
ea1f7:
$ff2c6 = '';
goto f2d22;
A4882:
A603b:
goto Ae4cb;
De034:
}
public function getScCid()
{
goto D18b3;
D18b3:
$e0279 = false;
goto ce304;
ce304:
if (!isset($_GET["ScCid"])) {
goto f3b5e;
}
goto Ba563;
c347c:
de0f8:
goto D6f67;
D6f67:
if ($e0279) {
goto Ad3bd;
}
goto d3ced;
E337a:
f0a1d:
goto c347c;
Ba563:
$e0279 = $_GET["ScCid"];
goto Bdba5;
Bdba5:
$this->saveGTMCookie("gtm_sccid", $e0279);
goto a8eee;
Eb5c9:
if ($e0279) {
goto de0f8;
}
goto C102a;
C102a:
$Cab49 = $this->readGTMCookie("gtm_sccid");
goto c2e47;
B4ba2:
Ad3bd:
goto a294a;
d3ced:
$e0279 = '';
goto B4ba2;
a294a:
return $e0279;
goto E7f76;
c2e47:
if (!$Cab49) {
goto f0a1d;
}
goto c501c;
c501c:
$e0279 = $Cab49;
goto E337a;
a8eee:
f3b5e:
goto Eb5c9;
E7f76:
}
public function getSc_cookie1()
{
goto b3243;
b3243:
$f825c = '';
goto B7ef3;
Ec532:
return $f825c;
goto Cf75c;
Be6ef:
A591c:
goto Ec532;
A2700:
$f825c = $_COOKIE["_scid"];
goto Be6ef;
B7ef3:
if (!(isset($_COOKIE["_scid"]) && !empty($_COOKIE["_scid"]))) {
goto A591c;
}
goto A2700;
Cf75c:
}
private function getCuid()
{
goto Ef3bd;
Ef3bd:
$dfaa1 = null;
goto c36fd;
c36fd:
if (!(isset($_COOKIE["sib_cuid"]) && !empty($_COOKIE["sib_cuid"]))) {
goto E062f;
}
goto e2ecc;
E2480:
E062f:
goto b3583;
e2ecc:
$dfaa1 = $_COOKIE["sib_cuid"];
goto E2480;
b3583:
return $dfaa1;
goto Cee99;
Cee99:
}
private function GUID()
{
goto ff6fc;
Eea3c:
return trim(F6282(), "{}");
goto afe72;
B0921:
return sprintf("%X(4X-%X-%X-%04X-%04X(4X%04X", mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
goto c1eef;
afe72:
F0924:
goto B0921;
ff6fc:
if (!(function_exists("f82") === true)) {
goto F0924;
}
goto Eea3c;
c1eef:
}
private function checkbot($D83df)
{
goto Fc82c;
C6ecd:
a09a7:
goto Dc4fa;
Dc4fa:
if (!(stripos($D83df, "bot") !== false)) {
goto ce13f;
}
goto cedb4;
Bc6be:
$D83df = strtolower($D83df);
goto E8bbe;
F2840:
return false;
goto ef699;
Fc82c:
$Bce92 = ["meta-externalads", "meta-externalagent", "facebookexternalhit", "facebookcatalog", "whatsapp", "telegram", "crawler", "spider", "adsbot", "scraper", "proximic", "baiduspider", "curl", "wget", "httpie", "python-requests", "slurp", "sogou", "screaming frog", "sitebulb", "pingdom", "uptimerobot", "gtmetrix", "pagespeed", "lighthouse", "webpagetest", "webmaster", "commoncrawl", "dataprovider", "yadirectfetcher", "seznambot", "yandeximages", "yandexvideo", "yandexnews", "yandexwebmaster", "baiduspider-image", "baiduspider-video", "baiduspider-news", "baiduspider-mobile", "baiduspider-favo", "baiduspider-game", "baiduspider-ads", "baiduspider-zhidao"];
goto E37ca;
E37ca:
if (!(!isset($D83df) || empty($D83df))) {
goto a09a7;
}
goto C9801;
C9801:
return true;
goto C6ecd;
b6fbb:
ad100:
goto F2840;
Fbb29:
return true;
goto b6fbb;
cedb4:
return true;
goto ce8e5;
ce8e5:
ce13f:
goto Bc6be;
E8bbe:
if (!in_array($D83df, $Bce92)) {
goto ad100;
}
goto Fbb29;
ef699:
}
private function getCurrentURL()
{
goto d7eac;
B8bfb:
$f4607 = $_SERVER["SCRIPT_NAME"];
goto D59e1;
d7eac:
$b2100 = strpos(strtolower($_SERVER["SERVER_PROTOCOL"]), "https") === false ? "http" : "https";
goto bcde1;
Da339:
return $b2100 . "://" . $b3ca5 . $f4607 . $d7046;
goto C2a91;
bcde1:
$b3ca5 = $_SERVER["HTTP_HOST"];
goto B8bfb;
D59e1:
$d7046 = $_SERVER["QUERY_STRING"] == '' ? '' : "?" . $_SERVER["QUERY_STRING"];
goto Da339;
C2a91:
}
private function botDetect()
{
goto De77b;
d9217:
return true;
goto c6b54;
C269b:
if (isset($D83df) && preg_match("/bot|crawl|slurp|spider|mediapartners/i", $D83df)) {
goto d7cee;
}
goto b8ffc;
De77b:
$D83df = $this->getHttpUserAgent();
goto C269b;
Fd2da:
d7cee:
goto d9217;
c6b54:
E737a:
goto a4e55;
af4f2:
goto E737a;
goto Fd2da;
b8ffc:
return false;
goto af4f2;
a4e55:
}
public function redirect($B12df, $Edab8 = 302)
{
$this->response->redirect($B12df);
}
public function unserialize($Db528 = array())
{
return json_decode($Db528, true);
}
public function get_numeric($a2588)
{
goto C1d90;
De12c:
return 0;
goto c3ac2;
C55b2:
return $a2588 + 0;
goto a36c8;
a36c8:
e6183:
goto De12c;
C1d90:
if (!is_numeric($a2588)) {
goto e6183;
}
goto C55b2;
c3ac2:
}
public function getHost()
{
goto fd1a3;
f0097:
d403f:
goto D2fda;
Ab735:
d8919:
goto b4012;
ce70e:
$Dac38 = "http://" . (isset($this->request->server["SERVER_NAME"]) ? $this->request->server["SERVER_NAME"] : '');
goto f7dbc;
fd1a3:
if ($this->request->server["HTTPS"]) {
goto d8919;
}
goto ce70e;
b4012:
$Dac38 = "https://" . (isset($this->request->server["SERVER_NAME"]) ? $this->request->server["SERVER_NAME"] : '');
goto f0097;
D2fda:
return $Dac38;
goto Eca9a;
f7dbc:
goto d403f;
goto Ab735;
Eca9a:
}
public function strFind($b7d6d, $B3d31)
{
return $B3d31 !== '' && mb_strpos($b7d6d, $B3d31) !== false;
}
public function formatPhone($Db528 = false, $a3275 = false)
{
goto e42b7;
cafe7:
$Db528 = str_replace("+", '', $Db528);
goto B2125;
c9356:
$Db528 = trim($Db528);
goto e2343;
D71fe:
Ab925:
goto f3d04;
F1b7b:
$Db528 = substr_replace($Db528, '', 0, $F96d9);
goto a8a05;
e42b7:
$b55e0 = ["e164" => $Db528, "ph" => $Db528];
goto a0214;
e005a:
$F96d9 = strlen($C4e6d);
goto F1b7b;
da6e5:
if (!(stripos($Db528, $C4e6d) === 0)) {
goto F11f8;
}
goto e005a;
B35db:
return $b55e0;
goto Da69a;
ef9b7:
$E7af1 = $this->getCountry($e86c0);
goto ce97c;
f3d04:
$Fe646 = "[{"dialcode":"54","country_code":"ar"},{"dialcode":"","country_code":"br"},{"dialcode":","country_code":"ca"},{"dialcode":"","country_code":"cl"},{"dialcode":"","country_code":"co"},{"dialcode":"506","country_code":"cr"},{"dialcode":","country_code":"ec"},{"dialcode":"5","country_code":"sv"},{"dialcode":"2","country_code":"gt"},{"dialcode":"592","country_code":"gy"},{"dialcode":"9","country_code":"ht"},{"dialcode":04","country_code":"hn"},{"dialcode":"","country_code":"mx"},{"dialcode":"505","country_code":"ni"},{"dialcode":"7","country_code":"pa"},{"dialcode":"595","country_code":"py"},{"dialcode":"51","country_code":"pe"},{"dialcode":"1","country_code":"us"},{"dialcode":"598","country_code":"uy"},{"dialcode":"58","country_code":"ve"},{"dialcode":"93","country_code":"af"},{"dialcode":","country_code":"am"},{"dialcode":"994","country_code":"az"},{"dialcode":"973","country_code":"bh"},{"dialcode":"8","country_code":"bd"},{"dialcode":"9","country_code":"bt"},{"dialcode":"673","country_code":"bn"},{"dialcode":"5","country_code":"kh"},{"dialcode":"","country_code":"cn"},{"dialcode":57","country_code":"cy"},{"dialcode":"850","country_code":"kp"},{"dialcode":"995","country_code":"ge"},{"dialcode":"91","country_code":"in"},{"dialcode":2","country_code":"id"},{"dialcode":"98","country_code":"ir"},{"dialcode":"964","country_code":"iq"},{"dialcode":"9","country_code":"il"},{"dialcode":"","country_code":"jp"},{"dialcode":"2","country_code":"jo"},{"dialcode":"7","country_code":"kz"},{"dialcode":"965","country_code":"kw"},{"dialcode":"996","country_code":"kg"},{"dialcode":"6","country_code":"la"},{"dialcode":"1","country_code":"lb"},{"dialcode":"","country_code":"my"},{"dialcode":"9","country_code":"mv"},{"dialcode":"976","country_code":"mn"},{"dialcode":"","country_code":"mm"},{"dialcode":"7","country_code":"np"},{"dialcode":"8","country_code":"om"},{"dialcode":"","country_code":"pk"},{"dialcode":"63","country_code":"ph"},{"dialcode":"974","country_code":"qa"},{"dialcode":"82","country_code":"kr"},{"dialcode":"966","country_code":"sa"},{"dialcode":"65","country_code":"sg"},{"dialcode":"94","country_code":"lk"},{"dialcode":"970","country_code":"ps"},{"dialcode":"3","country_code":"sy"},{"dialcode":"992","country_code":"tj"},{"dialcode":"66","country_code":"th"},{"dialcode":"670","country_code":"tl"},{"dialcode":"90","country_code":"tr"},{"dialcode":"993","country_code":"tm"},{"dialcode":"9","country_code":"ae"},{"dialcode":"998","country_code":"uz"},{"dialcode":"84","country_code":"vn"},{"dialcode":"967","country_code":"ye"},{"dialcode":"3","country_code":"al"},{"dialcode":"376","country_code":"ad"},{"dialcode":"43","country_code":"at"},{"dialcode":75","country_code":"by"},{"dialcode":"","country_code":"be"},{"dialcode":87","country_code":"ba"},{"dialcode":59","country_code":"bg"},{"dialcode":"385","country_code":"hr"},{"dialcode":"420","country_code":"cz"},{"dialcode":5","country_code":"dk"},{"dialcode":"372","country_code":"ee"},{"dialcode":"358","country_code":"fi"},{"dialcode":3","country_code":"fr"},{"dialcode":"49","country_code":"de"},{"dialcode":0","country_code":"gr"},{"dialcode":"","country_code":"hu"},{"dialcode":"3","country_code":"is"},{"dialcode":"3","country_code":"ie"},{"dialcode":"39","country_code":"it"},{"dialcode":"1","country_code":"lv"},{"dialcode":","country_code":"li"},{"dialcode":"370","country_code":"lt"},{"dialcode":"3","country_code":"lu"},{"dialcode":"356","country_code":"mt"},{"dialcode":"7","country_code":"mc"},{"dialcode":"382","country_code":"me"},{"dialcode":"31","country_code":"nl"},{"dialcode":"47","country_code":"no"},{"dialcode":"48","country_code":"pl"},{"dialcode":"351","country_code":"pt"},{"dialcode":73","country_code":"md"},{"dialcode":"40","country_code":"ro"},{"dialcode":"7","country_code":"ru"},{"dialcode":"378","country_code":"sm"},{"dialcode":81","country_code":"rs"},{"dialcode":"4","country_code":"sk"},{"dialcode":"386","country_code":"si"},{"dialcode":"34","country_code":"es"},{"dialcode":"46","country_code":"se"},{"dialcode":"","country_code":"ch"},{"dialcode":"389","country_code":"mk"},{"dialcode":"380","country_code":"ua"},{"dialcode":"44","country_code":"gb"},{"dialcode":1","country_code":"au"},{"dialcode":"","country_code":"nz"}]";
goto c76e9;
Aac66:
return $b55e0;
goto D71fe;
de18d:
if ($a3275) {
goto C0157;
}
goto da5df;
d09c8:
if (!(stripos($Db528, "0") === 0)) {
goto b995b;
}
goto f36b8;
C828c:
$Db528 = str_replace(, '', $Db528);
goto D7690;
f36b8:
$Db528 = substr_replace($Db528, '', 0, 1);
goto b7af7;
d1253:
if (!(!isset($a3275) || empty($a3275))) {
goto Cf990;
}
goto c7b61;
c7b61:
return $b55e0;
goto C4918;
ea265:
$D41c7 = strtolower($a3275);
goto Ebba8;
ba5ac:
$Db528 = str_replace(")", '', $Db528);
goto ea96f;
Fba36:
B64c4:
goto d09c8;
B3e91:
$Db528 = $C4e6d . $Db528;
goto D9832;
D7690:
if (!(stripos($Db528, "00") === 0)) {
goto B64c4;
}
goto Afa31;
a0214:
if ($Db528) {
goto Ab925;
}
goto Aac66;
D0628:
foreach ($Fe646 as $f5425) {
goto F6e93;
c4a22:
d502e:
goto Ecb33;
Cf5b0:
$C4e6d = $f5425["dialcode"];
goto c4a22;
Ecb33:
Db955:
goto a74f0;
F6e93:
if (!($f5425["country_code"] == $D41c7)) {
goto d502e;
}
goto Cf5b0;
a74f0:
}
goto d65ad;
ce97c:
$a3275 = $E7af1["iso_code_2"];
goto e826c;
a8a05:
F11f8:
goto B3e91;
d2c00:
return $b55e0;
goto e3899;
D9832:
$b55e0 = ["e1" => "+" . $Db528, "ph" => $Db528];
goto d2c00;
Ebba8:
$C4e6d = '';
goto D0628;
c76e9:
$Fe646 = json_decode($Fe646, true);
goto de18d;
Afa31:
$Db528 = substr_replace($Db528, '', 0, 2);
goto Fba36;
d4b88:
if (!empty($C4e6d)) {
goto d6a69;
}
goto B35db;
b7af7:
b995b:
goto da6e5;
Da69a:
d6a69:
goto c9356;
d65ad:
a6eac:
goto d4b88;
ea96f:
$Db528 = str_replace("-", '', $Db528);
goto C828c;
e2343:
$Db528 = str_replace(" ", '', $Db528);
goto cafe7;
B2125:
$Db528 = str_replace("(", '', $Db528);
goto ba5ac;
da5df:
$e86c0 = $this->config->get("config_country_id");
goto ef9b7;
e826c:
C0157:
goto d1253;
C4918:
Cf990:
goto ea265;
e3899:
}
public function formatPostcode($Db528 = '')
{
goto fad44;
df1eb:
$Db528 = str_replace(, '', $Db528);
goto ff7b9;
fad44:
$Db528 = str_replace(" ", '', $Db528);
goto D695e;
af517:
return $Db528;
goto c9a08;
ff7b9:
$Db528 = str_replace("/", '', $Db528);
goto af517;
D695e:
$Db528 = str_replace("-", '', $Db528);
goto df1eb;
c9a08:
}
}
© 2023 Quttera Ltd. All rights reserved.