Hello, I have been looking for a way to check if the order is shipping to outside the USA, and then interrupt the order completion until the user fills out a form with roughly 5 questions. After the form gets filled out the order can be completed. An additional email is sent with the order to the same person who gets the results of the form.

I have been looking through the includes/classes/order.php file and believe this should be the file where I can insert some code however I can't find where, or what variable I can use to determine the shipping country check. In looking at the database there doesn't seem to be anything that indicates which customer address is the primary one, or shipping one.

In my mind I see something like: if shipping country != USA then echo or redirect to a page with a form the user then fills out the form which on submit would then complete the order confirmation.

I realize there could be several ways of doing this, any hints would be helpful.