This article explains how to set up free shipping for orders placed through your Appbrew-powered mobile app on Shopify.
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
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.
Follow these steps to implement app-only free shipping:
Create a custom checkout function in your Shopify store.
In this function, check for the presence of the 'appbrew-instance-id' cart attribute.
If the attribute is present, apply your free shipping logic (e.g., a $6.95 discount on standard shipping).
Ensure that the discount is only applied to standard shipping and not to expedited options.
To confirm that the app-only free shipping is working correctly:
Place a test order through your mobile app.
Check the order details in your Shopify backend.
Look for the 'appbrew-instance-id' in the additional details section of the order.
If you're having trouble implementing this feature:
Double-check the spelling of the cart attribute. It should be 'appbrew-instance-id' (with hyphens).
Ensure that your custom checkout function is correctly reading the cart attributes.
Test the implementation thoroughly to make sure it's working as expected.
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.