Jim Cramer said Walmart stock is worth buying while the price is weak during a broadcast of CNBC's Mad Money on Tuesday.

This recommendation comes as a major retail bellwether faces a short-term price correction. Investors often monitor Cramer's views on large-cap stocks to gauge market sentiment regarding consumer spending and retail health.

Speaking from the Mad Money studio in New York, Cramer said the current price level is an entry point for investors. He noted that the stock has pulled back roughly 18% [1] since it reached its peak in mid-May.

Cramer said the decline has created a buying opportunity. He based this assessment on the belief that the company continues to maintain a strong consumer base despite the recent volatility in its share price.

Walmart remains a central figure in the U.S. retail landscape. The stock's movement often reflects broader economic trends, including inflation, and the purchasing power of lower-to-middle-income households. By suggesting a buy during a period of weakness, Cramer is signaling confidence in the company's fundamental stability over its recent technical decline.

The retail giant's mid-May peak served as a high-water mark before the approximately 18% [1] drop occurred. Cramer said this specific pullback makes the asset more attractive for those looking to add to their portfolios.

Walmart stock is worth buying into weakness here

Cramer's endorsement of Walmart during a price dip suggests a 'buy the dip' strategy based on the company's perceived resilience. When a retail leader sees a significant percentage drop without a corresponding collapse in its consumer base, analysts often view it as a disconnect between market sentiment and business fundamentals, potentially offering a lower cost of entry for long-term investors.