Infoplus Shopping Cart Connection Scripts can be used to auto-populate missing data on orders coming from Shopify such as missing billing, shipping or customer information.
There are cases where an order coming in from Shopify may be missing one or more required fields in the following sections its data:
-
Billing To Address
-
Ship To Address
-
Customer Details
Since these sections include fields that are necessary for order processing, Infoplus will reject orders missing any required fields in these sections. This creates in an automated Alert detailing the issue.
Solution
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. The Pro Service request form can be found here.
Create and Configure a Shopping Cart Connection Script
-
Create a Script: Start by creating a new script with the "Shopping Cart Connection Order" type.
-
Write the Code: Populate the "Code" section to make the necessary modifications to the address variable (see examples below).
-
Apply the Script: Navigate the Shopping Cart Connection Table. Edit the desired Shopping Cart Connection record and select the newly created script in the script field. Remember to save your changes.
-
Verify Script Functionality: Use the script log table to confirm that the script is working as expected.
TIP: If not receiving Gift Cards, go to the Alert Table, verify a Business Transaction Alert of "no bill to information" apply the above script to the Shopping Cart Connection to enable customers to use gift cards on your Shopify site.
Example 1
Use Case: My orders keep getting blocked from entering Infoplus because the billing address exists but not the shipping address.
Solution: Use this script to replace the shipping address with the billing address so that Infoplus can accept your orders without error.
Example 2
If you attempt to use Example Script 1 and still receive alerts about missing billing addresses or are receiving alerts about missing shipping and customer data, this example script may be able to help: