Home > widget-integration > CartService > formatSellingPlanAllocation

CartService.formatSellingPlanAllocation() method

Format selling plan allocation prices from raw cents to formatted currency strings. Mutates the item in place, matching the deprecated updateSellingPlanAllocation behavior.

This is a cart-local implementation that mirrors PreOrderService.formatSellingPlanAllocation without importing it, to avoid circular dependencies (PreOrderModule lazy-imports CartModule).

Signature:

protected formatSellingPlanAllocation(item: Product$1, showCurrencyCodes: boolean): void;

Parameters

Parameter

Type

Description

item

Product$1

Cart item that may contain a selling_plan_allocation with numeric prices

showCurrencyCodes

boolean

Whether to include currency codes in formatted price strings

Returns:

void