models/oxpspaymorrowoxbasket.php
public function getPaymorrowBasketLineItems()
    {
        /** @var OxpsPaymorrowOxBasket|oxBasket $this */

        $aBasketContents = $this->getContents();

        if ( empty( $aBasketContents ) ) {
            return array();
        }

        $iLineItemCount = 1; // must start from 1
        $aLineItems     = array();

        /** @var oxBasketItem|OxpsPaymorrowOxBasketItem $oBasketItem */
        foreach ( $aBasketContents as $oBasketItem ) {
            $aLineItems = array_merge( $aLineItems, $oBasketItem->getPaymorrowBasketItemSummary( $iLineItemCount ) );

            $iLineItemCount++;
        }

        /**
         * Checks for additional Payment, Wrapping, Gift Card, Delivery/Shipping, Vouchers,
         * TS Protection - costs
         */
        $aLineItems = array_merge( $aLineItems, $this->_getPaymorrowAdditionalCostsSummary( $iLineItemCount ) );

        return $aLineItems;
    }
public function getPaymorrowBasketLineItems()
    {
        /** @var OxpsPaymorrowOxBasket|oxBasket $this */

        $aBasketContents = $this->getContents();

        if ( empty( $aBasketContents ) ) {
            return array();
        }

        $iLineItemCount = 1; // must start from 1
        $aLineItems     = array();

        /** @var oxBasketItem|OxpsPaymorrowOxBasketItem $oBasketItem */
        foreach ( $aBasketContents as $oBasketItem ) {
            $aLineItems = array_merge( $aLineItems, $oBasketItem->getPaymorrowBasketItemSummary( $iLineItemCount ) );

            $iLineItemCount++;
        }

        /**
         * Checks for additional Payment, Wrapping, Gift Card, Delivery/Shipping, Vouchers,
         * TS Protection - costs
         */
        $aLineItems = array_merge( $aLineItems, $this->_getPaymorrowAdditionalCostsSummary( $iLineItemCount ) );

        return $aLineItems;
    }
public function getPaymorrowBasketLineItems ( ) { /** @var OxpsPaymorrowOxBasket|oxBasket $this */ $ aBasketContents = $ this -> getContents ( ) ; if ( empty ( $ aBasketContents ) ) { return array ( ) ; } $ iLineItemCount = 1 ; // must start from 1 $ aLineItems = array ( ) ; /** @var oxBasketItem|OxpsPaymorrowOxBasketItem $oBasketItem */ foreach ( $ aBasketContents as $ oBasketItem ) { $ aLineItems = array_merge ( $ aLineItems , $ oBasketItem -> getPaymorrowBasketItemSummary ( $ iLineItemCount ) ) ; $ iLineItemCount ++ ; } /**
         * Checks for additional Payment, Wrapping, Gift Card, Delivery/Shipping, Vouchers,
         * TS Protection - costs
         */ $ aLineItems = array_merge ( $ aLineItems , $ this -> _getPaymorrowAdditionalCostsSummary ( $ iLineItemCount ) ) ; return $ aLineItems ; }
Get line items array - summary of bought products, costs and vouchers.

@for: OxpsPaymorrowEshopDataProvider

@return array
Get line items array - summary of bought products costs and vouchers .