Customer

$this->customer->login($email, $password, $override = false);

Log the customer into their account quickly with their email and password. Can be used for quick logins and custom login pages.

$this->customer->logout();

Log the customer out of their account.

$this->customer->isLogged();

Checks to see if the customer is logged in or a guest browser. Returns true or false.

$this->customer->getId();

Gets the customer ID number, if logged in.

$this->customer->getFirstName();

Returns the first name of the customer.

$this->customer->getLastName();

Returns the last name of the customer.

$this->customer->getEmail();

Returns the email address of the customer.

$this->customer->getTelephone();

Returns the phone number of the customer.

$this->customer->getFax();

Returns the fax number of the customer.

$this->customer->getNewsletter();

Checks whether the customer has subscribed to the newsletter or not.

$this->customer->getCustomerGroupId();

Returns the ID of the customer group to which the user belongs.

$this->customer->getAddressId();

Returns the Address ID number of the default address of the customer.

$this->customer->getBalance();

Returns the store credit balance of the customer, if any.

$this->customer->getRewardPoints();

Returns the number of reward points which the customer has available.

Last update: Tue, 13 Sep 2022 14:32:15