What if you had heavy petting with a person with the hep a virus will you get the infection?

Probably not. But that may depend upon your definition of "heavy petting". If this involved oral contact with areas of the body which may be fecally contaminated, the answer is yes. This disease is usually gotten from fecally contaminated water, or foods.