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
PrestaShop\PrestaShop\Core\Domain\Cart\Command\AddCartRuleToCartCommand
Adds cart rule to given cart.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\AddCartRuleToCartHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Cart\Command\AddCustomizationCommand
Adds product customization
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\AddCustomizationHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Product\Customization\ValueObject\CustomizationId |
PrestaShop\PrestaShop\Core\Domain\Cart\Command\AddProductToCartCommand
Responsible for adding product to cart
Command details | |
---|---|
Constructor parameters |
|
)` | |
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\AddProductToCartHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Cart\Command\CreateEmptyCustomerCartCommand
Creates empty cart for given customer.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\CreateEmptyCustomerCartHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Cart\ValueObject\CartId |
PrestaShop\PrestaShop\Core\Domain\Cart\Command\RemoveCartRuleFromCartCommand
Removes given cart rule from cart.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\RemoveCartRuleFromCartHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Cart\Command\RemoveProductFromCartCommand
Removes given product from cart.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\RemoveProductFromCartHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Cart\Command\SendCartToCustomerCommand
Sends email to the customer to process the payment for cart.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\SendCartToCustomerHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Cart\Command\UpdateCartAddressesCommand
__
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\UpdateCartAddressesHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Cart\Command\UpdateCartCarrierCommand
Updates cart carrier (a.k.a delivery option) with new one.
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\UpdateCartCarrierHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Cart\Command\UpdateCartCurrencyCommand
Updates cart currency
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\UpdateCartCurrencyHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Cart\Command\UpdateCartDeliverySettingsCommand
__
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\UpdateCartDeliverySettingsHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Cart\Command\UpdateCartLanguageCommand
Updates language for given cart
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\UpdateCartLanguageHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Cart\Command\UpdateProductPriceInCartCommand
Updates cart product price
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\UpdateProductPriceInCartHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Cart\Command\UpdateProductQuantityInCartCommand
Updates product quantity in cart Quantity given must include gift product
Command details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\CommandHandler\UpdateProductQuantityInCartHandler Implements:
|
Return type | void |
PrestaShop\PrestaShop\Core\Domain\Cart\Query\GetCartForOrderCreation
Query for getting cart information
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\QueryHandler\GetCartForOrderCreationHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Cart\QueryResult\CartForOrderCreation |
PrestaShop\PrestaShop\Core\Domain\Cart\Query\GetCartForViewing
Get cart for viewing in Back Office
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\QueryHandler\GetCartForViewingHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Cart\QueryResult\CartView |
PrestaShop\PrestaShop\Core\Domain\Cart\Query\GetLastEmptyCustomerCart
Query for retrieving last empty cart for customer
Query details | |
---|---|
Constructor parameters |
|
Handler class | PrestaShop\PrestaShop\Adapter\Cart\QueryHandler\GetLastEmptyCustomerCartHandler Implements:
|
Return type | PrestaShop\PrestaShop\Core\Domain\Cart\ValueObject\CartId |