source/Core/Smarty/Plugin/Emos.php
public function addEmosBasketPageArray($aBasket)
    {
        if (!is_array($aBasket)) {
            return;
        }

        $aBasketItems = [];
        foreach ($aBasket as $oItem) {
            $oItem = $this->_emos_ItemFormat($oItem);
            $aBasketItems[] = ["buy", $oItem->productId, $oItem->productName,
                                  $oItem->price, $oItem->productGroup, $oItem->quantity,
                                  $oItem->variant1, $oItem->variant2, $oItem->variant3 ];
        }

        $this->_ecEvent = $aBasketItems;
    }
public function addEmosBasketPageArray($aBasket)
    {
        if (!is_array($aBasket)) {
            return;
        }

        $aBasketItems = [];
        foreach ($aBasket as $oItem) {
            $oItem = $this->_emos_ItemFormat($oItem);
            $aBasketItems[] = ["buy", $oItem->productId, $oItem->productName,
                                  $oItem->price, $oItem->productGroup, $oItem->quantity,
                                  $oItem->variant1, $oItem->variant2, $oItem->variant3 ];
        }

        $this->_ecEvent = $aBasketItems;
    }
public function addEmosBasketPageArray ( $ aBasket ) { if ( ! is_array ( $ aBasket ) ) { return ; } $ aBasketItems = [ ] ; foreach ( $ aBasket as $ oItem ) { $ oItem = $ this -> _emos_ItemFormat ( $ oItem ) ; $ aBasketItems [ ] = [ "buy" , $ oItem -> productId , $ oItem -> productName , $ oItem -> price , $ oItem -> productGroup , $ oItem -> quantity , $ oItem -> variant1 , $ oItem -> variant2 , $ oItem -> variant3 ] ; } $ this -> _ecEvent = $ aBasketItems ; }
adds a emosBasket Page Array to the preScript

@param array $aBasket basket items

@return null
adds a emosBasket Page Array to the preScript