Availability policies

Version:

The Availability plugin contributes configuration policies that define behavior for the functionality provided by the plugin.

Note

Do not extend or inherit from out-of-the-box policies; instead, create your own.

You can change the values of default policies by modifying the PolicySet JSON or the Environment JSON, depending on where the policy is defined, and then re-running Bootstrap.

The Availability plugin defines the following policies:

PolicyDescriptionProperties / Default Values
DigitalItemTagsPolicyAllows the specification of a list of tags that indicate an item is a digital item. Digital items are automatically considered always available and have no inventory. This is a simple way of flagging an item in the Merchandising tool as digital.

The following default tags are provided:

  • entitlement
  • service
  • installation
  • subscription
  • digital subscription
  • warranty
  • onlinetraining
  • onlinelearning
  • giftcards


You can use an environment policy to override these tags.
TagList /

"entitlement"

"service"

"installation"

"subscription"

"digitalsubscription"

"warranty"

"onlinetraining"

"onlinelearning"

"giftcards"
GlobalAvailabilityPolicyProvides basic availability with a single property (AvailabilityExpires), indicating how long availability applies, in seconds.This allows more efficient functioning because the system does not need to check availability with an external system.AvailabilityExpires / 10 (this represent seconds)
AvailabilityAlwaysPolicyIndicates that inventory checks are not required on a digital sellable item (e.g., for digital items that do not have a specific inventory).
Important

This policy is only applicable to digital sellable items. Sellable items with this policy enabled are considered as digital items, and cannot use a physical shipping method. (This is checked by the

IGetCartFulfillmentOptionsPipeline in the FilterCartFulfillmentOptionsBlock).
AvailabilityDateRangePolicyIndicates that inventory checks on a sellable item are performed during a specific period (with start and end date).
AvailabilityPolicyProvides availability and inventory information for a sellable item (with inventory SKU).
Note

Do not extend or inherit from out-of-the-box policies; instead, create your own.

You can change the values of default policies by modifying the PolicySet JSON or the Environment JSON, depending on where the policy is defined, and then re-running Bootstrap.

If you have suggestions for improving this article, let us know!