source/Application/Component/BasketComponent.php
protected function prepareProductInformation($addProductId, $productInfo)
    {
        $return = [];

        $return['id'] = isset($productInfo['aid']) ? $productInfo['aid'] : $addProductId;
        $return['amount'] = isset($productInfo['am']) ? $productInfo['am'] : 0;
        $return['selectList'] = isset($productInfo['sel']) ? $productInfo['sel'] : null;

        $return['persistentParameters'] = $this->getPersistedParameters($productInfo['persparam']);
        $return['override'] = isset($productInfo['override']) ? $productInfo['override'] : null;
        $return['bundle'] = isset($productInfo['bundle']) ? true : false;
        $return['oldBasketItemId'] = isset($productInfo['basketitemid']) ? $productInfo['basketitemid'] : null;

        return $return;
    }
protected function prepareProductInformation($addProductId, $productInfo)
    {
        $return = [];

        $return['id'] = isset($productInfo['aid']) ? $productInfo['aid'] : $addProductId;
        $return['amount'] = isset($productInfo['am']) ? $productInfo['am'] : 0;
        $return['selectList'] = isset($productInfo['sel']) ? $productInfo['sel'] : null;

        $return['persistentParameters'] = $this->getPersistedParameters($productInfo['persparam']);
        $return['override'] = isset($productInfo['override']) ? $productInfo['override'] : null;
        $return['bundle'] = isset($productInfo['bundle']) ? true : false;
        $return['oldBasketItemId'] = isset($productInfo['basketitemid']) ? $productInfo['basketitemid'] : null;

        return $return;
    }
protected function prepareProductInformation ( $ addProductId , $ productInfo ) { $ return = [ ] ; $ return [ 'id' ] = isset ( $ productInfo [ 'aid' ] ) ? $ productInfo [ 'aid' ] : $ addProductId ; $ return [ 'amount' ] = isset ( $ productInfo [ 'am' ] ) ? $ productInfo [ 'am' ] : 0 ; $ return [ 'selectList' ] = isset ( $ productInfo [ 'sel' ] ) ? $ productInfo [ 'sel' ] : null ; $ return [ 'persistentParameters' ] = $ this -> getPersistedParameters ( $ productInfo [ 'persparam' ] ) ; $ return [ 'override' ] = isset ( $ productInfo [ 'override' ] ) ? $ productInfo [ 'override' ] : null ; $ return [ 'bundle' ] = isset ( $ productInfo [ 'bundle' ] ) ? true : false ; $ return [ 'oldBasketItemId' ] = isset ( $ productInfo [ 'basketitemid' ] ) ? $ productInfo [ 'basketitemid' ] : null ; return $ return ; }
Prepare information for adding product to basket.

@param string $addProductId
@param array  $productInfo

@return array
Prepare information for adding product to basket .