hook_alloc_get_customer

Definition

hook_alloc_get_customer($txn)
ecommerce-5--4/docs/developer/hooks/ec_receipt.php, line 273

Description

The allocation object provider returns the customer. Eg. store returns the customer from the transaction object.

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

<?php
function hook_alloc_get_customer($txn) {
  return $txn->customer;
}
?>