Modify an Order Based on Extraneous Data From a Shopping Cart

If you want to use some data that is passed from a shopping cart, but is not routinely represented in Infoplus, you can run a script to utilize said data.

Use Case:  For any Orders from your Shopify site, if they have a "shipping code" of "Priority", update them to ship from warehouse 47.


Infoplus stores all data available from the Shopping Cart's API when it pulls orders.  These data all go into the order's "extra data" sub-table.  The script below includes a function which loops over the extra data on an order, looking for a specified value (in this case, the one with the code of "SHOP-SHIPPING_LINES.0.CODE").  


This script could be assigned to run with a Trigger that searched for new Orders with an Order Source that corresponded to your Shopify shopping cart connection.

Use Case:  For any Orders from your WooCommerce site, if they have a Gift Message, update the Infoplus Order field Gift Message with the text.
Infoplus stores all data available from the Shopping Cart's API when it pulls orders.  These data all go into the order's "extra data" sub-table.  The script below includes a function that loops over the extra data on an order, looking for a specified value (in this case, the one with the code of "WOO-LINE_ITEMS.0.META.0.VALUE").  
This script should be assigned to run with a Trigger during Insert (when the order is loaded) that searched for new Orders with an Order Source that corresponded to your WooCommerce shopping cart connection.