Step-by-step instructions for how to get the order number in Shopify to match when it's sent to Infoplus.
Sometimes the Customer Order Number in Infoplus will be a truncated version of the Shopify Order Number. If you want the Infoplus Customer Order Number and the Shopify Order Number to match exactly, you can create a script to perform this behavior within Infoplus.
Step 1 - Create the Script
- Navigate to the Script Table, via one of two ways:
- 1 - Use the period key and begin typing 'script', then click on script from the drop-down
- 2 - Navigate to the Apps>Tools>Scripts>Scripts from the Infoplus dashboard
![](https://www.infopluscommerce.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction11065876593original-zKhDIH487WImUoFEiQXtbEJ3pZQ5dHdcA.png)
- Once you are on the scripts table, click the 'Create New' button in the top right corner
- Then, fill out all the required fields (Name, Script Type, API Version)
![](https://www.infopluscommerce.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction11065876631originalyV64gJnVmCcUWAFix_V61KvgztGU1ruYDg.png)
- Copy the script below and paste into the section that is labeled 'code' on the new script page
- Click Save
Step 2 - Create the Trigger
- Navigate to the Order Table
- 1 - Use the period key and begin typing 'Order', then click on Order from the drop-down
- 2 - Navigate to the Apps>Order Management>Orders from the Infoplus dashboard
- Create a New Order Smart Filter by manipulating the columns on the Order table
- Status: Pending
- Order Load Program: Shopify
- Click 'Save As' in the top left and then name this Smart Filter 'Pending Shopify'
- Status: Pending
- Navigate to the Manage Trigger table
- 1 - Use the period key and begin typing 'Order', then click on Order from the drop-down
- 2 - Navigate to the Apps>Account>Building Blocks>Manage Triggers from the Infoplus dashboard
![](https://www.infopluscommerce.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction11065876958originalgL5SXMQ86XjfZoiXVUjrG53S86UyZaypog.png)
- Once you are on the Manage Triggers table, select 'Create New' in the top right and fill in the required fields:
- Name: Shopify Order Updater (or any identifying criteria that you would like to use)
- Description: any additional identifying information
- Smart Filter: Select the Pending Shopify Order Smart Filter from the drop down
- Make sure 'Insert' is checked
- Set Active to 'Yes'
- Then click 'OK'
![](https://www.infopluscommerce.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction11065877157originalRi5k4aCtZbkm0M5s5hlHXjt_TCVxVLG5oA.png)
- Select the actions on the Trigger, and create new
![](https://www.infopluscommerce.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction11066132872original_7_8h6RigT5ioa9Yv9xjCkqnKmq0HmeQ1Q.png)
- Choose the "Run Script" action
![](https://www.infopluscommerce.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction11066134494originalLWX6bWGEOXi-_jdJ26Tls3sXCYrgJ0N7tg.png)
After you complete this last step, all new orders that come into Infoplus will reflect the exact Shopify Order Number, however, it will not update the Customer Order Number for orders that are already in Infoplus. If you would like to update existing orders, follow these steps:
1. Go to the Order table
2. Select the orders you want to update using the Shopify Script created
3. Click on 'Actions' in the top right
4. Click on 'Bulk Run Scripts
5. Select the 'Shopify Order Number Updater' script from the dropdown
6. Review the results and identify any errors
7. Click Submit
![](https://www.infopluscommerce.com/hubfs/Knowledge%20Base%20Import/support.infopluscommerce.comsupportsolutionsarticles11000097705-how-to-update-the-customer-order-number-to-match-the-shopify-order-numberhit.gif)