FeedTheFox

A FoxyCart Datafeed Package

View the Project on GitHub richtestani/FeedTheFox

Customer

The customer model contains everything related to customer.

The following properties are available with the get() method.

The following methods are available to the customer model.

get($property = null)
**Example:**
$customer = $datafeed->customer();

$customer_data = [
  'id' => $customer->get('customer_id'),
  'first' => $customer->get('customer_first_name'),
  'last' => $customer->get('customer_last_name')
];

if( $customer->isGuest() ) {
  mail($customer->get('customer_email'), 'thankyou@company.com', 'Thank you for your order!');
}

Returns a single value, or and entire array. If no property name is provided, the entire array is returned.

isGuest()

Returns true if the customer does not have an id.