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

SpecificPrice domain

SpecificPrice Commands

AddSpecificPriceCommand

PrestaShop\PrestaShop\Core\Domain\SpecificPrice\Command\AddSpecificPriceCommand or

Command details
Constructor parameters
  • $int $productId
  • $string $reductionType
  • $string $reductionValue
  • $bool $includeTax
  • $float $price
  • $int $fromQuantity
Handler class PrestaShop\PrestaShop\Adapter\SpecificPrice\CommandHandler\AddSpecificPriceHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\SpecificPrice\CommandHandler\AddSpecificPriceHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\SpecificPrice\ValueObject\SpecificPriceId

DeleteSpecificPriceByCartProductCommand

PrestaShop\PrestaShop\Core\Domain\SpecificPrice\Command\DeleteSpecificPriceByCartProductCommand or

Command details
Constructor parameters
  • $int $cartId
  • $int $productId
Handler class PrestaShop\PrestaShop\Adapter\SpecificPrice\CommandHandler\DeleteSpecificPriceByCartProductHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\SpecificPrice\CommandHandler\DeleteSpecificPriceByCartProductHandlerInterface
Return type void

SpecificPrice Queries