PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 6, 2024
Let's talk code, commerce and open source.

Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

Manufacturer domain

Manufacturer Commands

AddManufacturerCommand

PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\AddManufacturerCommand Creates manufacturer with provided data

Command details
Constructor parameters
  • $string $name
  • $bool $enabled
  • $array $localizedShortDescriptions
  • $array $localizedDescriptions
  • $array $localizedMetaTitles
  • $array $localizedMetaDescriptions
  • $array $localizedMetaKeywords
  • $array $shopAssociation
Handler class PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\AddManufacturerHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Manufacturer\CommandHandler\AddManufacturerHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\Manufacturer\ValueObject\ManufacturerId

BulkDeleteManufacturerCommand

PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\BulkDeleteManufacturerCommand Deletes manufacturers in bulk action

Command details
Constructor parameters
  • $array $manufacturerIds
Handler class PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\BulkDeleteManufacturerHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Manufacturer\CommandHandler\BulkDeleteManufacturerHandlerInterface
Return type void

BulkToggleManufacturerStatusCommand

PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\BulkToggleManufacturerStatusCommand Toggles manufacturer status in bulk action

Command details
Constructor parameters
  • $array $manufacturerIds
  • $bool $expectedStatus
Handler class PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\BulkToggleManufacturerStatusHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Manufacturer\CommandHandler\BulkToggleManufacturerStatusHandlerInterface
Return type void

DeleteManufacturerCommand

PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\DeleteManufacturerCommand Deletes manufacturer

Command details
Constructor parameters
  • $int $manufacturerId
Handler class PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\DeleteManufacturerHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Manufacturer\CommandHandler\DeleteManufacturerHandlerInterface
Return type void

DeleteManufacturerLogoImageCommand

PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\DeleteManufacturerLogoImageCommand Deletes manufacturer logo image

Command details
Constructor parameters
  • $int $manufacturerId
Handler class PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\DeleteManufacturerLogoImageHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Manufacturer\CommandHandler\DeleteManufacturerLogoImageHandlerInterface
Return type void

EditManufacturerCommand

PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\EditManufacturerCommand Edits manufacturer with provided data

Command details
Constructor parameters
  • $int $manufacturerId
Handler class PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\EditManufacturerHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Manufacturer\CommandHandler\EditManufacturerHandlerInterface
Return type void

ToggleManufacturerStatusCommand

PrestaShop\PrestaShop\Core\Domain\Manufacturer\Command\ToggleManufacturerStatusCommand Toggles manufacturer status

Command details
Constructor parameters
  • $int $manufacturerId
  • $bool $expectedStatus
Handler class PrestaShop\PrestaShop\Adapter\Manufacturer\CommandHandler\ToggleManufacturerStatusHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Manufacturer\CommandHandler\ToggleManufacturerStatusHandlerInterface
Return type void

Manufacturer Queries

GetManufacturerForEditing

PrestaShop\PrestaShop\Core\Domain\Manufacturer\Query\GetManufacturerForEditing Gets manufacturer for editing in Back Office

Query details
Constructor parameters
  • $int $manufacturerId
Handler class PrestaShop\PrestaShop\Adapter\Manufacturer\QueryHandler\GetManufacturerForEditingHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Manufacturer\QueryHandler\GetManufacturerForEditingHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\Manufacturer\QueryResult\EditableManufacturer

GetManufacturerForViewing

PrestaShop\PrestaShop\Core\Domain\Manufacturer\Query\GetManufacturerForViewing Get manufacturer information for viewing

Query details
Constructor parameters
  • $int $manufacturerId
  • $int $languageId
Handler class PrestaShop\PrestaShop\Adapter\Manufacturer\QueryHandler\GetManufacturerForViewingHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Manufacturer\QueryHandler\GetManufacturerForViewingHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\Manufacturer\QueryResult\ViewableManufacturer