Home > widget-integration > TierDiscountService > calculateItemsToNextTier

TierDiscountService.calculateItemsToNextTier() method

Calculates items needed to reach next tier.

Signature:

protected calculateItemsToNextTier(properties: TierDiscountModelProperties): number;

Parameters

Parameter

Type

Description

properties

TierDiscountModelProperties

Current model properties

Returns:

number

Number of items needed