This article explains how to set up free shipping for orders placed through your Appbrew-powered mobile app on Shopify.

Understanding App-Only Free Shipping

To offer free shipping exclusively for orders placed through your mobile app, you'll need to create a custom checkout function that identifies app-originated orders and applies the free shipping discount accordingly.

Note: This is only available to Shopify Plus Merchants

Identifying App Orders

Appbrew adds a unique identifier to all orders placed through the mobile app. This identifier is a cart attribute named 'appbrew-instance-id'.

Note: The 'appbrew-instance-id' value changes for each cart and is not a constant.

Implementing the Custom Checkout Function

Follow these steps to implement app-only free shipping:

  1. Create a custom checkout function in your Shopify store.

  2. In this function, check for the presence of the 'appbrew-instance-id' cart attribute.

  3. If the attribute is present, apply your free shipping logic (e.g., a $6.95 discount on standard shipping).

  4. Ensure that the discount is only applied to standard shipping and not to expedited options.

Verifying the Implementation

To confirm that the app-only free shipping is working correctly:

  1. Place a test order through your mobile app.

  2. Check the order details in your Shopify backend.

  3. Look for the 'appbrew-instance-id' in the additional details section of the order.

Shopify order details page showing the appbrew-instance-id attribute

Troubleshooting

If you're having trouble implementing this feature:

Remember: This implementation requires custom code. If you're not comfortable with coding, consider seeking assistance from a Shopify developer or exploring Shopify Plus features for more advanced shipping rules.