Tags/topics: 
1
Answers
Vote up!
0
Vote down!

Hook isnt fired

<?php
function my_module_checkout_complete($order) {
$order_wrapper = entity_metadata_wrapper('commerce_order', $order);
var_dump($order_wrapper);
}

The var dump is not shown when checkout is completed (using kickstart 2 with nothing else installed or modified)

Asked by: thiokol
on March 19, 2014

1 Answer

Vote up!
0
Vote down!

a typo - you need HOOK_commerce_checkout_complete

Andy @ BlueFusion
Posted: Mar 19, 2014

Comments

Thanks for the reply. The typo is actually what I typed in the question, in the module its correct (exactly as you listed) but it still doesnt work.

There must be something very simple I'm doing wrong?

- thiokol on March 20, 2014