protected function _setServicesDefault( MShop_Order_Item_Base_Interface $order )
	{
		$services = $order->getServices();

		$type = MShop_Order_Item_Base_Service_Abstract::TYPE_DELIVERY;

		if( !isset( $services[$type] ) && $this->_getConfigValue( 'autofill.delivery', false ) == true
			&& ( ( $item = $this->_getServiceItem( $order, $type, $this->_getConfigValue( 'autofill.deliverycode' ) ) ) !== null
			|| ( $item = $this->_getServiceItem( $order, $type ) ) !== null )
		) {
			$order->setService( $item, $type );
		}


		$type = MShop_Order_Item_Base_Service_Abstract::TYPE_PAYMENT;

		if( !isset( $services[$type] ) && $this->_getConfigValue( 'autofill.payment', false ) == true
			&& ( ( $item = $this->_getServiceItem( $order, $type, $this->_getConfigValue( 'autofill.paymentcode' ) ) ) !== null
			|| ( $item = $this->_getServiceItem( $order, $type ) ) !== null )
		) {
			$order->setService( $item, $type );
		}
	}
protected function _setServicesDefault( MShop_Order_Item_Base_Interface $order )
	{
		$services = $order->getServices();

		$type = MShop_Order_Item_Base_Service_Abstract::TYPE_DELIVERY;

		if( !isset( $services[$type] ) && $this->_getConfigValue( 'autofill.delivery', false ) == true
			&& ( ( $item = $this->_getServiceItem( $order, $type, $this->_getConfigValue( 'autofill.deliverycode' ) ) ) !== null
			|| ( $item = $this->_getServiceItem( $order, $type ) ) !== null )
		) {
			$order->setService( $item, $type );
		}


		$type = MShop_Order_Item_Base_Service_Abstract::TYPE_PAYMENT;

		if( !isset( $services[$type] ) && $this->_getConfigValue( 'autofill.payment', false ) == true
			&& ( ( $item = $this->_getServiceItem( $order, $type, $this->_getConfigValue( 'autofill.paymentcode' ) ) ) !== null
			|| ( $item = $this->_getServiceItem( $order, $type ) ) !== null )
		) {
			$order->setService( $item, $type );
		}
	}
protected function _setServicesDefault ( MShop_Order_Item_Base_Interface $ order ) { $ services = $ order -> getServices ( ) ; $ type = MShop_Order_Item_Base_Service_Abstract :: TYPE_DELIVERY ; if ( ! isset ( $ services [ $ type ] ) && $ this -> _getConfigValue ( 'autofill.delivery' , false ) == true && ( ( $ item = $ this -> _getServiceItem ( $ order , $ type , $ this -> _getConfigValue ( 'autofill.deliverycode' ) ) ) !== null || ( $ item = $ this -> _getServiceItem ( $ order , $ type ) ) !== null ) ) { $ order -> setService ( $ item , $ type ) ; } $ type = MShop_Order_Item_Base_Service_Abstract :: TYPE_PAYMENT ; if ( ! isset ( $ services [ $ type ] ) && $ this -> _getConfigValue ( 'autofill.payment' , false ) == true && ( ( $ item = $ this -> _getServiceItem ( $ order , $ type , $ this -> _getConfigValue ( 'autofill.paymentcode' ) ) ) !== null || ( $ item = $ this -> _getServiceItem ( $ order , $ type ) ) !== null ) ) { $ order -> setService ( $ item , $ type ) ; } }
Adds the default services to the basket if they are not available.

@param MShop_Order_Item_Base_Interface $order Basket object
Adds the default services to the basket if they are not available .