It has been a bit of a topsy-turvy month for the S&P/ASX 200 Index (ASX: XJO) and many ASX shares. Although the index is technically sitting pretty flat, having gone backwards by 0.04% since this time in June, we've seen it go from the low 8,700s to as high as 8,850 points. That's a range worth more than 1.5%.
Of course, there have been several events on the global stage that easily explain this volatility. Most of all, the resumption of hostilities in the Middle East has exacerbated fears of a new energy crisis.
In this climate, it can be difficult to find the confidence to invest in new ASX shares. However, I still think there are buys out there. So here are two ASX shares that I'd buy this July.

Image source: Getty Images
2 ASX shares to buy this July
Washington H. Soul Pattinson and Co Ltd (ASX: SOL)
First up, we have Washington H. Soul Pattinson, or Soul Patts for short. This company is a rather unique stock on the ASX. It functions more as an investment holding company than your traditional ASX share. Buying its shares represents buying an ownership stake in Soul Patts' vast underlying investment portfolio. This portfolio is well diversified. It contains several large stakes in other ASX shares, a broad-based portfolio of large-cap ASX shares, property assets, private credit, venture capital and more.
Soul Patts has a track record that spans decades. This, in my view, displays its investing acumen in a very favourable light indeed. To illustrate, as of 31 January, Soul Patts investors have enjoyed an average return of 12.9% per annum (share price growth plus dividends). That's well above what the ASX 200 has delivered over the same span.
Speaking of dividends, Soul Patts also has one of the best dividend track records on the ASX, having delivered an annual dividend rise every year since 1998. That's 28 years and counting. All in all, this is an ASX stock I'd buy any day.
iShares Global Consumer Staples ETF (ASX: IXI)
Our next ASX share is not really an ASX share at all, but an exchange-traded fund (ETF). The iShares Global Consumer Staples ETF houses a portfolio of underlying shares that are drawn from all over the world. These shares are all leaders in the consumer staples sector.
Consumer staples are goods that we tend to need to buy. They include food, drinks, household essentials, as well as alcohol and tobacco products. Because of the nature of these products, consumer staples companies tend to be highly resilient investments, capable of surviving and even thriving during economic shocks or downturns. After all, we all need to eat, drink and stock our households, regardless of the economic weather.
You'll probably recognise many of the investments that can be found in IXI's portfolio. They currently include Coca-Cola, Unilever, Costco, Colgate-Palmolive, and Philip Morris International. Our own Coles Group Ltd (ASX: COL) and Woolworths Group Ltd (ASX: WOW) are also present.
If you're nervous about the current geopolitical climate, this might be an investment worth considering today.