The 55-year-old victim was assaulted outside Tesco Express on Keighley Road in Ovenden.
He was taken to hospital where his condition is described as "stable".
A 36-year-old man was arrested on suspicion of assault has been released on bail pending further enquiries.
Halifax man jailed for being part of £6m drugs gang
Police investigating possible firearm incident in Halifax
Child suffers serious injuries in Halifax crash
Police called over safety concerns of man spotted at North Bridge in Halifax
Fun day to honour much-loved Sowerby Bridge dad-of-three
Detectives investigating the incident would like to speak to anyone who saw what happened, particularly a woman in a pink top who was walking a dog in the area at the time of the incident., which happened at about 7.25pm on Tuesday, July 12.
Anyone who can help should call Calderdale CID on 101, or by using the LiveChat on the West Yorkshire Police website.
The crime reference is 13220379205.
Information can also be reported anonymously to the independent charity Crimestoppers on 0800 555111 or via their website.