In Barcelona there is not problem to go in July or August, the most of the shops, bars, restaurants, or museums are all open. It's possible that some shops in districts far of centre were closed, but in the centre all are open, Barcelona is a tourist city and, you don't have to worry for that.