Hi and welcome to Just Answer. I'm sorry to hear about your issue. I will try my best to give you a precise and accurate answer.
For a sound bar not to have an optical input is plain bad given that almost every new TV on the planet has an optical rather than analog audio outputs.
If you can't take it back and get a better one, you are going to have to get one of these:
It will convert the optical signal to analog voltage and that will go to the sound bar.
I have never personally used one of these but they seem to have good reviews and perform as advertised.
If I have answered your question to your satisfaction, please remember to click ACCEPT to help my rating on 'Just Answer'.
I only get paid if you click and it does not close our dialog together...we can continue with your issue. Thank you very much.