I am having a problem with orders. I have added a module to insert greeting card for the products. Sometimes with the order the greeting text is missing. I have added checks using javascript, but sometimes I still have the problem.
How can I put checks from the backend? it should be able to check if column oxselvariant exists then it should check if column oxpersparam has a value.
I would try to reproduce the error. If you can reproduce the bug, you should be able to catch it.
Frontend and backend logic are partly separated there. If the backend logic is in a model class, you can use this via a module overload for the frontend and define your own method.