CoolCMS API

CartSnapshot
in package

FinalYes

Switchable part of the cart (items, vouchers, in-progress checkout), shared by both storages.

The one-time token and order ownership are not part of it; they always stay in the session (see App\UI\Front\Eshop\Models\Managers\CartManager). Storage-specific mapping: App\UI\Front\Eshop\Models\Mappers\CartMapperInterface.

Table of Contents

Properties

$checkout  : array<string|int, mixed>
$items  : array<string|int, mixed>
$vouchers  : array<string|int, mixed>

Methods

__construct()  : mixed

Properties

$checkout

public array<string|int, mixed> $checkout = []

$vouchers

public array<string|int, mixed> $vouchers = []

Methods

__construct()

public __construct([array<int, int> $items = [] ][, array<int, string> $vouchers = [] ][, array<string, mixed> $checkout = [] ]) : mixed
Parameters
$items : array<int, int> = []

setId => quantity

$vouchers : array<int, string> = []
$checkout : array<string, mixed> = []
On this page

Search results