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

Learn how to upgrade to the latest version.

SpecificPrice domain

SpecificPrice Commands

AddSpecificPriceCommand

PrestaShop\PrestaShop\Core\Domain\SpecificPrice\Command\AddSpecificPriceCommand Adds specific price

Command details
Constructor parameters
  • $int $productId
  • $string $reductionType
  • $float $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 Deletes specific price by cart id

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