Class Cart
Methods | ||
---|---|---|
public
|
__construct(Registry $registry)
|
# |
public
|
getProducts(): array<int, array<string, mixed>>
|
# |
public
|
add(
int $product_id,
int $quantity = 1,
array<mixed> $option = [],
int $subscription_plan_id = 0,
bool $override = false,
float $price = 0,
): void
|
# |
public
|
update(int $cart_id, int $quantity): void
|
# |
public
|
has(int $cart_id): bool
|
# |
public
|
remove(int $cart_id): void
|
# |
public
|
clear(): void
|
# |
public
|
getSubscriptions(): array<int, array<string, mixed>>
|
# |
public
|
getWeight(): float
|
# |
public
|
getSubTotal(): float
|
# |
public
|
getTaxes(): array<int, float>
|
# |
public
|
getTotal(): float
|
# |
public
|
countProducts(): int
|
# |
public
|
hasProducts(): bool
|
# |
public
|
hasSubscription(): bool
|
# |
public
|
hasStock(): bool
|
# |
public
|
hasShipping(): bool
|
# |
public
|
hasDownload(): bool
|
# |