selling_ plan_ allocation
Information about how a specific selling plan affects a line item.
To learn about how to support selling plans in your theme, refer to Purchase options.
Properties
The amount that the customer will be charged at checkout in the currency's subunit.
The value is output in the customer's local (presentment) currency.
TipUse money filters to output a formatted price.
The compare at price of the selling plan allocation in the currency's subunit.
The value of the compare at price is the line item's price without the selling plan applied.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
TipUse money filters to output a formatted price.
The price for each delivery in the selling plan in the currency's subunit.
If a selling plan includes multiple deliveries, then the
is the
price
divided by the number of deliveries.The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
TipUse money filters to output a formatted price.
The price of the selling plan allocation in the currency's subunit.
The value is output in the customer's local (presentment) currency.
TipUse money filters to output a formatted price.
- price_
adjustments The selling plan allocation price adjustments.
The maximum length of the array is two. If the associated selling plan doesn't create any price adjustments, then the array is empty.
Each
maps to a
in the
array. The
array contains the intent of the selling plan, and the
array contains the resulting money amounts.
The remaining amount for the customer to pay, in the currency's subunit.
The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
TipUse money filters to output a formatted price.
- selling_
plan The selling plan that created the allocation.
The unit price of the variant associated with the selling plan, in the currency's subunit.
If the variant doesn't have a unit price, then
nil
is returned.The value is output in the customer's local (presentment) currency.
For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000.
TipUse money filters to output a formatted price.