2013-02-21 14:51:41 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This module is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This module is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* For further informations, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* @link http://www.oxidmodule.com
|
|
|
|
* @link http://www.shopmodule.com
|
|
|
|
* @link http://www.aikme.de
|
|
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch) & aikme GmbH
|
|
|
|
*/
|
|
|
|
|
2014-05-02 23:12:23 +02:00
|
|
|
class d3_order_googleanalytics extends d3_order_googleanalytics_parent
|
|
|
|
{
|
2013-02-21 14:51:41 +01:00
|
|
|
|
2014-05-02 23:12:23 +02:00
|
|
|
public function init()
|
2013-02-21 14:51:41 +01:00
|
|
|
{
|
|
|
|
parent::init();
|
|
|
|
|
|
|
|
$this->_d3SetIsNewCustomer();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function _d3SetIsNewCustomer()
|
|
|
|
{
|
|
|
|
$oUser = $this->getUser();
|
2013-04-24 12:42:11 +02:00
|
|
|
$isNewCustomer = (isset($oUser) && $oUser instanceof oxuser) ? $oUser->inGroup('oxidnotyetordered') : 0 ;
|
2013-02-21 14:51:41 +01:00
|
|
|
|
|
|
|
oxRegistry::getSession()->setVariable('iD3GANewCustomer', (int)$isNewCustomer);
|
|
|
|
}
|
2014-05-02 23:12:23 +02:00
|
|
|
}
|