Tengo que hacer la compra.

English Translation

I need to do some grocery shopping.

Does la compra always mean grocery shopping? What about shopplng for other things, like clothes or lawn mowers?

Hacer la compra refers always to grocery shopping. If you want to say that you want to buy any other thing you say: Tengo que comprar ropa, toallas, vasos…