Availability policies
The Availability plugin contributes configuration policies that define behavior for the functionality provided by the plugin.
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:
| Policy | Description | Properties / Default Values |
|---|---|---|
DigitalItemTagsPolicy | Allows 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:
You can use an environment policy to override these tags. | TagList / "entitlement" "service" "installation" "subscription" "digitalsubscription" "warranty" "onlinetraining" "onlinelearning" "giftcards" |
GlobalAvailabilityPolicy | Provides 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) |
AvailabilityAlwaysPolicy | Indicates 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). | |
AvailabilityDateRangePolicy | Indicates that inventory checks on a sellable item are performed during a specific period (with start and end date). | |
AvailabilityPolicy | Provides availability and inventory information for a sellable item (with inventory SKU). |
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.