You are here

public function CustomerHandlerInterface::incrementCustomerOrderTotal in Mailchimp E-Commerce 8

Increments the order count and total amount spent by a customer.

This information is tracked and sent to Mailchimp with every order.

Parameters

string $email_address: The email address associated with the customer.

float $total_spent: The amount to increment total spent for. This is the order total.

int $orders_count: The number of orders to increment. Should always be 1, but available here to change if needed.

Return value

bool TRUE if the customer exists and was updated, FALSE otherwise.

1 method overrides CustomerHandlerInterface::incrementCustomerOrderTotal()
CustomerHandler::incrementCustomerOrderTotal in src/CustomerHandler.php
@inheritdoc

File

src/CustomerHandlerInterface.php, line 81

Class

CustomerHandlerInterface
Interface for the Customer handler.

Namespace

Drupal\mailchimp_ecommerce

Code

public function incrementCustomerOrderTotal($email_address, $total_spent, $orders_count = 1);