protected function _loadFresh( $id, $price, $localeItem, $row )
	{
		$products = $this->_loadProducts( $id, true );
		$addresses = $this->_loadAddresses( $id, true );
		$services = $this->_loadServices( $id, true );

		$basket =  $this->_createItem( $price, $localeItem, $row );
		$basket->setId( null );

		$pluginManager = MShop_Factory::createManager( $this->_getContext(), 'plugin' );
		$pluginManager->register( $basket, 'order' );

		foreach( $products as $item ) {
			$basket->addProduct( $item );
		}

		foreach( $addresses as $item ) {
			$basket->setAddress( $item, $item->getType() );
		}

		foreach( $services as $item ) {
			$basket->setService( $item, $item->getType() );
		}

		return $basket;
	}
protected function _loadFresh( $id, $price, $localeItem, $row )
	{
		$products = $this->_loadProducts( $id, true );
		$addresses = $this->_loadAddresses( $id, true );
		$services = $this->_loadServices( $id, true );

		$basket =  $this->_createItem( $price, $localeItem, $row );
		$basket->setId( null );

		$pluginManager = MShop_Factory::createManager( $this->_getContext(), 'plugin' );
		$pluginManager->register( $basket, 'order' );

		foreach( $products as $item ) {
			$basket->addProduct( $item );
		}

		foreach( $addresses as $item ) {
			$basket->setAddress( $item, $item->getType() );
		}

		foreach( $services as $item ) {
			$basket->setService( $item, $item->getType() );
		}

		return $basket;
	}
protected function _loadFresh ( $ id , $ price , $ localeItem , $ row ) { $ products = $ this -> _loadProducts ( $ id , true ) ; $ addresses = $ this -> _loadAddresses ( $ id , true ) ; $ services = $ this -> _loadServices ( $ id , true ) ; $ basket = $ this -> _createItem ( $ price , $ localeItem , $ row ) ; $ basket -> setId ( null ) ; $ pluginManager = MShop_Factory :: createManager ( $ this -> _getContext ( ) , 'plugin' ) ; $ pluginManager -> register ( $ basket , 'order' ) ; foreach ( $ products as $ item ) { $ basket -> addProduct ( $ item ) ; } foreach ( $ addresses as $ item ) { $ basket -> setAddress ( $ item , $ item -> getType ( ) ) ; } foreach ( $ services as $ item ) { $ basket -> setService ( $ item , $ item -> getType ( ) ) ; } return $ basket ; }
Create a new basket item as a clone from an existing order ID.

@param integer $id Order base ID
@param MShop_Price_Item $price
@param MShop_Locale_Item $localeItem
@param array $row Array of values with all relevant order information
@return MShop_Order_Item_Base_Default The loaded order item for the given ID
Create a new basket item as a clone from an existing order ID .