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

Carrier domain

Carrier Commands

BulkDeleteCarrierCommand

PrestaShop\PrestaShop\Core\Domain\Carrier\Command\BulkDeleteCarrierCommand Bulk deletes carriers

Command details
Constructor parameters
  • $array $carrierIds
Handler class PrestaShop\PrestaShop\Adapter\Carrier\CommandHandler\BulkDeleteCarrierHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Carrier\CommandHandler\BulkDeleteCarrierHandlerInterface
Return type void

BulkToggleCarrierStatusCommand

PrestaShop\PrestaShop\Core\Domain\Carrier\Command\BulkToggleCarrierStatusCommand Bulk toggles carrier status

Command details
Constructor parameters
  • $array $carrierIds
  • $bool $expectedStatus
Handler class PrestaShop\PrestaShop\Adapter\Carrier\CommandHandler\BulkToggleCarrierStatusHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Carrier\CommandHandler\BulkToggleCarrierStatusHandlerInterface
Return type void

DeleteCarrierCommand

PrestaShop\PrestaShop\Core\Domain\Carrier\Command\DeleteCarrierCommand Deletes carrier

Command details
Constructor parameters
  • $int $carrierId
Handler class PrestaShop\PrestaShop\Adapter\Carrier\CommandHandler\DeleteCarrierHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Carrier\CommandHandler\DeleteCarrierHandlerInterface
Return type void

ToggleCarrierIsFreeCommand

PrestaShop\PrestaShop\Core\Domain\Carrier\Command\ToggleCarrierIsFreeCommand Toggles carrier is-free status

Command details
Constructor parameters
  • $int $carrierId
Handler class PrestaShop\PrestaShop\Adapter\Carrier\CommandHandler\ToggleCarrierIsFreeHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Carrier\CommandHandler\ToggleCarrierIsFreeHandlerInterface
Return type void

ToggleCarrierStatusCommand

PrestaShop\PrestaShop\Core\Domain\Carrier\Command\ToggleCarrierStatusCommand Toggles carrier status

Command details
Constructor parameters
  • $int $carrierId
Handler class PrestaShop\PrestaShop\Adapter\Carrier\CommandHandler\ToggleCarrierStatusHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Carrier\CommandHandler\ToggleCarrierStatusHandlerInterface
Return type void

Carrier Queries