Help & Resource Center

Non-Printfection Items in Shopify (Using Zapier)

Overview

The use-case for this solution is when you have items you're selling in a Shopify store that don't map to items in Printfection. Using our regular Shopify/Zapier Integration any order submitted with mixed Printfection and Non-Printfection items will fail because it creates an invalid API request to Printfection.

Please note: this implementation is in BETA and hasn't been tested fully for all use cases. We're excited to continue improving our integration with Shopify and hope to revise this approach in the future. 


Updating Shopify and Zapier to Allow Non-Printfection Items

1. Go to any non-Printfection products in Shopify and make sure there is a SKU number

In a moment we'll be specifying items that we don't want submitted to Printfection, so it's important we have a way to reference those items.

We'll do this by using the SKU number from Shopify. In the Products > Product Details view of Shopify find the SKU field and add a number (can be any number you want).

2. Add a new action to your Printfection/Shopify Zap in Zapier

Head over to Zapier and on the side of your integration add a new step between Shopify and Printfection. You'll want to select the Zapier code application.

3. Map the Shopify line item data into your Code template

Make sure to specify Javascript as the language you'll be using for this Code action step. Then under the Edit Template step you'll want to set up the following Input options using your data from Shopify. You'll want to match the screenshot below.

To recap, we're basically bringing in data from Shopify and then modifying it via the script below in step four.

4. Use the following script in the Code template

In the Code section add the following script. You can just copy and paste it in and modify the values you need.

At the top of this script you'll see a section called USER CONFIGURATION. In this area add your Printfection API Key (located under the top-right Account menu in Printfection). Then, add the items you're selling that are not in Printfection. You'll be using the SKU # from step one.

Note: You also need to specify if each item has sizes (1 is yes, 0 is no).

Once updated, save the template using the Continue button below.

5. Modify the Printfection step to use the new script values

This script is removing any non-Printfection items and then passing that new data to the next step. In order to utilize this data you'll need to update the Lineitems portion of your Create Collection Order Printfection action step. 

You'll want your implementation to look like the screenshot above. Notice how only the Lineitems portion is referencing the new values from your Code action step. 

6. Your done, give things a try!

That's all you need to do, now you can try running a few test orders with mixed Printfection and non-Printfection products — you should see the orders get created in your Collection campaign using only the Printfection items from that order.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request