Warning: You are browsing the documentation for PrestaShop 1.7, which is outdated.
You might want to read an updated version of this page for the current version, PrestaShop 8. Read the updated version of this page
PrestaShop\PrestaShop\Core\Domain\Customer\Command\AddCustomerCommand
Adds new customer with provided data
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\CommandHandler\AddCustomerHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Customer\ValueObject\CustomerId |
PrestaShop\PrestaShop\Core\Domain\Customer\Command\BulkDeleteCustomerCommand
Deletes given customers.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\CommandHandler\BulkDeleteCustomerHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Customer\Command\BulkDisableCustomerCommand
Disables customers in bulk action.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\CommandHandler\BulkDisableCustomerHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Customer\Command\BulkEnableCustomerCommand
Enables customers in bulk action.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\CommandHandler\BulkEnableCustomerHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Customer\Command\DeleteCustomerCommand
Deletes given customer.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\CommandHandler\DeleteCustomerHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Customer\Command\EditCustomerCommand
Edits provided customer. It can edit either all or partial data. Only not-null values are considered when editing customer. For example, if the email is null, then the original value is not modified, however, if email is set, then the original value will be overwritten.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\CommandHandler\EditCustomerHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Customer\Command\SetPrivateNoteAboutCustomerCommand
Sets private note about customer that can only be seen in Back Office
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\CommandHandler\SetPrivateNoteAboutCustomerHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Customer\Command\SetRequiredFieldsForCustomerCommand
Sets required fields for new customer when signing up in Front Office
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\CommandHandler\SetRequiredFieldsForCustomerHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Customer\Command\TransformGuestToCustomerCommand
Transforms guest (customer without password) into registered customer account
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\CommandHandler\TransformGuestToCustomerHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Customer\Query\GetCustomerCarts
Query for getting summarized customer carts
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\QueryHandler\GetCustomerCartsHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Customer\QueryResult\CartSummary[] |
PrestaShop\PrestaShop\Core\Domain\Customer\Query\GetCustomerForAddressCreation
Gets customer information for address creation.
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\QueryHandler\GetCustomerForAddressCreationHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Customer\QueryResult\AddressCreationCustomerInformation |
PrestaShop\PrestaShop\Core\Domain\Customer\Query\GetCustomerForEditing
Gets customer information for editing.
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\QueryHandler\GetCustomerForEditingHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Customer\QueryResult\EditableCustomer |
PrestaShop\PrestaShop\Core\Domain\Customer\Query\GetCustomerForViewing
Gets detailed customer information for viewing in Back Office.
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\QueryHandler\GetCustomerForViewingHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Customer\QueryResult\ViewableCustomer |
PrestaShop\PrestaShop\Core\Domain\Customer\Query\GetCustomerOrders
Query for getting summarized customer orders
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\QueryHandler\GetCustomerOrdersHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Customer\QueryResult\OrderSummary[] |
PrestaShop\PrestaShop\Core\Domain\Customer\Query\GetRequiredFieldsForCustomer
Gets fields that are required for customer sign up
Query details | |
---|---|
Constructor parameters | |
Handler class | PrestaShop\PrestaShop\Adapter\Customer\QueryHandler\GetRequiredFieldsForCustomerHandler Implements:
|
Return type | string[] |
PrestaShop\PrestaShop\Core\Domain\Customer\Query\SearchCustomers
Searchers for customers by phrases matching customer's first name, last name, email and id
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Customer\QueryHandler\SearchCustomersHandler Implements:
|
Return type | array |