Alice went to market with a view to (to purchase) - a dress.

Answer: 
purchasing
Alice went to market with a view to (to purchase) - a dress.