hook_alloc_get_customer($txn)
ecommerce-5--4/docs/developer/hooks/ec_receipt.php, line 273
The allocation object provider returns the customer. Eg. store returns the customer from the transaction object.
| Name | Description |
|---|---|
| Hooks | Allow modules to interact with the Drupal core. |
<?php
function hook_alloc_get_customer($txn) {
return $txn->customer;
}
?>