I am using the Drupal commerce module. I want to write a PHP script to execute on order completion, and I want that script to update an external database with the shipping information. How would I go about doing this?
I have already setup a rule to execute PHP code on order completion, and I am given the variable
$commerce_order, but I don't know what to call to get out the customer shipping information. I have tried to email
var_dump($commerce_order) but it does not give me anything.
How can I get a list of the fields? Am I on the right track?