How to have unlimited inventory of a product in XC?

To make an inventory of a product as infinite simply make the product as digital. Digital products have a bit of different behavior if we will compare them with regular products. One of the differences is that the digital product has infinity availability (no inventory sets). If you want to mark your product as digital, you need to add any tag to the product or product variant from the list below:

OnlineTraining
OnlineLearning
Subscription
DigitalSubscription

To add your own tag need to find a configuration JSON file for your Environment, which is PlugIn.Habitat.CommerceAuthoring-1.0.0.json. You need to be sure, that PlugIn.Habitat.CommerceAuthoring-1.0.0.json doesn’t have already defined Policy configuration with type Sitecore.Commerce.Plugin.DigitalItems. KnownEntitlementsTags, Sitecore.Commerce.Plugin.DigitalItems. If it exists – you can just add a new tag in the DigitalProductTags list. If not – you need to copy and paste configuration bellow to Policies list:

{
        "$type": "Sitecore.Commerce.Plugin.Availability.DigitalItemTagsPolicy, Sitecore.Commerce.Plugin.Availability",
        "TagList": {
						"entitlement",
						"service",
						"installation",
						"subscription",
						"digitalsubscription",
						"warranty",
						"onlinetraining",
						"onlinelearning",
						"giftcards",
						"{your_custom_tag}"
					}
},
{
        "$type": "Sitecore.Commerce.Plugin.DigitalItems.KnownEntitlementsTags, Sitecore.Commerce.Plugin.Availability",
        "WarrantyTags": {
						"Warranty"
					},
		"InstallationTags": {
						"Installation",
						"Service"
					},
		"DigitalProductTags": {
						"OnlineTraining",
						"OnlineLearning",
						"Subscription",
						"DigitalSubscription",
						"{your_custom_tag}"
					},
} 
8520cookie-checkHow to have unlimited inventory of a product in XC?

Add a Comment

Your email address will not be published. Required fields are marked *