You can use a custom script to add dynamic kits to an order.
**Due to the ever-changing nature of writing and maintaining scripts, Infoplus does not provide support in this area. We recommend someone in your IT Department handles scripting requests internally so that you keep all control over the process.**
This example script shows how dynamic kits can be added to an order. The script has 2 example use cases:
- First, if a line item is found on the order for the SKU "BASIC7", that line item is converted to a Dynamic Kit for 2 component items: BASIC8 and BASIC9.
- Second, if the order's ship-to state is Missouri (MO), a new line item is added to the order, for BASIC5, and this new line item is a Dynamic kit for 3 SKUs.
The function addDynamicKitComponentToLineItem at the top of the script can be copied as-is into your own script. You can then add your own custom business rules to use this function for adding Dynamic Kits to your orders.