Validation
This commit is contained in:
parent
9b3f4d087b
commit
85f4874ac8
@ -38,7 +38,7 @@
|
||||
});
|
||||
{/foreach}
|
||||
|
||||
{if $analytics_timeover == 0}
|
||||
{if $cookie->transCpt < 2}
|
||||
ga('ec:setAction', 'purchase', { // Transaction details are provided in an actionFieldObject.
|
||||
'id': '{$trans.id}', // (Required) Transaction id (string).
|
||||
'affiliation': '{$trans.store}', // Affiliation (string).
|
||||
|
@ -52,8 +52,6 @@ class OrderConfirmationController extends OrderConfirmationControllerCore
|
||||
$transCpt = (int) $cookie->transCpt;
|
||||
}
|
||||
$transCpt++;
|
||||
$cookie->transCpt = $transCpt;
|
||||
$cookie->write();
|
||||
if ($transCpt > 1) {
|
||||
$analytics_timeover = 1;
|
||||
}
|
||||
@ -67,9 +65,14 @@ class OrderConfirmationController extends OrderConfirmationControllerCore
|
||||
|
||||
if (time() > $timestamp) {
|
||||
$analytics_timeover = 1;
|
||||
$transCpt++;
|
||||
}
|
||||
}
|
||||
|
||||
// Write cookie
|
||||
$cookie->transCpt = $transCpt;
|
||||
$cookie->write();
|
||||
|
||||
self::$smarty->assign(
|
||||
array(
|
||||
'customer' => $customer,
|
||||
|
Loading…
Reference in New Issue
Block a user