Méthode |
Description |
|
create ( &$customer ) |
Simply update the session. |
|
delete ( &$customer, array $args = [] ) |
Deletes a customer from the database. |
|
get_last_order ( &$customer ) : WC_Order | false |
Gets the customers last order. |
|
get_order_count ( &$customer ) : integer |
Return the number of orders this customer has. |
|
get_total_spent ( &$customer ) : float |
Return how much money this customer has spent. |
|
read ( &$customer ) |
Read customer data from the session. |
|
save_to_session ( $customer ) |
Saves all customer data to the session. |
|
update ( &$customer ) |
Simply update the session. |
|