Yes — Viva Piñata: Trouble in Paradise is the one with online play.
It supports online co-operative play and leaderboards, so you and a friend can garden together over the network. The related links section on most reference pages carries the official site if you want the details on connection and account setup.