The 27 year-old Blues striker is currently on loan with the Championship side but the Tykes have revealed that they have agreed to sign O'Connor on a permanent deal when the transfer window opens in January.
O'Connor signed a six month deal with Blues in the summer so would be free to move to Oakwell on free transfer next month.