By plane:

To Prague/Wien > by express train to Ostrava-Svinov > local train to Opava

You can find your connection on the webpage bellow where it is also possible to buy the ticket online. However, there will always be enough place in the train, so you can buy the ticket directly at the train station as well.