protected function _setServices( MShop_Order_Item_Base_Interface $order, MShop_Order_Item_Interface $item )
	{
		$services = $order->getServices();

		if( empty( $services ) && $this->_getConfigValue( 'autofill.orderservice', true ) == true )
		{
			$manager = MShop_Factory::createManager( $this->_getContext(), 'order/base/service' );
			$search = $manager->createSearch();
			$search->setConditions( $search->compare( '==', 'order.base.service.baseid', $item->getBaseId() ) );
			$services = $manager->searchItems( $search );

			foreach( $services as $service )
			{
				$type = $service->getType();

				if( ( $item = $this->_getServiceItem( $order, $type, $service->getCode() ) ) !== null ) {
					$order->setService( $item, $type );
				}
			}
		}
	}
protected function _setServices( MShop_Order_Item_Base_Interface $order, MShop_Order_Item_Interface $item )
	{
		$services = $order->getServices();

		if( empty( $services ) && $this->_getConfigValue( 'autofill.orderservice', true ) == true )
		{
			$manager = MShop_Factory::createManager( $this->_getContext(), 'order/base/service' );
			$search = $manager->createSearch();
			$search->setConditions( $search->compare( '==', 'order.base.service.baseid', $item->getBaseId() ) );
			$services = $manager->searchItems( $search );

			foreach( $services as $service )
			{
				$type = $service->getType();

				if( ( $item = $this->_getServiceItem( $order, $type, $service->getCode() ) ) !== null ) {
					$order->setService( $item, $type );
				}
			}
		}
	}
protected function _setServices ( MShop_Order_Item_Base_Interface $ order , MShop_Order_Item_Interface $ item ) { $ services = $ order -> getServices ( ) ; if ( empty ( $ services ) && $ this -> _getConfigValue ( 'autofill.orderservice' , true ) == true ) { $ manager = MShop_Factory :: createManager ( $ this -> _getContext ( ) , 'order/base/service' ) ; $ search = $ manager -> createSearch ( ) ; $ search -> setConditions ( $ search -> compare ( '==' , 'order.base.service.baseid' , $ item -> getBaseId ( ) ) ) ; $ services = $ manager -> searchItems ( $ search ) ; foreach ( $ services as $ service ) { $ type = $ service -> getType ( ) ; if ( ( $ item = $ this -> _getServiceItem ( $ order , $ type , $ service -> getCode ( ) ) ) !== null ) { $ order -> setService ( $ item , $ type ) ; } } } }
Adds the services from the given order item to the basket.

@param MShop_Order_Item_Base_Interface $order Basket object
@param MShop_Order_Item_Interface $item Existing order to fetch the services from
Adds the services from the given order item to the basket .