getBestOneTimeOffer

Returns the cheapest currently-valid offer for a one-time product — the discount to show when several are live.

Sold-out limited-quantity offers and offers outside their validity window are skipped.

Return

The cheapest purchasable offer, or null when none is currently purchasable.

Since

4.4.0

Parameters

productId

One-time product id.