Using an Infoplus Script to Create Dynamic Kits On An Order

You can use a custom script to add dynamic kits to an order. Here is an example of what that script might look like.

Infoplus Support can help with general questions about how scripting works. For help with a specific script or its outputs, you will need to submit a Pro Services request for paid support. Pro Service request form can be found here.

This example script shows how dynamic kits can be added to an order.  The script has 2 example use cases:

  1. 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.
  2. 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.