Custom Sitecore Commerce inventory plugin project with extended functionality for the Business Tools.
- Supported Sitecore Experience Commerce Versions
- Features
- Enabling Features
- Enabling Inventory Actions on Published Entities
- Installation Instructions
- Known Issues
- Disclaimer
- XC 9.2
Adds action, Associate Sellable Item to an inventory set to the Inventory Sets entity view, to provide the business user the ability to associate inventory information without requiring navigation to the Inventory Manager. If an inventory information entity already exists when selecting the inventory set, the user will be presented with edit functionality instead.
Enablement Policy Property: InventoryFromProductView
Sellable Item entity view.
Select Inventory entity view.
Associate Inventory entity view.
In the environment configuration files, add the CatalogFeatureEnablementPolicy and set the desired features to true
. (See the Enablement Policy Property value under each feature). For example:
{
"$type": "Ajsuth.Foundation.Inventory.Engine.Policies.InventoryFeatureEnablementPolicy, Ajsuth.Foundation.Inventory.Engine",
"InventoryFromProductView": true
}
The EntityVersionsActionsPolicy's AllowedActions property allows actions to continue to be enabled to the business user once a versioned entity has been published. To enable inventory actions for sellable item and variant Inventory Sets entity view, add the following action names to the policy.
Custom Actions
- "AssociateSellableItemToSelectInventorySet"
System Actions
- "DisassociateSellableItemFromInventorySet"
- "EditSellableItemInventory"
- "TransferInventory"
- Download the repository.
- Add the Ajsuth.Foundation.Inventory.Engine.csproj to the Sitecore Commerce Engine solution.
- In the Sitecore Commerce Engine project, add a reference to the Ajsuth.Foundation.Inventory.Engine project.
- Enable desired features, following Enabling Features.
- (Optional) If desired, follow Enabling Inventory Actions on Published Entities.
- Run the Sitecore Commerce Engine from Visual Studio or deploy the solution and run from IIS.
- Run the Bootstrap command on the Sitecore Commerce Engine.
Feature | Description | Issue |
---|---|---|
The code provided in this repository is sample code only. It is not intended for production usage and not endorsed by Sitecore. Both Sitecore and the code author do not take responsibility for any issues caused as a result of using this code. No guarantee or warranty is provided and code must be used at own risk.