public function setPosition( $value )
	{
		if( $value == $this->getPosition() ) { return; }

		if( $value !== null && $value < 1 ) {
			throw new MShop_Order_Exception( sprintf( 'Order product position "%1$s" must be greater than 0', $value ) );
		}

		$this->_values['pos'] = ( $value !== null ? (int) $value : null );
		$this->setModified();
	}
public function setPosition( $value )
	{
		if( $value == $this->getPosition() ) { return; }

		if( $value !== null && $value < 1 ) {
			throw new MShop_Order_Exception( sprintf( 'Order product position "%1$s" must be greater than 0', $value ) );
		}

		$this->_values['pos'] = ( $value !== null ? (int) $value : null );
		$this->setModified();
	}
public function setPosition ( $ value ) { if ( $ value == $ this -> getPosition ( ) ) { return ; } if ( $ value !== null && $ value < 1 ) { throw new MShop_Order_Exception ( sprintf ( 'Order product position "%1$s" must be greater than 0' , $ value ) ) ; } $ this -> _values [ 'pos' ] = ( $ value !== null ? ( int ) $ value : null ) ; $ this -> setModified ( ) ; }
Sets the position of the product within the list of ordered products.

@param integer|null $value Product position in the order from 1-n or null for resetting the position
@throws MShop_Order_Exception If there's already a position set
Sets the position of the product within the list of ordered products .