Hi,

I've created a module with just the following code:

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

If I complete checkout using a freshly installed kickstart 2 profile the hook doesn't seem to be working, I dont get a var dump.

Any ideas what I'm doing wrong?

Comments

rszrama’s picture

Status: Active » Closed (works as designed)

This is probably just because the message is not being carried through due to our manner of checkout form validation / submission. Try printing it to the watchdog instead (assuming you've already cleared the cache).