CoolCMS API

ProductSetPriceResult
in package

FinalYes

Immutable snapshot of the currently-valid price for a ProductSet at a given (userGroup, currency, quantity tier), as read from the `current_prices` view by {@see \App\UI\Api\Eshop\Models\Services\PriceResolver}. Decimal columns stay as numeric strings (no float rounding) — matches the entity accessors.

IMPORTANT: price and originalPrice are the base without VAT (contract: ProductSetPrice). The resolver never returns a price with VAT; the caller adds it using the rate from the VAT engine (TaxManager::resolveDisplay()).

Table of Contents

Properties

$currencyId  : int
$fromAmount  : int
$originalPrice  : string
$points  : int
$price  : string
$productSetId  : int
$publishedTime  : string
$userGroupId  : int

Methods

__construct()  : mixed
getOriginalPriceAsFloat()  : float
getPriceAsFloat()  : float
isDiscounted()  : bool
Discounted against the original price (marketing sale).

Properties

Methods

__construct()

public __construct(int $productSetId, int $fromAmount, int $userGroupId, int $currencyId, string $price, string $originalPrice, int $points, string $publishedTime) : mixed
Parameters
$productSetId : int
$fromAmount : int
$userGroupId : int
$currencyId : int
$price : string
$originalPrice : string
$points : int
$publishedTime : string

isDiscounted()

Discounted against the original price (marketing sale).

public isDiscounted() : bool
Return values
bool
On this page

Search results